Added Misc and Error categories

This commit is contained in:
2023-06-30 11:44:40 +02:00
parent 99ea6367e8
commit d702f893ac

View File

@@ -1674,5 +1674,213 @@
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-last"
}
]
},
{
"name": "Error",
"entries": [
{
"name": "error()",
"description": "The fn:error function is a general function that may be invoked as above but may also be invoked from XQuery or XPath applications with, for example, an xs:QName argument.",
"arguments": [],
"output": "N/A",
"examples": [],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-error"
},
{
"name": "trace()",
"description": "Provides an execution trace intended to be used in debugging queries. The input $value is returned, unchanged, as the result of the function. In addition, the inputs $value, converted to an xs:string, and $label may be directed to a trace data set. The destination of the trace output is ·implementation-defined·. The format of the trace output is ·implementation dependent·. The ordering of output from invocations of the fn:trace() function is ·implementation dependent·.",
"arguments": [
{
"type": "item()*",
"description": "$arg"
},
{
"type": "xs:string",
"description": "$label"
}
],
"output": "item",
"examples": [],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-trace"
}
]
},
{
"name": "Misc",
"entries": [
{
"name": "resolve-uri()",
"description": "This function enables a relative URI reference to be resolved against an absolute URI. If $relative is a relative URI reference, it is resolved against $base, or against the base-uri property from the static context, using an algorithm such as those described in RFC 2396 or RFC 3986, and the resulting absolute URI reference is returned. If $relative is an absolute URI reference, it is returned unchanged.",
"arguments": [
{
"type": "xs:string?",
"description": "$relative"
},
{
"type": "xs:string",
"description": "$base"
}
],
"output": "xs:anyURI?",
"examples": [],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-resolve-uri"
},
{
"name": "resolve-QName()",
"description": "Returns an xs:QName value (that is, an expanded-QName) by taking an xs:string that has the lexical form of an xs:QName (a string in the form 'prefix:local-name' or 'local-name') and resolving it using the in-scope namespaces for a given element.",
"arguments": [
{
"type": "xs:string?",
"description": "$qname"
},
{
"type": "element",
"description": "$element"
}
],
"output": "xs:QName?",
"examples": [
{
"command": "resolve-QName('hello', /l:library/l:libraryName)",
"output": "hello"
},
{
"command": "resolve-QName('l:libraryID', /l:library/l:libraryName)",
"output": "l:libraryID"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-resolve-QName"
},
{
"name": "QName()",
"description": "Returns an xs:QName with the namespace URI given in $paramURI.",
"arguments": [
{
"type": "xs:string?",
"description": "$paramURI"
},
{
"type": "xs:string",
"description": "$paramQName"
}
],
"output": "xs:QName",
"examples": [
{
"command": "QName('http://www.release11.com/schemas/Sample.xsd', 'u:UserList')",
"output": "u:UserList"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-QName"
},
{
"name": "prefix-from-QName()",
"description": "Returns an xs:NCName representing the prefix of $arg. The empty sequence is returned if $arg is the empty sequence or if the value of $arg contains no prefix.",
"arguments": [
{
"type": "xs:QName?",
"description": "$arg"
}
],
"output": "xs:NCName?",
"examples": [
{
"command": "prefix-from-QName(resolve-QName('u:UserList', /u:root/u:UserList))",
"output": "u"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-prefix-from-QName"
},
{
"name": "local-name-from-QName()",
"description": "Returns an xs:NCName representing the prefix of $arg. The empty sequence is returned if $arg is the empty sequence or if the value of $arg contains no prefix.",
"arguments": [
{
"type": "xs:QName?",
"description": "$arg"
}
],
"output": "xs:NCName?",
"examples": [
{
"command": "local-name-from-QName(resolve-QName('u:UserList', /u:root/u:UserList))",
"output": "UserList"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-local-name-from-QName"
},
{
"name": "namespace-uri-from-QName()",
"description": "Returns the namespace URI for $arg as an xs:anyURI. If $arg is the empty sequence, the empty sequence is returned. If $arg is in no namespace, the zero-length xs:anyURI is returned.",
"arguments": [
{
"type": "xs:QName?",
"description": "$arg"
}
],
"output": "xs:anyURI?",
"examples": [
{
"command": "namespace-uri-from-QName(resolve-QName('u:UserList', /u:root/u:UserList[1]))",
"output": "http://www.release11.com/schemas/Sample.xsd"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-namespace-uri-from-QName"
},
{
"name": "namespace-uri-for-prefix()",
"description": "Returns the namespace URI of one of the in-scope namespaces for $element, identified by its namespace prefix.",
"arguments": [
{
"type": "xs:string?",
"description": "$prefix"
},
{
"type": "element()",
"description": "$element"
}
],
"output": "xs:anyURI?",
"examples": [
{
"command": "namespace-uri-for-prefix('u', /u:root)",
"output": "http://www.release11.com/schemas/Sample.xsd"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-namespace-uri-for-prefix"
},
{
"name": "in-scope-prefixes()",
"description": "Returns the prefixes of the in-scope namespaces for $element. For namespaces that have a prefix, it returns the prefix as an xs:NCName. For the default namespace, which has no prefix, it returns the zero-length string.",
"arguments": [
{
"type": "element()",
"description": "$element"
}
],
"output": "xs:string*",
"examples": [
{
"command": "in-scope-prefixes(/u:root)",
"output": "('u', 'xsi', 'xml')"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-in-scope-prefixes"
},
{
"name": "static-base-uri()",
"description": "Returns the value of the Base URI property from the static context. If the Base URI property is undefined, the empty sequence is returned. Components of the static context are discussed in Section C.1 Static Context ComponentsXP.",
"arguments": [],
"output": "xs:QName?",
"examples": [
{
"command": "static-base-uri()",
"output": "()"
}
],
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-static-base-uri"
}
]
}
]