Package net.sf.saxon.om
Class NamespaceUri
java.lang.Object
net.sf.saxon.om.NamespaceUri
This class represents a URI used as a namespace name. NamespaceUri objects are pooled, so that
all occurrences of a given namespace name are represented by the same object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamespaceUri
Namespace for names allocated to anonymous types.static final NamespaceUri
Namespace URI for XPath 3.1 functions associated with arraysstatic final NamespaceUri
Namespace for types representing external .NET objectsstatic final NamespaceUri
The standard namespace for system error codesstatic final NamespaceUri
Namespace URI for the EXPath Binary modulestatic final NamespaceUri
Namespace URI for the EXPath File modulestatic final NamespaceUri
URI for the EXPath zip modulestatic final NamespaceUri
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"static final NamespaceUri
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"static final NamespaceUri
Fixed namespace name for EXSLT/math: "http://exslt.org/math"static final NamespaceUri
Fixed namespace name for EXSLT/random: "http://exslt.org/random"static final NamespaceUri
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"static final NamespaceUri
The standard namespace for functions and operatorsstatic final NamespaceUri
URI for the user extension calls in SaxonJSstatic final NamespaceUri
URI for interactive XSLT extensions in Saxon-CE and SaxonJSstatic final NamespaceUri
Namespace for types representing external Java objects: http://saxon.sf.net/java-typestatic final NamespaceUri
Predefined XQuery namespace for local functionsstatic final NamespaceUri
Namespace URI for XPath 3.0 functions associated with mapsstatic final NamespaceUri
Math namespace for the XPath 3.0 math functionsstatic final NamespaceUri
The MathML namespace http://www.w3.org/1998/Math/MathMLstatic final NamespaceUri
A URI representing the null namespace (actually, an empty string)static final NamespaceUri
URI identifying the AXIOM object model for use in the JAXP 1.3 XPath APIstatic final NamespaceUri
URI identifying the DOM4J object model for use in the JAXP 1.3 XPath APIstatic final NamespaceUri
URI identifying the DOMINO object model (not used, but needed for consistency)static final NamespaceUri
URI identifying the .NET DOM object model (not used, but needed for consistency)static final NamespaceUri
URI identifying the JDOM object model for use in the JAXP 1.3 XPath APIstatic final NamespaceUri
URI identifying the Saxon object model for use in the JAXP 1.3 XPath APIstatic final NamespaceUri
URI identifying the XOM object model for use in the JAXP 1.3 XPath APIstatic final NamespaceUri
The standard namespace for XQuery output declarationsstatic final NamespaceUri
URI for the user extension calls in SaxonC for C++ and PHPstatic final NamespaceUri
Current namespace name for SAXON (from 7.0 onwards): "http://saxon.sf.net/"static final NamespaceUri
URI for the Saxon configuration filestatic final NamespaceUri
URI for the names of generated variablesstatic final NamespaceUri
Fixed namespace name for the export of a Saxon stylesheet packagestatic final NamespaceUri
Old namespace name for SAXON6: "http://icl.com/saxon"static final NamespaceUri
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"static final NamespaceUri
XML-schema-defined namespace for use in instance documents ("xsi")static final NamespaceUri
Namespace defined in XSD 1.1 for schema versioningstatic final NamespaceUri
Namespace for the Saxon serialization of the schema component modelstatic final NamespaceUri
Fixed namespace name for SAXON SQL extension: "http://saxon.sf.net/sql"static final NamespaceUri
The SVG namespace http://www.w3.org/2000/svgstatic final NamespaceUri
The XHTML namespace http://www.w3.org/1999/xhtmlstatic final NamespaceUri
The XLink namespace http://www.w3.org/1999/xlinkstatic final NamespaceUri
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".static final NamespaceUri
The XMLNS namespace http://www.w3.org/2000/xmlns/ (used in DOM)static final NamespaceUri
The xquery namespace http://www.w3.org/2012/xquery for the XQuery 3.0 declare optionstatic final NamespaceUri
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform" -
Method Summary
Modifier and TypeMethodDescriptionstatic NamespaceUri
getUriForConventionalPrefix
(String prefix) Get the URI associated with a commonly-used conventional prefixboolean
isEmpty()
Ask whether this URI represents the "null namespace" (internally, a zero-length string)static boolean
isReserved
(NamespaceUri uri) Determine whether a namespace is a reserved namespace in XSLTstatic boolean
Determine whether a namespace is a reserved namespace in XQuerystatic NamespaceUri
Return theNamespaceUri
object corresponding to a given namespace name supplied as a stringConstruct an unprefixed QName using this namespace and a supplied local nametoString()
Return the namespace URI as a stringReturn the namespace URI as an instance ofUnicodeString
-
Field Details
-
NULL
A URI representing the null namespace (actually, an empty string) -
XML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace". -
XSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform" -
SAXON
Current namespace name for SAXON (from 7.0 onwards): "http://saxon.sf.net/" -
SAXON6
Old namespace name for SAXON6: "http://icl.com/saxon" -
SAXON_XSLT_EXPORT
Fixed namespace name for the export of a Saxon stylesheet package -
SCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema" -
SCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi") -
SCHEMA_VERSIONING
Namespace defined in XSD 1.1 for schema versioning -
SQL
Fixed namespace name for SAXON SQL extension: "http://saxon.sf.net/sql" -
EXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common" -
EXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math" -
EXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets" -
EXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times" -
EXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random" -
FN
The standard namespace for functions and operators -
OUTPUT
The standard namespace for XQuery output declarations -
ERR
The standard namespace for system error codes -
LOCAL
Predefined XQuery namespace for local functions -
MATH
Math namespace for the XPath 3.0 math functions -
MAP_FUNCTIONS
Namespace URI for XPath 3.0 functions associated with maps -
ARRAY_FUNCTIONS
Namespace URI for XPath 3.1 functions associated with arrays -
EXPATH_BINARY
Namespace URI for the EXPath Binary module -
EXPATH_FILE
Namespace URI for the EXPath File module -
XHTML
The XHTML namespace http://www.w3.org/1999/xhtml -
SVG
The SVG namespace http://www.w3.org/2000/svg -
MATHML
The MathML namespace http://www.w3.org/1998/Math/MathML -
XMLNS
The XMLNS namespace http://www.w3.org/2000/xmlns/ (used in DOM) -
XLINK
The XLink namespace http://www.w3.org/1999/xlink -
XQUERY
The xquery namespace http://www.w3.org/2012/xquery for the XQuery 3.0 declare option -
JAVA_TYPE
Namespace for types representing external Java objects: http://saxon.sf.net/java-type -
DOT_NET_TYPE
Namespace for types representing external .NET objects -
ANONYMOUS
Namespace for names allocated to anonymous types. This exists so that a name fingerprint can be allocated for use as a type annotation. -
SCM
Namespace for the Saxon serialization of the schema component model -
OBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath API -
OBJECT_MODEL_XOM
URI identifying the XOM object model for use in the JAXP 1.3 XPath API -
OBJECT_MODEL_JDOM
URI identifying the JDOM object model for use in the JAXP 1.3 XPath API -
OBJECT_MODEL_AXIOM
URI identifying the AXIOM object model for use in the JAXP 1.3 XPath API -
OBJECT_MODEL_DOM4J
URI identifying the DOM4J object model for use in the JAXP 1.3 XPath API -
OBJECT_MODEL_DOT_NET_DOM
URI identifying the .NET DOM object model (not used, but needed for consistency) -
OBJECT_MODEL_DOMINO
URI identifying the DOMINO object model (not used, but needed for consistency) -
SAXON_GENERATED_VARIABLE
URI for the names of generated variables -
SAXON_CONFIGURATION
URI for the Saxon configuration file -
EXPATH_ZIP
URI for the EXPath zip module -
GLOBAL_JS
URI for the user extension calls in SaxonJS -
PHP
URI for the user extension calls in SaxonC for C++ and PHP -
IXSL
URI for interactive XSLT extensions in Saxon-CE and SaxonJS
-
-
Method Details
-
of
Return theNamespaceUri
object corresponding to a given namespace name supplied as a string- Parameters:
content
- the namespace name, supplied as a string- Returns:
- the corresponding
NamespaceUri
object
-
toString
Return the namespace URI as a string -
toUnicodeString
Return the namespace URI as an instance ofUnicodeString
- Returns:
- the namespace URI as a
UnicodeString
-
isEmpty
public boolean isEmpty()Ask whether this URI represents the "null namespace" (internally, a zero-length string)- Returns:
- true if this is the null namespace
-
qName
Construct an unprefixed QName using this namespace and a supplied local name- Parameters:
localName
- the local part of the name- Returns:
- a StructuredQName representing a QName with this namespace URI, with the supplied local part, and with no prefix.
-
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 in XSLT- Parameters:
uri
- the namespace URI to be tested- Returns:
- true if this namespace URI is a reserved namespace in XSLT
-
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
-