org.apache.xalan.templates
Class XSLTVisitor
A derivation from this class can be passed to a class that implements
the XSLTVisitable interface, to have the appropriate method called
for each component of an XSLT stylesheet. Aside from possible other uses,
the main intention is to provide a reasonable means to perform expression
rewriting.
visitBinaryOperation , visitFunction , visitLocationPath , visitMatchPattern , visitNumberLiteral , visitPredicate , visitStep , visitStringLiteral , visitUnaryOperation , visitUnionPath , visitUnionPattern , visitVariableRef |
visitAVT
public boolean visitAVT(AVT elem)
Visit an Attribute Value Template (at the top level).
elem
- The attribute value template object.
- true if the sub expressions should be traversed.
visitExtensionElement
public boolean visitExtensionElement(ElemExtensionCall elem)
Visit an extension element.
elem
- The extension object.
- true if the sub expressions should be traversed.
visitInstruction
public boolean visitInstruction(ElemTemplateElement elem)
Visit an XSLT instruction. Any element that isn't called by one
of the other visit methods, will be called by this method.
elem
- The xsl instruction element object.
- true if the sub expressions should be traversed.
visitLiteralResultElement
public boolean visitLiteralResultElement(ElemLiteralResult elem)
Visit a LiteralResultElement.
elem
- The literal result object.
- true if the sub expressions should be traversed.
visitStylesheet
public boolean visitStylesheet(ElemTemplateElement elem)
Visit an XSLT stylesheet instruction.
elem
- The xsl instruction element object.
- true if the sub expressions should be traversed.
visitTopLevelInstruction
public boolean visitTopLevelInstruction(ElemTemplateElement elem)
Visit an XSLT top-level instruction.
elem
- The xsl instruction element object.
- true if the sub expressions should be traversed.
visitTopLevelVariableOrParamDecl
public boolean visitTopLevelVariableOrParamDecl(ElemTemplateElement elem)
Visit an XSLT top-level instruction.
elem
- The xsl instruction element object.
- true if the sub expressions should be traversed.
visitVariableOrParamDecl
public boolean visitVariableOrParamDecl(ElemVariable elem)
Visit an XSLT variable or parameter declaration.
elem
- The xsl instruction element object.
- true if the sub expressions should be traversed.
Copyright B) 2006 Apache XML Project. All Rights Reserved.