com.icl.saxon.expr
Class DummyStaticContext

java.lang.Object
  |
  +--com.icl.saxon.expr.DummyStaticContext
All Implemented Interfaces:
StaticContext

public class DummyStaticContext
extends java.lang.Object
implements StaticContext

A DummyStaticContext provides a minimal context for parsing an expression or pattern


Constructor Summary
DummyStaticContext()
           
 
Method Summary
 Binding bindVariable(java.lang.String name)
          Bind a variable used in this element to the XSLVariable element in which it is declared
 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 a Name object from a [prefix:]name source tag
 NameTest makePrefixTest(java.lang.String wildcard)
          Make a NameTest object for an Element from a prefix:* wildcard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyStaticContext

public DummyStaticContext()
Method Detail

getSystemId

public java.lang.String getSystemId()
Get the system id (URL) of the container of the expression
Specified by:
getSystemId in interface StaticContext

getLineNumber

public int getLineNumber()
Get the line number of the expression within that container Returns -1 if no line number is available
Specified by:
getLineNumber in interface StaticContext

makeName

public Name makeName(java.lang.String tag,
                     boolean useDefault)
              throws org.xml.sax.SAXException
Make a Name object from a [prefix:]name source tag
Specified by:
makeName in interface StaticContext
Following copied from interface: com.icl.saxon.expr.StaticContext
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 an Element from a prefix:* wildcard
Specified by:
makePrefixTest in interface StaticContext

bindVariable

public Binding bindVariable(java.lang.String name)
                     throws org.xml.sax.SAXException
Bind a variable used in this element to the XSLVariable element in which it is declared
Specified by:
bindVariable in interface StaticContext
Following copied from interface: com.icl.saxon.expr.StaticContext
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)
Determine whether a given URI identifies an extension element namespace
Specified by:
isExtensionNamespace in interface StaticContext

forwardsCompatibleModeIsEnabled

public boolean forwardsCompatibleModeIsEnabled()
Determine whether forwards-compatible mode is enabled
Specified by:
forwardsCompatibleModeIsEnabled in interface StaticContext

getStyleSheetFunction

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