Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

485 Predeclared namespaces in XQuery: output #1040

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions specifications/xquery-40/src/expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,19 +257,16 @@ in-scope-prefixes($e) ! namespace {.}{ namespace-uri-for-prefix(., $e)}
<code>xml</code>: <code>http://www.w3.org/XML/1998/namespace</code>
</p>
</item>

<item>
<p>
<code>xs</code>: <code>http://www.w3.org/2001/XMLSchema</code>
</p>
</item>

<item role="xquery">
<p>
<code>xsi</code>: <code>http://www.w3.org/2001/XMLSchema-instance</code>
</p>
</item>

<item>
<p>
<code>fn</code>: <code>http://www.w3.org/2005/xpath-functions</code>
Expand All @@ -290,17 +287,23 @@ in-scope-prefixes($e) ! namespace {.}{ namespace-uri-for-prefix(., $e)}
<code>math</code>: <code>http://www.w3.org/2005/xpath-functions/math</code>
</p>
</item>
<item diff="add" at="2023-05-10">
<p>
<code>err</code>: <code>http://www.w3.org/2005/xqt-errors</code>
(see <specref ref="id-identifying-errors"/>).</p>
</item>
<item role="xquery">
<p>
<code>local</code>: <code>http://www.w3.org/2005/xquery-local-functions</code> (see <specref
ref="FunctionDeclns"/>.)</p>
<code>local</code>: <code>http://www.w3.org/2005/xquery-local-functions</code>
(see <specref ref="FunctionDeclns"/>.)
</p>
</item>
<item diff="add" at="2023-05-10">
<item>
<p>
<code>err</code>: <code>http://www.w3.org/2005/xqt-errors</code> (see <specref
ref="id-identifying-errors"/>).</p>
<code>output</code>: <code>http://www.w3.org/2010/xslt-xquery-serialization</code>
</p>
</item>
<item diff="add" at="2023-12-14">
<item role="xquery" diff="add" at="2023-12-14">
<p>
<code>xq</code>: <code>http://www.w3.org/2012/xquery</code>
</p>
Expand Down
66 changes: 8 additions & 58 deletions specifications/xquery-40/src/query-prolog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -913,67 +913,17 @@ declare variable $t as geometry:triangle := geo:make-triangle(); $t</eg>
QName</termref> with a namespace prefix that is not in the <termref
def="dt-static-namespaces">statically known namespaces</termref>.</p>

<p>XQuery has several predeclared namespace prefixes that are present in the <termref
def="dt-static-namespaces">statically known namespaces</termref> before each query is
processed. These prefixes may be used without an explicit declaration. They may be overridden
by <termref def="dt-namespace-declaration">namespace declarations</termref> in a <termref
<p>XQuery has several predeclared namespace prefixes, which are listed in
<specref ref="id-namespaces-and-qnames"/>.
These prefixes may be used without an explicit declaration; they are present in the
<termref def="dt-static-namespaces">statically known namespaces</termref>
before each query is processed. They may be overridden by
<termref def="dt-namespace-declaration">namespace declarations</termref> in a <termref
def="dt-prolog">Prolog</termref> or by <termref def="dt-namespace-decl-attr">namespace
declaration attributes</termref> on constructed elements (however, the prefix
<code>xml</code> must not be redeclared, and no other prefix may be bound to the namespace
URI associated with the prefix <code>xml</code>
<errorref class="ST" code="0070"/>). The predeclared namespace prefixes are as follows:</p>
<ulist>
<item>
<p>
<code>xml</code>: <code>http://www.w3.org/XML/1998/namespace</code>
</p>
</item>
<item>
<p>
<code>xs</code>: <code>http://www.w3.org/2001/XMLSchema</code>
</p>
</item>
<item>
<p>
<code>xsi</code>: <code>http://www.w3.org/2001/XMLSchema-instance</code>
</p>
</item>
<item>
<p>
<code>fn</code>: <code>http://www.w3.org/2005/xpath-functions</code>
</p>
</item>
<item diff="add" at="2023-05-10">
<p>
<code>array</code>: <code>http://www.w3.org/2005/xpath-functions/array</code>
</p>
</item>
<item diff="add" at="2023-05-10">
<p>
<code>map</code>: <code>http://www.w3.org/2005/xpath-functions/map</code>
</p>
</item>
<item diff="add" at="2023-05-10">
<p>
<code>math</code>: <code>http://www.w3.org/2005/xpath-functions/math</code>
</p>
</item>
<item diff="add" at="2023-05-10">
<p>
<code>err</code>: <code>http://www.w3.org/2005/xqt-errors</code>
</p>
</item>
<item>
<p>
<code>local</code>: <code>http://www.w3.org/2005/xquery-local-functions</code> (see <specref
ref="FunctionDeclns"/>.)</p>
</item>
<item diff="add" at="2023-12-14">
<p>
<code>xq</code>: <code>http://www.w3.org/2012/xquery</code>
</p>
</item>
</ulist>
URI associated with the prefix <code>xml</code> <errorref class="ST" code="0070"/>).
</p>

<p>Additional predeclared namespace prefixes may be added to the <termref
def="dt-static-namespaces">statically known namespaces</termref> by an implementation.</p>
Expand Down
Loading