Saxon.Api
Class NamespaceConstant
-
public class NamespaceConstant
Holds a set of constants representing known namespaces.
Field Summary |
|
---|---|
static string | ANONYMOUS Namespace for names allocated to anonymous types: "http://ns.saxonica.com/anonymous-type". This exists so that a name fingerprint can be allocated for use as a type annotation. |
static string | ARRAY_FUNCTIONS Namespace name for XPath 3.0 functions associated with arrays: "http://www.w3.org/2005/xpath-functions/array" |
static string | CODEPOINT_COLLATION_URI URI identifying the Unicode codepoint collation |
static string | DOT_NET_TYPE Namespace for types representing external .NET objects: "http://saxon.sf.net/clitype" |
static string | ERR The standard namespace for system error codes: "http://www.w3.org/2005/xqt-errors" |
static string | EXPATH_ZIP Namespace for the EXPath zip module: "http://expath.org/ns/zip" |
static string | EXSLT_COMMON Fixed namespace name for EXSLT/Common: "http://exslt.org/common" |
static string | EXSLT_DATES_AND_TIMES Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times" |
static string | EXSLT_MATH Fixed namespace name for EXSLT/math: "http://exslt.org/math" |
static string | EXSLT_RANDOM Fixed namespace name for EXSLT/random: "http://exslt.org/random" |
static string | EXSLT_SETS Fixed namespace name for EXSLT/sets: "http://exslt.org/sets" |
static string | FN The standard namespace for functions and operators: "http://www.w3.org/2005/xpath-functions" |
static string | HTML5_CASE_BLIND_COLLATION_URI URI identifying the HML5 ascii-case-blind collation |
static string | JAVA_TYPE Namespace for types representing external Java objects: "http://saxon.sf.net/java-type" |
static string | LOCAL Predefined XQuery namespace for local functions: "http://www.w3.org/2005/xquery-local-functions" |
static string | MAP_FUNCTIONS Namespace name for XPath 3.0 functions associated with maps: "http://www.w3.org/2005/xpath-functions/map" |
static string | MATH Namespace name for the XPath 3.0 math functions: "http://www.w3.org/2005/xpath-functions/math" |
static string | MATHML The MathML namespace: "http://www.w3.org/1998/Math/MathML" |
static string | NULL A URI representing the null namespace (actually, an empty string) |
static string | OBJECT_MODEL_SAXON URI identifying the Saxon object model for use in the JAXP 1.3 XPath API: "http://saxon.sf.net/jaxp/xpath/om" |
static string | OUTPUT The standard namespace for XQuery output declarations: "http://www.w3.org/2010/xslt-xquery-serialization" |
static string | SAXON Fixed namespace name for Saxon: "http://saxon.sf.net/" |
static string | SAXON_CONFIGURATION Namespace for the Saxon configuration file: "http://saxon.sf.net/ns/configuration" |
static string | SAXON_GENERATED_GLOBAL Namespace for the names of generated global variables: "http://saxon.sf.net/generated-global-variable" |
static string | SAXON_XSLT_EXPORT Fixed namespace name for the export of a Saxon stylesheet package: "http://ns.saxonica.com/xslt/export" |
static string | SCHEMA Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema" |
static string | SCHEMA_INSTANCE XML-schema-defined namespace for use in instance documents ("xsi"): "http://www.w3.org/2001/XMLSchema-instance" |
static string | SCHEMA_VERSIONING Namespace defined in XSD 1.1 for schema versioning: "http://www.w3.org/2007/XMLSchema-versioning" |
static string | SCM Namespace for the Saxon serialization of the schema component model: "http://ns.saxonica.com/schema-component-model" |
static string | SQL Fixed namespace name for Saxon SQL extension: "http://saxon.sf.net/sql" |
static string | SVG The SVG namespace: "http://www.w3.org/2000/svg" |
static string | XHTML The XHTML namespace: "http://www.w3.org/1999/xhtml" |
static string | XLINK The XLink namespace: "http://www.w3.org/1999/xlink" |
static string | XML Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace". |
static string | XMLNS The XMLNS namespace (used in DOM): "http://www.w3.org/2000/xmlns/" |
static string | XQUERY The xquery namespace for the XQuery 3.0 declare option: "http://www.w3.org/2012/xquery" |
static string | XQUERY_OPTIONS The xquery-option namespace for the XQuery 3.0 feature names: "http://www.w3.org/2011/xquery-options" |
static string | XSLT Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform" |
Method Summary |
|
---|---|
static string | findSimilarNamespace(string candidate) Find a similar namespace to one that is a possible mis-spelling |
static bool | isReserved(string uri) Determine whether a namespace is a reserved namespace |
static bool | isReservedInQuery31(string uri) Determine whether a namespace is a reserved namespace in XQuery 3.1 |
Field Detail
ANONYMOUS
Namespace for names allocated to anonymous types: "http://ns.saxonica.com/anonymous-type". This exists so that a name fingerprint can be allocated for use as a type annotation.
ARRAY_FUNCTIONS
Namespace name for XPath 3.0 functions associated with arrays: "http://www.w3.org/2005/xpath-functions/array"
CODEPOINT_COLLATION_URI
URI identifying the Unicode codepoint collation
DOT_NET_TYPE
Namespace for types representing external .NET objects: "http://saxon.sf.net/clitype"
ERR
The standard namespace for system error codes: "http://www.w3.org/2005/xqt-errors"
EXPATH_ZIP
Namespace for the EXPath zip module: "http://expath.org/ns/zip"
EXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"
EXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"
EXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math"
EXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random"
EXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"
FN
The standard namespace for functions and operators: "http://www.w3.org/2005/xpath-functions"
HTML5_CASE_BLIND_COLLATION_URI
URI identifying the HML5 ascii-case-blind collation
JAVA_TYPE
Namespace for types representing external Java objects: "http://saxon.sf.net/java-type"
LOCAL
Predefined XQuery namespace for local functions: "http://www.w3.org/2005/xquery-local-functions"
MAP_FUNCTIONS
Namespace name for XPath 3.0 functions associated with maps: "http://www.w3.org/2005/xpath-functions/map"
MATH
Namespace name for the XPath 3.0 math functions: "http://www.w3.org/2005/xpath-functions/math"
MATHML
The MathML namespace: "http://www.w3.org/1998/Math/MathML"
NULL
A URI representing the null namespace (actually, an empty string)
OBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath API: "http://saxon.sf.net/jaxp/xpath/om"
OUTPUT
The standard namespace for XQuery output declarations: "http://www.w3.org/2010/xslt-xquery-serialization"
SAXON_CONFIGURATION
Namespace for the Saxon configuration file: "http://saxon.sf.net/ns/configuration"
SAXON_GENERATED_GLOBAL
Namespace for the names of generated global variables: "http://saxon.sf.net/generated-global-variable"
SAXON_XSLT_EXPORT
Fixed namespace name for the export of a Saxon stylesheet package: "http://ns.saxonica.com/xslt/export"
SCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"
SCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi"): "http://www.w3.org/2001/XMLSchema-instance"
SCHEMA_VERSIONING
Namespace defined in XSD 1.1 for schema versioning: "http://www.w3.org/2007/XMLSchema-versioning"
SCM
Namespace for the Saxon serialization of the schema component model: "http://ns.saxonica.com/schema-component-model"
SQL
Fixed namespace name for Saxon SQL extension: "http://saxon.sf.net/sql"
XML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".
XMLNS
The XMLNS namespace (used in DOM): "http://www.w3.org/2000/xmlns/"
XQUERY
The xquery namespace for the XQuery 3.0 declare option: "http://www.w3.org/2012/xquery"
XQUERY_OPTIONS
The xquery-option namespace for the XQuery 3.0 feature names: "http://www.w3.org/2011/xquery-options"
XSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"
Method Detail
isReserved
Determine whether a namespace is a reserved namespace
Parameters:
uri
- the namespace URI to be testedReturns:
true
, if this namespace URI is a reserved namespace, false
otherwise.
Find a similar namespace to one that is a possible mis-spelling
Parameters:
candidate
- the possibly mis-spelt namespaceReturns: