com.icl.saxon.expr
Interface StaticContext

All Known Implementing Classes:
DummyStaticContext, StyleElement

public interface StaticContext

A StaticContext contains the information needed while an expression or patter is being parsed.


Method Summary
 Binding bindVariable(java.lang.String name)
          Bind a variable to an object that can be used to refer to it
 boolean forwardsCompatibleModeIsEnabled()
          Determine whether forwards-compatible mode is enabled
 int getLineNumber()
          Get the line number of the expression within that container Returns -1 if no line number is available
 Function getStyleSheetFunction(Name name)
          Bind an XSLT function name: return null if not found
 java.lang.String getSystemId()
          Get the system id (URL) of the container of the expression
 boolean isExtensionNamespace(java.lang.String uri)
          Determine whether a given URI identifies an extension element namespace
 Name makeName(java.lang.String tag, boolean useDefault)
          Make an Name, using this Element as the context for namespace resolution
 NameTest makePrefixTest(java.lang.String wildcard)
          Make a NameTest object for a prefix:* wildcard
 

Method Detail

getSystemId

public java.lang.String getSystemId()
Get the system id (URL) of the container of the expression

getLineNumber

public int getLineNumber()
Get the line number of the expression within that container Returns -1 if no line number is available

makeName

public Name makeName(java.lang.String tag,
                     boolean useDefault)
              throws org.xml.sax.SAXException
Make an Name, using this Element as the context for namespace resolution
Parameters:
tag - The name as written, in the form "[prefix:]localname"

makePrefixTest

public NameTest makePrefixTest(java.lang.String wildcard)
                        throws org.xml.sax.SAXException
Make a NameTest object for a prefix:* wildcard

bindVariable

public Binding bindVariable(java.lang.String name)
                     throws org.xml.sax.SAXException
Bind a variable to an object that can be used to refer to it
Returns:
a Binding object that can be used to identify it in the Bindery
Throws:
org.xml.sax.SAXException - if the variable has not been declared, or if the context does not allow the use of variables

isExtensionNamespace

public boolean isExtensionNamespace(java.lang.String uri)
                             throws org.xml.sax.SAXException
Determine whether a given URI identifies an extension element namespace

forwardsCompatibleModeIsEnabled

public boolean forwardsCompatibleModeIsEnabled()
                                        throws org.xml.sax.SAXException
Determine whether forwards-compatible mode is enabled

getStyleSheetFunction

public Function getStyleSheetFunction(Name name)
                               throws org.xml.sax.SAXException
Bind an XSLT function name: return null if not found