org.apache.xalan.extensions

Class ExpressionVisitor

public class ExpressionVisitor extends XPathVisitor

When {@link org.apache.xalan.processor.StylesheetHandler} creates an {@link org.apache.xpath.XPath}, the ExpressionVisitor visits the XPath expression. For any extension functions it encounters, it instructs StylesheetRoot to register the extension namespace. This mechanism is required to locate extension functions that may be embedded within an expression.
Constructor Summary
ExpressionVisitor(StylesheetRoot sroot)
The constructor sets the StylesheetRoot variable which is used to register extension namespaces.
Method Summary
booleanvisitFunction(ExpressionOwner owner, Function func)
If the function is an extension function, register the namespace.

Constructor Detail

ExpressionVisitor

public ExpressionVisitor(StylesheetRoot sroot)
The constructor sets the StylesheetRoot variable which is used to register extension namespaces.

Parameters: sroot the StylesheetRoot that is being constructed.

Method Detail

visitFunction

public boolean visitFunction(ExpressionOwner owner, Function func)
If the function is an extension function, register the namespace.

Parameters: owner The current XPath object that owns the expression. func The function currently being visited.

Returns: true to continue the visit in the subtree, if any.

Copyright B) 2005 Apache XML Project. All Rights Reserved.