org.apache.xalan.templates
Class WhiteSpaceInfo

java.lang.Object
  |
  +--org.apache.xml.utils.UnImplNode
        |
        +--org.apache.xalan.templates.ElemTemplateElement
              |
              +--org.apache.xalan.templates.ElemTemplate
                    |
                    +--org.apache.xalan.templates.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.

See Also:
Serialized Form

Constructor Summary
WhiteSpaceInfo(XPath matchPattern, boolean shouldStripSpace, Stylesheet thisSheet)
          Constructor WhiteSpaceInfo
 
Method Summary
 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.
 void recompose(StylesheetRoot root)
          This function is called to recompose() all of the WhiteSpaceInfo elements.
 
Methods inherited from class org.apache.xalan.templates.ElemTemplate
execute, getMatch, getMode, getName, getNodeName, getPriority, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getXSLToken, setLocaterInfo, setMatch, setMode, setName, setPriority, setStylesheet
 
Methods inherited from class org.apache.xalan.templates.ElemTemplateElement
appendChild, canStripWhiteSpace, compareTo, compose, containsExcludeResultPrefix, error, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getFirstChild, getFirstChildElem, getLastChild, getLength, getLineNumber, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getParentElem, getParentNode, getPrefixes, getPreviousSibling, getTagName, getUid, getXmlSpace, hasChildNodes, isCompiledTemplate, item, removeChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpace
 
Methods inherited from class org.apache.xml.utils.UnImplNode
appendData, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, error, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getImplementation, getLocalName, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSpecified, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertBefore, insertData, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, replaceData, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setNodeValue, setPrefix, setValue, splitText, substringData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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


Copyright � 2000 Apache XML Project. All Rights Reserved.