Saxon.Api

 

 

Saxon.Api

Class NamespaceConstant


public class NamespaceConstant

Holds a set of constants representing known namespaces.

Field Summary

 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.

 string ARRAY

Namespace name for XPath 3.0 functions associated with arrays: "http://www.w3.org/2005/xpath-functions/array"

 string CODEPOINT_COLLATION_URI

URI identifying the Unicode codepoint collation

 string ERR

The standard namespace for system error codes: "http://www.w3.org/2005/xqt-errors"

 string EXPATH_ZIP

Namespace for the EXPath zip module: "http://expath.org/ns/zip"

 string EXSLT_COMMON

Fixed namespace name for EXSLT/Common: "http://exslt.org/common"

 string FN

The standard namespace for functions and operators: "http://www.w3.org/2005/xpath-functions"

 string HTML5_CASE_BLIND_COLLATION_URI

URI identifying the HML5 ascii-case-blind collation

 string LOCAL

Predefined XQuery namespace for local functions: "http://www.w3.org/2005/xquery-local-functions"

 string MAP

Namespace name for XPath 3.0 functions associated with maps: "http://www.w3.org/2005/xpath-functions/map"

 string MATH

Namespace name for the XPath 3.0 math functions: "http://www.w3.org/2005/xpath-functions/math"

 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)

 string OUTPUT

The standard namespace for XQuery output declarations: "http://www.w3.org/2010/xslt-xquery-serialization"

 string SAXON

Fixed namespace name for Saxon: "http://saxon.sf.net/"

 string SAXON_CONFIGURATION

Namespace for the Saxon configuration file: "http://saxon.sf.net/ns/configuration"

 string SAXON_GENERATED_GLOBAL

Namespace for the names of generated global variables: "http://saxon.sf.net/generated-global-variable"

 string SAXON_XSLT_EXPORT

Fixed namespace name for the export of a Saxon stylesheet package: "http://ns.saxonica.com/xslt/export"

 string SCHEMA

Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"

 string SCHEMA_INSTANCE

XML-schema-defined namespace for use in instance documents ("xsi"): "http://www.w3.org/2001/XMLSchema-instance"

 string SCHEMA_VERSIONING

Namespace defined in XSD 1.1 for schema versioning: "http://www.w3.org/2007/XMLSchema-versioning"

 string SCM

Namespace for the Saxon serialization of the schema component model: "http://ns.saxonica.com/schema-component-model"

 string SQL

Fixed namespace name for Saxon SQL extension: "http://saxon.sf.net/sql"

 string SVG

The SVG namespace: "http://www.w3.org/2000/svg"

 string XHTML

The XHTML namespace: "http://www.w3.org/1999/xhtml"

 string XLINK

The XLink namespace: "http://www.w3.org/1999/xlink"

 string XML

Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".

 string XMLNS

The XMLNS namespace (used in DOM): "http://www.w3.org/2000/xmlns/"

 string XQUERY

The xquery namespace for the XQuery 3.0 declare option: "http://www.w3.org/2012/xquery"

 string XQUERY_OPTIONS

The xquery-option namespace for the XQuery 3.0 feature names: "http://www.w3.org/2011/xquery-options"

 string XSLT

Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"

 

Method Summary

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

public 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.

ARRAY

public string ARRAY

Namespace name for XPath 3.0 functions associated with arrays: "http://www.w3.org/2005/xpath-functions/array"

CODEPOINT_COLLATION_URI

public string CODEPOINT_COLLATION_URI

URI identifying the Unicode codepoint collation

ERR

public string ERR

The standard namespace for system error codes: "http://www.w3.org/2005/xqt-errors"

EXPATH_ZIP

public string EXPATH_ZIP

Namespace for the EXPath zip module: "http://expath.org/ns/zip"

EXSLT_COMMON

public string EXSLT_COMMON

Fixed namespace name for EXSLT/Common: "http://exslt.org/common"

FN

public string FN

The standard namespace for functions and operators: "http://www.w3.org/2005/xpath-functions"

HTML5_CASE_BLIND_COLLATION_URI

public string HTML5_CASE_BLIND_COLLATION_URI

URI identifying the HML5 ascii-case-blind collation

LOCAL

public string LOCAL

Predefined XQuery namespace for local functions: "http://www.w3.org/2005/xquery-local-functions"

MAP

public string MAP

Namespace name for XPath 3.0 functions associated with maps: "http://www.w3.org/2005/xpath-functions/map"

MATH

public string MATH

Namespace name for the XPath 3.0 math functions: "http://www.w3.org/2005/xpath-functions/math"

MATHML

public string MATHML

The MathML namespace: "http://www.w3.org/1998/Math/MathML"

NULL

public static readonly string NULL

A URI representing the null namespace (actually, an empty string)

OUTPUT

public string OUTPUT

The standard namespace for XQuery output declarations: "http://www.w3.org/2010/xslt-xquery-serialization"

SAXON

public string SAXON

Fixed namespace name for Saxon: "http://saxon.sf.net/"

SAXON_CONFIGURATION

public string SAXON_CONFIGURATION

Namespace for the Saxon configuration file: "http://saxon.sf.net/ns/configuration"

SAXON_GENERATED_GLOBAL

public string SAXON_GENERATED_GLOBAL

Namespace for the names of generated global variables: "http://saxon.sf.net/generated-global-variable"

SAXON_XSLT_EXPORT

public string SAXON_XSLT_EXPORT

Fixed namespace name for the export of a Saxon stylesheet package: "http://ns.saxonica.com/xslt/export"

SCHEMA

public string SCHEMA

Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"

SCHEMA_INSTANCE

public string SCHEMA_INSTANCE

XML-schema-defined namespace for use in instance documents ("xsi"): "http://www.w3.org/2001/XMLSchema-instance"

SCHEMA_VERSIONING

public string SCHEMA_VERSIONING

Namespace defined in XSD 1.1 for schema versioning: "http://www.w3.org/2007/XMLSchema-versioning"

SCM

public string SCM

Namespace for the Saxon serialization of the schema component model: "http://ns.saxonica.com/schema-component-model"

SQL

public string SQL

Fixed namespace name for Saxon SQL extension: "http://saxon.sf.net/sql"

SVG

public string SVG

The SVG namespace: "http://www.w3.org/2000/svg"

XHTML

public string XHTML

The XHTML namespace: "http://www.w3.org/1999/xhtml"

XLINK

public string XLINK

The XLink namespace: "http://www.w3.org/1999/xlink"

XML

public string XML

Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".

XMLNS

public string XMLNS

The XMLNS namespace (used in DOM): "http://www.w3.org/2000/xmlns/"

XQUERY

public string XQUERY

The xquery namespace for the XQuery 3.0 declare option: "http://www.w3.org/2012/xquery"

XQUERY_OPTIONS

public string XQUERY_OPTIONS

The xquery-option namespace for the XQuery 3.0 feature names: "http://www.w3.org/2011/xquery-options"

XSLT

public string XSLT

Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"

Method Detail

IsReserved

public static bool IsReserved(string uri)

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, false otherwise.

IsReservedInQuery31

public static bool IsReservedInQuery31(string uri)

Determine whether a namespace is a reserved namespace in XQuery 3.1

Parameters:

uri - the namespace URI to be tested

Returns:

true, if this namespace URI is reserved in XQuery 3.1, false otherwise.