<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Fri Dec 09 20:48:28 GMT 2011 --> <TITLE> ExpressionContext </TITLE> <META NAME="date" CONTENT="2011-12-09"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="ExpressionContext"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../net/sf/saxon/style/Declaration.html" title="class in net.sf.saxon.style"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/style/ExtensionInstruction.html" title="class in net.sf.saxon.style"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/style/ExpressionContext.html" target="_top"><B>FRAMES</B></A> <A HREF="ExpressionContext.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> net.sf.saxon.style</FONT> <BR> Class ExpressionContext</H2> <PRE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.saxon.style.ExpressionContext</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A>, <A HREF="../../../../net/sf/saxon/style/XSLTStaticContext.html" title="interface in net.sf.saxon.style">XSLTStaticContext</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>ExpressionContext</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../net/sf/saxon/style/XSLTStaticContext.html" title="interface in net.sf.saxon.style">XSLTStaticContext</A></DL> </PRE> <P> An ExpressionContext represents the context for an XPath expression written in the stylesheet. <P> <P> <HR> <P> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#ExpressionContext(net.sf.saxon.style.StyleElement)">ExpressionContext</A></B>(<A HREF="../../../../net/sf/saxon/style/StyleElement.html" title="class in net.sf.saxon.style">StyleElement</A> styleElement)</CODE> <BR> Create a static context for XPath expressions in an XSLT stylesheet</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/expr/Expression.html" title="class in net.sf.saxon.expr">Expression</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#bindVariable(net.sf.saxon.om.StructuredQName)">bindVariable</A></B>(<A HREF="../../../../net/sf/saxon/om/StructuredQName.html" title="class in net.sf.saxon.om">StructuredQName</A> qName)</CODE> <BR> Bind a variable to an object that can be used to refer to it</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getBaseURI()">getBaseURI</A></B>()</CODE> <BR> Get the Base URI of the element containing the expression, for resolving any relative URI's used in the expression.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/lib/StringCollator.html" title="interface in net.sf.saxon.lib">StringCollator</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getCollation(java.lang.String)">getCollation</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> <BR> Get a named collation.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getConfiguration()">getConfiguration</A></B>()</CODE> <BR> Get the system configuration</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/trans/DecimalFormatManager.html" title="class in net.sf.saxon.trans">DecimalFormatManager</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getDecimalFormatManager()">getDecimalFormatManager</A></B>()</CODE> <BR> Get a DecimalFormatManager to resolve the names of decimal formats used in calls to the format-number() function.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getDefaultCollationName()">getDefaultCollationName</A></B>()</CODE> <BR> Get the default collation.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getDefaultElementNamespace()">getDefaultElementNamespace</A></B>()</CODE> <BR> Get the default XPath namespace for elements and types Return NamespaceConstant.NULL for the non-namespace</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getDefaultFunctionNamespace()">getDefaultFunctionNamespace</A></B>()</CODE> <BR> Get the default function namespace</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/expr/instruct/Executable.html" title="class in net.sf.saxon.expr.instruct">Executable</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getExecutable()">getExecutable</A></B>()</CODE> <BR> Get the executable</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getFingerprint(java.lang.String, boolean)">getFingerprint</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> qname, boolean useDefault)</CODE> <BR> Get a fingerprint for a name, using this as the context for namespace resolution</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/functions/FunctionLibrary.html" title="interface in net.sf.saxon.functions">FunctionLibrary</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getFunctionLibrary()">getFunctionLibrary</A></B>()</CODE> <BR> Get the function library containing all the in-scope functions available in this static context</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getImportedSchemaNamespaces()">getImportedSchemaNamespaces</A></B>()</CODE> <BR> Get the set of imported schemas</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getLineNumber()">getLineNumber</A></B>()</CODE> <BR> Get the line number of the expression within its containing entity Returns -1 if no line number is available</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/expr/instruct/LocationMap.html" title="class in net.sf.saxon.expr.instruct">LocationMap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getLocationMap()">getLocationMap</A></B>()</CODE> <BR> Get the location map</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/om/NamePool.html" title="class in net.sf.saxon.om">NamePool</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getNamePool()">getNamePool</A></B>()</CODE> <BR> Get the NamePool used for compiling expressions</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/om/NamespaceResolver.html" title="interface in net.sf.saxon.om">NamespaceResolver</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getNamespaceResolver()">getNamespaceResolver</A></B>()</CODE> <BR> Get a copy of the NamespaceResolver suitable for saving in the executable code</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getRequiredContextItemType()">getRequiredContextItemType</A></B>()</CODE> <BR> Get the required type of the context item.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/om/StructuredQName.html" title="class in net.sf.saxon.om">StructuredQName</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getStructuredQName(java.lang.String, boolean)">getStructuredQName</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> qname, boolean useDefault)</CODE> <BR> Get a StructuredQName for a name, using this as the context for namespace resolution</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/style/StyleElement.html" title="class in net.sf.saxon.style">StyleElement</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getStyleElement()">getStyleElement</A></B>()</CODE> <BR> Get the stylesheet element containing this XPath expression</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getSystemId()">getSystemId</A></B>()</CODE> <BR> Get the System ID of the entity containing the expression (used for diagnostics)</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getURIForPrefix(java.lang.String)">getURIForPrefix</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> prefix)</CODE> <BR> Get the URI for a prefix, using this Element as the context for namespace resolution.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/value/DecimalValue.html" title="class in net.sf.saxon.value">DecimalValue</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#getXPathLanguageLevel()">getXPathLanguageLevel</A></B>()</CODE> <BR> Get the XPath language level supported, as a string.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#isAllowedBuiltInType(net.sf.saxon.type.BuiltInAtomicType)">isAllowedBuiltInType</A></B>(<A HREF="../../../../net/sf/saxon/type/BuiltInAtomicType.html" title="class in net.sf.saxon.type">BuiltInAtomicType</A> type)</CODE> <BR> Determine whether a built-in type is available in this context.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#isElementAvailable(java.lang.String)">isElementAvailable</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> qname)</CODE> <BR> Determine if an extension element is available</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#isImportedSchema(java.lang.String)">isImportedSchema</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> namespace)</CODE> <BR> Test whether a schema has been imported for a given namespace</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#isInBackwardsCompatibleMode()">isInBackwardsCompatibleMode</A></B>()</CODE> <BR> Determine whether Backwards Compatible Mode is used</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#isSchemaAware()">isSchemaAware</A></B>()</CODE> <BR> Ask whether expressions compiled under this static context are schema-aware.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#issueWarning(java.lang.String, javax.xml.transform.SourceLocator)">issueWarning</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/SourceLocator.html?is-external=true" title="class or interface in javax.xml.transform">SourceLocator</A> locator)</CODE> <BR> Issue a compile-time warning</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../net/sf/saxon/expr/XPathContext.html" title="interface in net.sf.saxon.expr">XPathContext</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sf/saxon/style/ExpressionContext.html#makeEarlyEvaluationContext()">makeEarlyEvaluationContext</A></B>()</CODE> <BR> Construct a dynamic context for early evaluation of constant subexpressions</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="ExpressionContext(net.sf.saxon.style.StyleElement)"><!-- --></A><H3> ExpressionContext</H3> <PRE> public <B>ExpressionContext</B>(<A HREF="../../../../net/sf/saxon/style/StyleElement.html" title="class in net.sf.saxon.style">StyleElement</A> styleElement)</PRE> <DL> <DD>Create a static context for XPath expressions in an XSLT stylesheet <P> <DL> <DT><B>Parameters:</B><DD><CODE>styleElement</CODE> - the element on which the XPath expression appears</DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="getConfiguration()"><!-- --></A><H3> getConfiguration</H3> <PRE> public <A HREF="../../../../net/sf/saxon/Configuration.html" title="class in net.sf.saxon">Configuration</A> <B>getConfiguration</B>()</PRE> <DL> <DD>Get the system configuration <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getConfiguration()">getConfiguration</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the Saxon configuration</DL> </DD> </DL> <HR> <A NAME="getExecutable()"><!-- --></A><H3> getExecutable</H3> <PRE> public <A HREF="../../../../net/sf/saxon/expr/instruct/Executable.html" title="class in net.sf.saxon.expr.instruct">Executable</A> <B>getExecutable</B>()</PRE> <DL> <DD>Get the executable <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the executable</DL> </DD> </DL> <HR> <A NAME="isSchemaAware()"><!-- --></A><H3> isSchemaAware</H3> <PRE> public boolean <B>isSchemaAware</B>()</PRE> <DL> <DD>Ask whether expressions compiled under this static context are schema-aware. They must be schema-aware if the expression is to handle typed (validated) nodes <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#isSchemaAware()">isSchemaAware</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>true if expressions are schema-aware</DL> </DD> </DL> <HR> <A NAME="makeEarlyEvaluationContext()"><!-- --></A><H3> makeEarlyEvaluationContext</H3> <PRE> public <A HREF="../../../../net/sf/saxon/expr/XPathContext.html" title="interface in net.sf.saxon.expr">XPathContext</A> <B>makeEarlyEvaluationContext</B>()</PRE> <DL> <DD>Construct a dynamic context for early evaluation of constant subexpressions <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#makeEarlyEvaluationContext()">makeEarlyEvaluationContext</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a newly constructed dynamic context</DL> </DD> </DL> <HR> <A NAME="getLocationMap()"><!-- --></A><H3> getLocationMap</H3> <PRE> public <A HREF="../../../../net/sf/saxon/expr/instruct/LocationMap.html" title="class in net.sf.saxon.expr.instruct">LocationMap</A> <B>getLocationMap</B>()</PRE> <DL> <DD>Get the location map <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getLocationMap()">getLocationMap</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the location map</DL> </DD> </DL> <HR> <A NAME="issueWarning(java.lang.String, javax.xml.transform.SourceLocator)"><!-- --></A><H3> issueWarning</H3> <PRE> public void <B>issueWarning</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> s, <A HREF="http://download.oracle.com/javase/6/docs/api/javax/xml/transform/SourceLocator.html?is-external=true" title="class or interface in javax.xml.transform">SourceLocator</A> locator)</PRE> <DL> <DD>Issue a compile-time warning <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#issueWarning(java.lang.String, javax.xml.transform.SourceLocator)">issueWarning</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>s</CODE> - The warning message. This should not contain any prefix such as "Warning".<DD><CODE>locator</CODE> - the location of the construct in question. May be null.</DL> </DD> </DL> <HR> <A NAME="getNamePool()"><!-- --></A><H3> getNamePool</H3> <PRE> public <A HREF="../../../../net/sf/saxon/om/NamePool.html" title="class in net.sf.saxon.om">NamePool</A> <B>getNamePool</B>()</PRE> <DL> <DD>Get the NamePool used for compiling expressions <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getNamePool()">getNamePool</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the name pool</DL> </DD> </DL> <HR> <A NAME="getSystemId()"><!-- --></A><H3> getSystemId</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getSystemId</B>()</PRE> <DL> <DD>Get the System ID of the entity containing the expression (used for diagnostics) <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getSystemId()">getSystemId</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the system ID</DL> </DD> </DL> <HR> <A NAME="getLineNumber()"><!-- --></A><H3> getLineNumber</H3> <PRE> public int <B>getLineNumber</B>()</PRE> <DL> <DD>Get the line number of the expression within its containing entity Returns -1 if no line number is available <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getLineNumber()">getLineNumber</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the line number, or -1 if not available</DL> </DD> </DL> <HR> <A NAME="getBaseURI()"><!-- --></A><H3> getBaseURI</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getBaseURI</B>()</PRE> <DL> <DD>Get the Base URI of the element containing the expression, for resolving any relative URI's used in the expression. Used by the document() function. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getBaseURI()">getBaseURI</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the static base URI, or null if not known</DL> </DD> </DL> <HR> <A NAME="getURIForPrefix(java.lang.String)"><!-- --></A><H3> getURIForPrefix</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getURIForPrefix</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> prefix) throws <A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Get the URI for a prefix, using this Element as the context for namespace resolution. The default namespace will not be used when the prefix is empty. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getURIForPrefix(java.lang.String)">getURIForPrefix</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The prefix <DT><B>Returns:</B><DD>the corresponding namespace URI <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE> - if the prefix is not declared</DL> </DD> </DL> <HR> <A NAME="getNamespaceResolver()"><!-- --></A><H3> getNamespaceResolver</H3> <PRE> public <A HREF="../../../../net/sf/saxon/om/NamespaceResolver.html" title="interface in net.sf.saxon.om">NamespaceResolver</A> <B>getNamespaceResolver</B>()</PRE> <DL> <DD>Get a copy of the NamespaceResolver suitable for saving in the executable code <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getNamespaceResolver()">getNamespaceResolver</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a NamespaceResolver</DL> </DD> </DL> <HR> <A NAME="getRequiredContextItemType()"><!-- --></A><H3> getRequiredContextItemType</H3> <PRE> public <A HREF="../../../../net/sf/saxon/type/ItemType.html" title="interface in net.sf.saxon.type">ItemType</A> <B>getRequiredContextItemType</B>()</PRE> <DL> <DD>Get the required type of the context item. If no type has been explicitly declared for the context item, an instance of AnyItemType (representing the type item()) is returned. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getRequiredContextItemType()">getRequiredContextItemType</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the required type of the context item<DT><B>Since:</B></DT> <DD>9.3</DD> </DL> </DD> </DL> <HR> <A NAME="getDecimalFormatManager()"><!-- --></A><H3> getDecimalFormatManager</H3> <PRE> public <A HREF="../../../../net/sf/saxon/trans/DecimalFormatManager.html" title="class in net.sf.saxon.trans">DecimalFormatManager</A> <B>getDecimalFormatManager</B>()</PRE> <DL> <DD>Get a DecimalFormatManager to resolve the names of decimal formats used in calls to the format-number() function. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getDecimalFormatManager()">getDecimalFormatManager</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the decimal format manager for this static context, or null if named decimal formats are not supported in this environment.</DL> </DD> </DL> <HR> <A NAME="getFingerprint(java.lang.String, boolean)"><!-- --></A><H3> getFingerprint</H3> <PRE> public int <B>getFingerprint</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> qname, boolean useDefault) throws <A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Get a fingerprint for a name, using this as the context for namespace resolution <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>qname</CODE> - The name as written, in the form "[prefix:]localname"<DD><CODE>useDefault</CODE> - Defines the action when there is no prefix. If true, use the default namespace URI (as for element names). If false, use no namespace URI (as for attribute names). <DT><B>Returns:</B><DD>-1 if the name is not already present in the name pool <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE></DL> </DD> </DL> <HR> <A NAME="getStructuredQName(java.lang.String, boolean)"><!-- --></A><H3> getStructuredQName</H3> <PRE> public <A HREF="../../../../net/sf/saxon/om/StructuredQName.html" title="class in net.sf.saxon.om">StructuredQName</A> <B>getStructuredQName</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> qname, boolean useDefault) throws <A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Get a StructuredQName for a name, using this as the context for namespace resolution <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>qname</CODE> - The name as written, in the form "[prefix:]localname"<DD><CODE>useDefault</CODE> - Defines the action when there is no prefix. If true, use the default namespace URI (as for element names). If false, use no namespace URI (as for attribute names). <DT><B>Returns:</B><DD>-1 if the name is not already present in the name pool <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE></DL> </DD> </DL> <HR> <A NAME="bindVariable(net.sf.saxon.om.StructuredQName)"><!-- --></A><H3> bindVariable</H3> <PRE> public <A HREF="../../../../net/sf/saxon/expr/Expression.html" title="class in net.sf.saxon.expr">Expression</A> <B>bindVariable</B>(<A HREF="../../../../net/sf/saxon/om/StructuredQName.html" title="class in net.sf.saxon.om">StructuredQName</A> qName) throws <A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Bind a variable to an object that can be used to refer to it <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#bindVariable(net.sf.saxon.om.StructuredQName)">bindVariable</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>qName</CODE> - the name of the variable <DT><B>Returns:</B><DD>a VariableDeclaration object that can be used to identify it in the Bindery, <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE> - if the variable has not been declared</DL> </DD> </DL> <HR> <A NAME="getFunctionLibrary()"><!-- --></A><H3> getFunctionLibrary</H3> <PRE> public <A HREF="../../../../net/sf/saxon/functions/FunctionLibrary.html" title="interface in net.sf.saxon.functions">FunctionLibrary</A> <B>getFunctionLibrary</B>()</PRE> <DL> <DD>Get the function library containing all the in-scope functions available in this static context <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getFunctionLibrary()">getFunctionLibrary</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the function library</DL> </DD> </DL> <HR> <A NAME="isElementAvailable(java.lang.String)"><!-- --></A><H3> isElementAvailable</H3> <PRE> public boolean <B>isElementAvailable</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> qname) throws <A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></PRE> <DL> <DD>Determine if an extension element is available <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/style/XSLTStaticContext.html#isElementAvailable(java.lang.String)">isElementAvailable</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/style/XSLTStaticContext.html" title="interface in net.sf.saxon.style">XSLTStaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE><A HREF="../../../../net/sf/saxon/trans/XPathException.html" title="class in net.sf.saxon.trans">XPathException</A></CODE> - if the name is invalid or the prefix is not declared</DL> </DD> </DL> <HR> <A NAME="getCollation(java.lang.String)"><!-- --></A><H3> getCollation</H3> <PRE> public <A HREF="../../../../net/sf/saxon/lib/StringCollator.html" title="interface in net.sf.saxon.lib">StringCollator</A> <B>getCollation</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> <DL> <DD>Get a named collation. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getCollation(java.lang.String)">getCollation</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the required collation. Supply null to get the default collation. <DT><B>Returns:</B><DD>the collation; or null if the required collation is not found.</DL> </DD> </DL> <HR> <A NAME="getDefaultCollationName()"><!-- --></A><H3> getDefaultCollationName</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDefaultCollationName</B>()</PRE> <DL> <DD>Get the default collation. Return null if no default collation has been defined <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getDefaultCollationName()">getDefaultCollationName</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the name of the default collation; or the name of the codepoint collation if no default collation has been defined</DL> </DD> </DL> <HR> <A NAME="getDefaultElementNamespace()"><!-- --></A><H3> getDefaultElementNamespace</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDefaultElementNamespace</B>()</PRE> <DL> <DD>Get the default XPath namespace for elements and types Return NamespaceConstant.NULL for the non-namespace <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getDefaultElementNamespace()">getDefaultElementNamespace</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the default namespace, or NamespaceConstant.NULL for the non-namespace</DL> </DD> </DL> <HR> <A NAME="getDefaultFunctionNamespace()"><!-- --></A><H3> getDefaultFunctionNamespace</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDefaultFunctionNamespace</B>()</PRE> <DL> <DD>Get the default function namespace <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getDefaultFunctionNamespace()">getDefaultFunctionNamespace</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the default namespace for function names</DL> </DD> </DL> <HR> <A NAME="isInBackwardsCompatibleMode()"><!-- --></A><H3> isInBackwardsCompatibleMode</H3> <PRE> public boolean <B>isInBackwardsCompatibleMode</B>()</PRE> <DL> <DD>Determine whether Backwards Compatible Mode is used <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#isInBackwardsCompatibleMode()">isInBackwardsCompatibleMode</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>true if 1.0 compaibility mode is in force.</DL> </DD> </DL> <HR> <A NAME="getXPathLanguageLevel()"><!-- --></A><H3> getXPathLanguageLevel</H3> <PRE> public <A HREF="../../../../net/sf/saxon/value/DecimalValue.html" title="class in net.sf.saxon.value">DecimalValue</A> <B>getXPathLanguageLevel</B>()</PRE> <DL> <DD>Get the XPath language level supported, as a string. The current levels supported are 2.0, and 3.0. The XPath language level will be the same as the XSLT processor version <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getXPathLanguageLevel()">getXPathLanguageLevel</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the XPath language level; the return value will be either <A HREF="../../../../net/sf/saxon/value/DecimalValue.html#TWO"><CODE>DecimalValue.TWO</CODE></A> or <A HREF="../../../../net/sf/saxon/value/DecimalValue.html#THREE"><CODE>DecimalValue.THREE</CODE></A><DT><B>Since:</B></DT> <DD>9.3</DD> </DL> </DD> </DL> <HR> <A NAME="isImportedSchema(java.lang.String)"><!-- --></A><H3> isImportedSchema</H3> <PRE> public boolean <B>isImportedSchema</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> namespace)</PRE> <DL> <DD>Test whether a schema has been imported for a given namespace <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#isImportedSchema(java.lang.String)">isImportedSchema</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - the target namespace of the required schema <DT><B>Returns:</B><DD>true if a schema for this namespace has been imported</DL> </DD> </DL> <HR> <A NAME="getImportedSchemaNamespaces()"><!-- --></A><H3> getImportedSchemaNamespaces</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>getImportedSchemaNamespaces</B>()</PRE> <DL> <DD>Get the set of imported schemas <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#getImportedSchemaNamespaces()">getImportedSchemaNamespaces</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a Set, the set of URIs representing the names of imported schemas</DL> </DD> </DL> <HR> <A NAME="isAllowedBuiltInType(net.sf.saxon.type.BuiltInAtomicType)"><!-- --></A><H3> isAllowedBuiltInType</H3> <PRE> public boolean <B>isAllowedBuiltInType</B>(<A HREF="../../../../net/sf/saxon/type/BuiltInAtomicType.html" title="class in net.sf.saxon.type">BuiltInAtomicType</A> type)</PRE> <DL> <DD>Determine whether a built-in type is available in this context. This method caters for differences between host languages as to which set of types are built in. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html#isAllowedBuiltInType(net.sf.saxon.type.BuiltInAtomicType)">isAllowedBuiltInType</A></CODE> in interface <CODE><A HREF="../../../../net/sf/saxon/expr/StaticContext.html" title="interface in net.sf.saxon.expr">StaticContext</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>type</CODE> - the supposedly built-in type. This will always be a type in the XS or XDT namespace. <DT><B>Returns:</B><DD>true if this type can be used in this static context</DL> </DD> </DL> <HR> <A NAME="getStyleElement()"><!-- --></A><H3> getStyleElement</H3> <PRE> public <A HREF="../../../../net/sf/saxon/style/StyleElement.html" title="class in net.sf.saxon.style">StyleElement</A> <B>getStyleElement</B>()</PRE> <DL> <DD>Get the stylesheet element containing this XPath expression <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the element in the tree representation of the source stylesheet</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../net/sf/saxon/style/Declaration.html" title="class in net.sf.saxon.style"><B>PREV CLASS</B></A> <A HREF="../../../../net/sf/saxon/style/ExtensionInstruction.html" title="class in net.sf.saxon.style"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?net/sf/saxon/style/ExpressionContext.html" target="_top"><B>FRAMES</B></A> <A HREF="ExpressionContext.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright (c) 2004-2011 Saxonica Limited. All rights reserved. </BODY> </HTML>