Saxon.Api

 

 

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 isReservedInQuery(string uri)

Determine whether a namespace is a reserved namespace in XQuery

static bool isReservedInQuery30(string uri)

Determine whether a namespace is a reserved namespace in XQuery 3.0

static bool isReservedInQuery31(string uri)

Determine whether a namespace is a reserved namespace in XQuery 3.1

 

Field Detail

ANONYMOUS

public static readonly 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_FUNCTIONS

public static readonly string ARRAY_FUNCTIONS

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

CODEPOINT_COLLATION_URI

public static readonly string CODEPOINT_COLLATION_URI

URI identifying the Unicode codepoint collation

DOT_NET_TYPE

public static readonly string DOT_NET_TYPE

Namespace for types representing external .NET objects: "http://saxon.sf.net/clitype"

ERR

public static readonly string ERR

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

EXPATH_ZIP

public static readonly string EXPATH_ZIP

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

EXSLT_COMMON

public static readonly string EXSLT_COMMON

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

EXSLT_DATES_AND_TIMES

public static readonly string EXSLT_DATES_AND_TIMES

Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"

EXSLT_MATH

public static readonly string EXSLT_MATH

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

EXSLT_RANDOM

public static readonly string EXSLT_RANDOM

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

EXSLT_SETS

public static readonly string EXSLT_SETS

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

FN

public static readonly string FN

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

HTML5_CASE_BLIND_COLLATION_URI

public static readonly string HTML5_CASE_BLIND_COLLATION_URI

URI identifying the HML5 ascii-case-blind collation

JAVA_TYPE

public static readonly string JAVA_TYPE

Namespace for types representing external Java objects: "http://saxon.sf.net/java-type"

LOCAL

public static readonly string LOCAL

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

MAP_FUNCTIONS

public static readonly string MAP_FUNCTIONS

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

MATH

public static readonly string MATH

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

MATHML

public static readonly 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)

OBJECT_MODEL_SAXON

public static readonly 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

public static readonly string OUTPUT

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

SAXON

public static readonly string SAXON

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

SAXON_CONFIGURATION

public static readonly string SAXON_CONFIGURATION

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

SAXON_GENERATED_GLOBAL

public static readonly string SAXON_GENERATED_GLOBAL

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

SAXON_XSLT_EXPORT

public static readonly string SAXON_XSLT_EXPORT

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

SCHEMA

public static readonly string SCHEMA

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

SCHEMA_INSTANCE

public static readonly string SCHEMA_INSTANCE

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

SCHEMA_VERSIONING

public static readonly string SCHEMA_VERSIONING

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

SCM

public static readonly string SCM

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

SQL

public static readonly string SQL

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

SVG

public static readonly string SVG

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

XHTML

public static readonly string XHTML

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

XLINK

public static readonly string XLINK

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

XML

public static readonly string XML

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

XMLNS

public static readonly string XMLNS

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

XQUERY

public static readonly string XQUERY

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

XQUERY_OPTIONS

public static readonly string XQUERY_OPTIONS

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

XSLT

public static readonly string XSLT

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

Method Detail

findSimilarNamespace

public static string findSimilarNamespace(string candidate)

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

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.

isReservedInQuery

public static bool isReservedInQuery(string uri)

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

isReservedInQuery30

public static bool isReservedInQuery30(string uri)

Determine whether a namespace is a reserved namespace in XQuery 3.0

Parameters:

uri - the namespace URI to be tested

Returns:

true, if this namespace URI is reserved in XQuery 3.0, 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.