Class WhiteSpaceInfo

All Implemented Interfaces:
Serializable, SourceLocator, XSLTVisitable, PrefixResolver, ExpressionNode, WhitespaceStrippingElementMatcher, Document, Element, Node, NodeList
Direct Known Subclasses:
WhitespaceInfoPaths

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.
See Also:
  • Constructor Details

    • 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 Details

    • 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.
      Overrides:
      recompose in class ElemTemplate
      Parameters:
      root - The root stylesheet for this transformation.