Package org.apache.xalan.templates
Class XSLTVisitor
java.lang.Object
org.apache.xpath.XPathVisitor
org.apache.xalan.templates.XSLTVisitor
- Direct Known Subclasses:
RedundentExprEliminator
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Visit an Attribute Value Template (at the top level).boolean
Visit an extension element.boolean
Visit an XSLT instruction.boolean
Visit a LiteralResultElement.boolean
Visit an XSLT stylesheet instruction.boolean
Visit an XSLT top-level instruction.boolean
Visit an XSLT top-level instruction.boolean
Visit an XSLT variable or parameter declaration.Methods inherited from class org.apache.xpath.XPathVisitor
visitBinaryOperation, visitFunction, visitLocationPath, visitMatchPattern, visitNumberLiteral, visitPredicate, visitStep, visitStringLiteral, visitUnaryOperation, visitUnionPath, visitUnionPattern, visitVariableRef
-
Constructor Details
-
XSLTVisitor
public XSLTVisitor()
-
-
Method Details
-
visitInstruction
Visit an XSLT instruction. Any element that isn't called by one of the other visit methods, will be called by this method.- Parameters:
elem
- The xsl instruction element object.- Returns:
- true if the sub expressions should be traversed.
-
visitStylesheet
Visit an XSLT stylesheet instruction.- Parameters:
elem
- The xsl instruction element object.- Returns:
- true if the sub expressions should be traversed.
-
visitTopLevelInstruction
Visit an XSLT top-level instruction.- Parameters:
elem
- The xsl instruction element object.- Returns:
- true if the sub expressions should be traversed.
-
visitTopLevelVariableOrParamDecl
Visit an XSLT top-level instruction.- Parameters:
elem
- The xsl instruction element object.- Returns:
- true if the sub expressions should be traversed.
-
visitVariableOrParamDecl
Visit an XSLT variable or parameter declaration.- Parameters:
elem
- The xsl instruction element object.- Returns:
- true if the sub expressions should be traversed.
-
visitLiteralResultElement
Visit a LiteralResultElement.- Parameters:
elem
- The literal result object.- Returns:
- true if the sub expressions should be traversed.
-
visitAVT
Visit an Attribute Value Template (at the top level).- Parameters:
elem
- The attribute value template object.- Returns:
- true if the sub expressions should be traversed.
-
visitExtensionElement
Visit an extension element.- Parameters:
elem
- The extension object.- Returns:
- true if the sub expressions should be traversed.
-