public class ElemForEach extends ElemTemplateElement implements ExpressionOwner
| Modifier and Type | Field and Description |
|---|---|
boolean |
m_doc_cache_off
This is set by an "xalan-doc-cache-off" pi, or the old "xalan:doc-cache-off" pi.
|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
ElemForEach()
Construct a element representing xsl:for-each.
|
| Modifier and Type | Method and Description |
|---|---|
ElemTemplateElement |
appendChild(ElemTemplateElement newChild)
Add a child to the child list
|
void |
callChildVisitors(XSLTVisitor visitor,
boolean callAttributes)
Call the children visitors.
|
void |
compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
execute(TransformerImpl transformer)
Execute the xsl:for-each transformation
|
Expression |
getExpression()
Get the raw Expression object that this class wraps.
|
java.lang.String |
getNodeName()
Return the node name.
|
Expression |
getSelect()
Get the "select" attribute.
|
ElemSort |
getSortElem(int i)
Get a xsl:sort element associated with this element.
|
int |
getSortElemCount()
Get the count xsl:sort elements associated with this element.
|
int |
getXSLToken()
Get an int constant identifying the type of element.
|
void |
setExpression(Expression exp)
Set the raw expression object for this object.
|
void |
setSelect(XPath xpath)
Set the "select" attribute.
|
void |
setSortElem(ElemSort sortElem)
Set a xsl:sort element associated with this element.
|
DTMIterator |
sortNodes(XPathContext xctxt,
java.util.Vector keys,
DTMIterator sourceNodes)
Sort given nodes
|
void |
transformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child.
|
appendChild, callVisitors, canAcceptVariables, canStripWhiteSpace, compareTo, containsExcludeResultPrefix, error, error, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getBaseIdentifier, getChildNodes, getColumnNumber, getDeclaredPrefixes, getDOMBackPointer, getEndColumnNumber, getEndLineNumber, getFirstChild, getFirstChildElem, getLastChild, getLastChildElem, getLength, getLineNumber, getLocalName, getNamespaceForPrefix, getNamespaceForPrefix, getNextSibling, getNextSiblingElem, getNodeType, getOwnerDocument, getOwnerXSLTemplate, getParentElem, getParentNode, getParentNodeElem, getPreviousSibling, getPreviousSiblingElem, getPublicId, getStylesheet, getStylesheetComposed, getStylesheetRoot, getSystemId, getTagName, getUid, getXmlSpace, handlesNullPrefixes, hasChildNodes, hasTextLitOnly, hasVariableDecl, insertBefore, isCompiledTemplate, item, recompose, removeChild, replaceChild, replaceChild, resolvePrefixTables, runtimeInit, setDOMBackPointer, setEndLocaterInfo, setLocaterInfo, setParentElem, setPrefixes, setPrefixes, setUid, setXmlSpace, shouldStripWhiteSpaceadoptNode, appendData, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, getActualEncoding, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getInputEncoding, getNamespaceURI, getNodeValue, getOwnerElement, getPrefix, getSchemaTypeInfo, getSpecified, getStrictErrorChecking, getTextContent, getUserData, getWholeText, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttribute, hasAttributeNS, hasAttributes, importNode, insertData, isDefaultNamespace, isEqualNode, isId, isSameNode, isSupported, isWhitespaceInElementContent, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, renameNode, replaceData, replaceWholeText, setActualEncoding, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setData, setDocumentURI, setIdAttribute, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInputEncoding, setNodeValue, setPrefix, setStrictErrorChecking, setTextContent, setUserData, setValue, setXmlEncoding, setXmlStandalone, setXmlVersion, splitText, substringDatapublic boolean m_doc_cache_off
public void setSelect(XPath xpath)
xpath - The XPath expression for the "select" attribute.public Expression getSelect()
public void compose(StylesheetRoot sroot) throws TransformerException
compose in class ElemTemplateElementTransformerExceptionpublic void endCompose(StylesheetRoot sroot) throws TransformerException
endCompose in class ElemTemplateElementTransformerExceptionpublic int getSortElemCount()
public ElemSort getSortElem(int i)
i - Index of xsl:sort element to getpublic void setSortElem(ElemSort sortElem)
sortElem - xsl:sort element to setpublic int getXSLToken()
getXSLToken in class ElemTemplateElementConstantspublic java.lang.String getNodeName()
getNodeName in interface NodegetNodeName in class ElemTemplateElementpublic void execute(TransformerImpl transformer) throws TransformerException
execute in class ElemTemplateElementtransformer - non-null reference to the the current transform-time state.TransformerExceptionpublic DTMIterator sortNodes(XPathContext xctxt, java.util.Vector keys, DTMIterator sourceNodes) throws TransformerException
xctxt - The XPath runtime state for the sort.keys - Vector of sort keyxsourceNodes - Iterator of nodes to sortTransformerExceptionpublic void transformSelectedNodes(TransformerImpl transformer) throws TransformerException
transformer - non-null reference to the the current transform-time state.TransformerException - Thrown in a variety of circumstances.public ElemTemplateElement appendChild(ElemTemplateElement newChild)
appendChild in class ElemTemplateElementnewChild - Child to add to child listpublic void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
visitor - The visitor whose appropriate method will be called.public Expression getExpression()
ExpressionOwnergetExpression in interface ExpressionOwnerExpressionOwner.getExpression()public void setExpression(Expression exp)
ExpressionOwnersetExpression in interface ExpressionOwnerexp - the raw Expression object, which should not normally be null.ExpressionOwner.setExpression(Expression)Copyright © 2014 Apache XML Project. All Rights Reserved.