| java.lang.Object net.sf.saxon.instruct.SavedNamespaceContext
SavedNamespaceContext | final public class SavedNamespaceContext implements Serializable,NamespaceResolver(Code) | | An object representing a list of Namespaces. Used when the namespace
controller in the stylesheet needs to be kept for use at run-time. The list of namespaces
is maintained in the form of numeric prefix/uri codes, which are only meaningful
in the controller of a name pool; however, in order to save space, the NamespaceContext
object does not keep a reference to the namepool, it requires this to be supplied
by the caller.
|
Constructor Summary | |
public | SavedNamespaceContext(int[] nscodes, NamePool pool) Create a NamespaceContext object
Parameters: nscodes - an array of namespace codes. |
SavedNamespaceContext | public SavedNamespaceContext(int[] nscodes, NamePool pool)(Code) | | Create a NamespaceContext object
Parameters: nscodes - an array of namespace codes. Each namespace code is an integerin which the first 16 bits represent the prefix (zero if it's the default namespace)and the next 16 bits represent the uri. These are codes held in the NamePool. Thelist will be searched from the "high" end. |
getNamespaceCodes | public int[] getNamespaceCodes()(Code) | | Get the list of in-scope namespaces held in this NamespaceContext
the list of namespaces |
getURIForPrefix | public String getURIForPrefix(String prefix, boolean useDefault)(Code) | | Get the namespace URI corresponding to a given prefix. Return null
if the prefix is not in scope.
Parameters: prefix - the namespace prefix Parameters: useDefault - true if the default namespace is to be used when theprefix is "" the uri for the namespace, or null if the prefix is not in scope |
iteratePrefixes | public Iterator iteratePrefixes()(Code) | | Get an iterator over all the prefixes declared in this namespace context. This will include
the default namespace (prefix="") and the XML namespace where appropriate
|
|
|