org.apache.xalan.templates

Class WhiteSpaceInfo

public class WhiteSpaceInfo extends ElemTemplate

This is used as a special "fake" template that can be handled by the TemplateList to do pattern matching on nodes.
Constructor Summary
WhiteSpaceInfo(Stylesheet thisSheet)
Constructor WhiteSpaceInfo
WhiteSpaceInfo(XPath matchPattern, boolean shouldStripSpace, Stylesheet thisSheet)
Constructor WhiteSpaceInfo
Method Summary
booleangetShouldStripSpace()
Return true if this element specifies that the node that matches the match pattern should be stripped, otherwise the space should be preserved.
voidrecompose(StylesheetRoot root)
This function is called to recompose() all of the WhiteSpaceInfo elements.

Constructor Detail

WhiteSpaceInfo

public WhiteSpaceInfo(Stylesheet thisSheet)
Constructor WhiteSpaceInfo

Parameters: thisSheet The current stylesheet

WhiteSpaceInfo

public WhiteSpaceInfo(XPath matchPattern, boolean shouldStripSpace, Stylesheet thisSheet)
Constructor WhiteSpaceInfo

Parameters: matchPattern Match pattern shouldStripSpace Flag indicating whether or not to strip whitespaces thisSheet The current stylesheet

Method Detail

getShouldStripSpace

public boolean getShouldStripSpace()
Return true if this element specifies that the node that matches the match pattern should be stripped, otherwise the space should be preserved.

Returns: value of m_shouldStripSpace flag

recompose

public void recompose(StylesheetRoot root)
This function is called to recompose() all of the WhiteSpaceInfo elements.
Copyright B) 2005 Apache XML Project. All Rights Reserved.