Class WhiteSpaceInfo

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