Package net.sf.saxon.lib
Class NamespaceConstant
java.lang.Object
net.sf.saxon.lib.NamespaceConstant
This class is not instantiated, it exists to hold a set of constants representing known
namespaces. For each of these, there is a constant for the namespace URI and for many of
them, there is a numeric constant used as the code for this namespace in the name pool.
This class also defines constant URIs for some objects other than namespaces - for example, URIs that identify the various object models used in the JAXP XPath API, and the Unicode codepoint collation URI.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringNamespace for names allocated to anonymous types.static final StringNamespace URI for XPath 3.1 functions associated with arraysstatic final StringURI identifying the Unicode codepoint collationstatic final StringNamespace for types representing external .NET objectsstatic final StringThe standard namespace for system error codesstatic final StringURI for the EXPath zip modulestatic final StringFixed namespace name for EXSLT/Common: "http://exslt.org/common"static final StringFixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"static final StringFixed namespace name for EXSLT/math: "http://exslt.org/math"static final StringFixed namespace name for EXSLT/random: "http://exslt.org/random"static final StringFixed namespace name for EXSLT/sets: "http://exslt.org/sets"static final StringThe standard namespace for functions and operatorsstatic final StringURI for the user extension calls in SaxonJSstatic final StringURI identifying the HTML5 ascii-case-blind collationstatic final StringURI for interactive XSLT extensions in Saxon-CE and SaxonJSstatic final StringNamespace for types representing external Java objectsstatic final StringPredefined XQuery namespace for local functionsstatic final StringNamespace URI for XPath 3.0 functions associated with mapsstatic final StringMath namespace for the XPath 3.0 math functionsstatic final StringThe MathML namespacestatic final StringA URI representing the null namespace (actually, an empty string)static final StringURI identifying the AXIOM object model for use in the JAXP 1.3 XPath APIstatic final StringURI identifying the DOM4J object model for use in the JAXP 1.3 XPath APIstatic final StringURI identifying the DOMINO object model (not used, but needed for consistency)static final StringURI identifying the .NET DOM object model (not used, but needed for consistency)static final StringURI identifying the JDOM object model for use in the JAXP 1.3 XPath APIstatic final StringURI identifying the Saxon object model for use in the JAXP 1.3 XPath APIstatic final StringURI identifying the XOM object model for use in the JAXP 1.3 XPath APIstatic final StringThe standard namespace for XQuery output declarationsstatic final StringURI for the user extension calls in SaxonC for C++ and PHPstatic final StringCurrent namespace name for SAXON (from 7.0 onwards): "http://saxon.sf.net/"static final StringURI for the Saxon configuration filestatic final StringURI for the names of generated variablesstatic final StringFixed namespace name for the export of a Saxon stylesheet packagestatic final StringOld namespace name for SAXON6: "http://icl.com/saxon"static final StringNamespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"static final StringXML-schema-defined namespace for use in instance documents ("xsi")static final StringNamespace defined in XSD 1.1 for schema versioningstatic final StringNamespace for the Saxon serialization of the schema component modelstatic final StringFixed namespace name for SAXON SQL extension: "http://saxon.sf.net/sql"static final StringThe SVG namespacestatic final StringThe XHTML namespace http://www.w3.org/1999/xhtmlstatic final StringThe XLink namespacestatic final StringFixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".static final StringThe XMLNS namespace (used in DOM)static final StringThe xquery namespace for the XQuery 3.0 declare optionstatic final StringFixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform" -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfindSimilarNamespace(String candidate) Find a similar namespace to one that is a possible mis-spellingstatic StringGet the conventional prefix for a common namespacestatic StringgetUriForConventionalPrefix(String prefix) Get the URI associated with a commonly-used conventional prefixstatic booleanisReserved(String uri) Determine whether a namespace is a reserved namespacestatic booleanDetermine whether a namespace is a reserved namespace in XQuery
-
Field Details
-
NULL
A URI representing the null namespace (actually, an empty string)- See Also:
-
XML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".- See Also:
-
XSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"- See Also:
-
SAXON
Current namespace name for SAXON (from 7.0 onwards): "http://saxon.sf.net/"- See Also:
-
SAXON6
Old namespace name for SAXON6: "http://icl.com/saxon"- See Also:
-
SAXON_XSLT_EXPORT
Fixed namespace name for the export of a Saxon stylesheet package- See Also:
-
SCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"- See Also:
-
SCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi")- See Also:
-
SCHEMA_VERSIONING
Namespace defined in XSD 1.1 for schema versioning- See Also:
-
SQL
Fixed namespace name for SAXON SQL extension: "http://saxon.sf.net/sql"- See Also:
-
EXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"- See Also:
-
EXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math"- See Also:
-
EXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"- See Also:
-
EXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"- See Also:
-
EXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random"- See Also:
-
FN
The standard namespace for functions and operators- See Also:
-
OUTPUT
The standard namespace for XQuery output declarations- See Also:
-
ERR
The standard namespace for system error codes- See Also:
-
LOCAL
Predefined XQuery namespace for local functions- See Also:
-
MATH
Math namespace for the XPath 3.0 math functions- See Also:
-
MAP_FUNCTIONS
Namespace URI for XPath 3.0 functions associated with maps- See Also:
-
ARRAY_FUNCTIONS
Namespace URI for XPath 3.1 functions associated with arrays- See Also:
-
XHTML
The XHTML namespace http://www.w3.org/1999/xhtml- See Also:
-
SVG
The SVG namespace- See Also:
-
MATHML
The MathML namespace- See Also:
-
XMLNS
The XMLNS namespace (used in DOM)- See Also:
-
XLINK
The XLink namespace- See Also:
-
XQUERY
The xquery namespace for the XQuery 3.0 declare option- See Also:
-
JAVA_TYPE
Namespace for types representing external Java objects- See Also:
-
DOT_NET_TYPE
Namespace for types representing external .NET objects- See Also:
-
ANONYMOUS
Namespace for names allocated to anonymous types. This exists so that a name fingerprint can be allocated for use as a type annotation.- See Also:
-
SCM
Namespace for the Saxon serialization of the schema component model- See Also:
-
OBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_XOM
URI identifying the XOM object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_JDOM
URI identifying the JDOM object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_AXIOM
URI identifying the AXIOM object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_DOM4J
URI identifying the DOM4J object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_DOT_NET_DOM
URI identifying the .NET DOM object model (not used, but needed for consistency)- See Also:
-
OBJECT_MODEL_DOMINO
URI identifying the DOMINO object model (not used, but needed for consistency)- See Also:
-
CODEPOINT_COLLATION_URI
URI identifying the Unicode codepoint collation- See Also:
-
HTML5_CASE_BLIND_COLLATION_URI
URI identifying the HTML5 ascii-case-blind collation- See Also:
-
SAXON_GENERATED_VARIABLE
URI for the names of generated variables- See Also:
-
SAXON_CONFIGURATION
URI for the Saxon configuration file- See Also:
-
EXPATH_ZIP
URI for the EXPath zip module- See Also:
-
GLOBAL_JS
URI for the user extension calls in SaxonJS- See Also:
-
PHP
URI for the user extension calls in SaxonC for C++ and PHP- See Also:
-
IXSL
URI for interactive XSLT extensions in Saxon-CE and SaxonJS- See Also:
-
-
Method Details
-
getConventionalPrefix
Get the conventional prefix for a common namespace- Parameters:
uri- the namespace URI- Returns:
- the conventional prefix for this URI if there is one, or null otherwise
-
getUriForConventionalPrefix
Get the URI associated with a commonly-used conventional prefix- Parameters:
prefix- the namespace prefix- Returns:
- the namespace URI associated with this conventional prefix
-
isReserved
Determine whether a namespace is a reserved namespace- Parameters:
uri- the namespace URI to be tested- Returns:
- true if this namespace URI is a reserved namespace
-
isReservedInQuery31
Determine whether a namespace is a reserved namespace in XQuery- Parameters:
uri- the namespace URI to be tested- Returns:
- true if this namespace URI is reserved in XQuery 3.1
-
findSimilarNamespace
Find a similar namespace to one that is a possible mis-spelling- Parameters:
candidate- the possibly mis-spelt namespace- Returns:
- the correct spelling of the namespace
-