|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.icl.saxon.expr.StandaloneContext
A StandaloneContext provides a context for parsing an expression or pattern appearing in a context other than a stylesheet.
| Constructor Summary | |
StandaloneContext(NamePool pool)
Create a StandaloneContext using s specific NamePool |
|
| Method Summary | |
boolean |
allowsKeyFunction()
Determine whether the key() function is permmitted in this context |
Binding |
bindVariable(int fingerprint)
Bind a variable used in this element to the XSLVariable element in which it is declared |
void |
declareNamespace(java.lang.String prefix,
java.lang.String uri)
Declare a namespace whose prefix can be used in expressions |
boolean |
forwardsCompatibleModeIsEnabled()
Determine whether forwards-compatible mode is enabled |
int |
getFingerprint(java.lang.String qname,
boolean useDefault)
Make a fingerprint, using this Element as the context for namespace resolution |
int |
getLineNumber()
Get the line number of the expression within that container |
Function |
getStyleSheetFunction(int fingerprint)
|
java.lang.String |
getSystemId()
Get the system id (base URI) of the container of the expression |
java.lang.String |
getURIForPrefix(java.lang.String prefix)
Get the URI for a prefix, using this Element as the context for namespace resolution |
boolean |
isElementAvailable(java.lang.String qname)
Determine if an extension element is available |
boolean |
isExtensionNamespace(short uriCode)
Determine whether a given URI identifies an extension element namespace |
boolean |
isFunctionAvailable(java.lang.String qname)
Determine if a function is available |
int |
makeNameCode(java.lang.String qname,
boolean useDefault)
Make a NameCode, using this Element as the context for namespace resolution |
NamespaceTest |
makeNamespaceTest(short nodeType,
java.lang.String prefix)
Make a NamespaceTest, using this element as the context for namespace resolution |
NameTest |
makeNameTest(short nodeType,
java.lang.String qname,
boolean useDefault)
Make a NameTest, using this element as the context for namespace resolution |
StaticContext |
makeRuntimeContext(NamePool pool)
Copy the context with a different namepool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandaloneContext(NamePool pool)
| Method Detail |
public void declareNamespace(java.lang.String prefix,
java.lang.String uri)
public StaticContext makeRuntimeContext(NamePool pool)
makeRuntimeContext in interface StaticContextpublic java.lang.String getSystemId()
getSystemId in interface StaticContextpublic int getLineNumber()
getLineNumber in interface StaticContext
public java.lang.String getURIForPrefix(java.lang.String prefix)
throws org.xml.sax.SAXException
getURIForPrefix in interface StaticContextprefix - The prefix
public final int makeNameCode(java.lang.String qname,
boolean useDefault)
throws org.xml.sax.SAXException
makeNameCode in interface StaticContextqname - The name as written, in the form "[prefix:]localname"
public final int getFingerprint(java.lang.String qname,
boolean useDefault)
throws org.xml.sax.SAXException
getFingerprint in interface StaticContextqname - The name as written, in the form "[prefix:]localname"
public NameTest makeNameTest(short nodeType,
java.lang.String qname,
boolean useDefault)
throws org.xml.sax.SAXException
makeNameTest in interface StaticContext
public NamespaceTest makeNamespaceTest(short nodeType,
java.lang.String prefix)
throws org.xml.sax.SAXException
makeNamespaceTest in interface StaticContext
public Binding bindVariable(int fingerprint)
throws org.xml.sax.SAXException
bindVariable in interface StaticContextcom.icl.saxon.expr.StaticContextfingerprint - The fingerprint of the variable nameorg.xml.sax.SAXException - if the variable has not been declared, or if the context
does not allow the use of variablespublic boolean isExtensionNamespace(short uriCode)
isExtensionNamespace in interface StaticContextpublic boolean forwardsCompatibleModeIsEnabled()
forwardsCompatibleModeIsEnabled in interface StaticContext
public Function getStyleSheetFunction(int fingerprint)
throws org.xml.sax.SAXException
getStyleSheetFunction in interface StaticContext
public boolean isElementAvailable(java.lang.String qname)
throws org.xml.sax.SAXException
isElementAvailable in interface StaticContext
public boolean isFunctionAvailable(java.lang.String qname)
throws org.xml.sax.SAXException
isFunctionAvailable in interface StaticContextpublic boolean allowsKeyFunction()
allowsKeyFunction in interface StaticContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||