|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.UnImplNode org.apache.xalan.templates.ElemTemplateElement org.apache.xalan.templates.ElemForEach org.apache.xalan.templates.ElemCallTemplate org.apache.xalan.templates.ElemApplyTemplates
public class ElemApplyTemplates
Implement xsl:apply-templates.
&!ELEMENT xsl:apply-templates (xsl:sort|xsl:with-param)*> &!ATTLIST xsl:apply-templates select %expr; "node()" mode %qname; #IMPLIED &
Field Summary | |
---|---|
private boolean |
m_isDefaultTemplate
Tells if this belongs to a default template, in which case it will act different with regard to processing modes. |
private QName |
m_mode
mode %qname; #IMPLIED |
(package private) static long |
serialVersionUID
|
Fields inherited from class org.apache.xalan.templates.ElemCallTemplate |
---|
m_paramElems, m_templateName |
Fields inherited from class org.apache.xalan.templates.ElemForEach |
---|
DEBUG, m_doc_cache_off, m_selectExpression, m_sortElems, m_xpath |
Fields inherited from class org.apache.xalan.templates.ElemTemplateElement |
---|
m_docOrderNumber, m_firstChild, m_hasVariableDecl, m_nextSibling, m_parentNode |
Fields inherited from class org.apache.xml.utils.UnImplNode |
---|
actualEncoding, fDocumentURI |
Fields inherited from interface org.w3c.dom.Node |
---|
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 |
Fields inherited from interface org.w3c.dom.Node |
---|
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 |
Fields inherited from interface org.w3c.dom.Node |
---|
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 Summary | |
---|---|
ElemApplyTemplates()
|
Method Summary | |
---|---|
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 |
execute(TransformerImpl transformer)
Apply the context node to the matching templates. |
QName |
getMode()
Get the mode attribute for this element. |
java.lang.String |
getNodeName()
Return the node name. |
int |
getXSLToken()
Get an int constant identifying the type of element. |
void |
setIsDefaultTemplate(boolean b)
Set if this belongs to a default template, in which case it will act different with regard to processing modes. |
void |
setMode(QName mode)
Set the mode attribute for this element. |
void |
transformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child. |
Methods inherited from class org.apache.xalan.templates.ElemCallTemplate |
---|
appendChild, callChildVisitors, endCompose, getName, getParamElem, getParamElemCount, setName, setParamElem |
Methods inherited from class org.apache.xalan.templates.ElemForEach |
---|
getExpression, getSelect, getSortElem, getSortElemCount, getTemplateMatch, setExpression, setSelect, setSortElem, sortNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private QName m_mode
private boolean m_isDefaultTemplate
Constructor Detail |
---|
public ElemApplyTemplates()
Method Detail |
---|
public void setMode(QName mode)
mode
- reference, which may be null, to the current mode.public QName getMode()
public void setIsDefaultTemplate(boolean b)
b
- boolean value to set.public int getXSLToken()
getXSLToken
in class ElemCallTemplate
Constants
public void compose(StylesheetRoot sroot) throws javax.xml.transform.TransformerException
compose
in class ElemCallTemplate
javax.xml.transform.TransformerException
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class ElemCallTemplate
public void execute(TransformerImpl transformer) throws javax.xml.transform.TransformerException
execute
in class ElemCallTemplate
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
public void transformSelectedNodes(TransformerImpl transformer) throws javax.xml.transform.TransformerException
transformSelectedNodes
in class ElemForEach
transformer
- non-null reference to the the current transform-time state.
javax.xml.transform.TransformerException
- Thrown in a variety of circumstances.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |