Skip to content

Commit

Permalink
Deploying to gh-pages from @ 0ed65bc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
dnovatchev committed May 18, 2024
1 parent 58acba4 commit 51c776e
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 30 deletions.
2 changes: 1 addition & 1 deletion pr/1226/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>
<body>
<h1>Index</h1>
<p>Published 18 May 2024 at 22:39:09 +0000.</p>
<p>Published 18 May 2024 at 22:55:12 +0000.</p>
<ul>
<li><a href='xslt-40/Overview.html'>xslt-40</a></li>
<li><a href='xquery-40/xpath-40.html'>xpath-40</a></li>
Expand Down
44 changes: 39 additions & 5 deletions pr/1226/xpath-functions-40/Overview-diff.html
Original file line number Diff line number Diff line change
Expand Up @@ -17145,6 +17145,40 @@ <h4><a id="func-hash"></a>5.4.13 fn:hash</h4>
</div>
</td>
</tr>
<tr class="testdiv">
<th style="vertical-align:top">Expression:</th>
<td style="vertical-align:top">
<div class="exampleInner">
<pre>hash("ABC", { "algorithm": "BLAKE3" })
=&gt; string() =&gt; lower-case()</pre>
</div>
</td>
</tr>
<tr>
<th style="vertical-align:top">Result:</th>
<td style="vertical-align:top">
<div class="exampleInner">
<pre>"d1717274597cf0289694f75d96d444b992a096f1afd8e7bbfa6ebb1d360fedfc"</pre>
</div>
</td>
</tr>
<tr class="testdiv">
<th style="vertical-align:top">Expression:</th>
<td style="vertical-align:top">
<div class="exampleInner">
<pre>hash("ABC", { "algorithm": "BLAKE3" })
=&gt; xs:base64Binary() =&gt; string()</pre>
</div>
</td>
</tr>
<tr>
<th style="vertical-align:top">Result:</th>
<td style="vertical-align:top">
<div class="exampleInner">
<pre>"0XFydFl88CiWlPddltREuZKglvGv2Oe7+m67HTYP7fw="</pre>
</div>
</td>
</tr>
<tr class="testdiv">
<th style="vertical-align:top">Expression:</th>
<td style="vertical-align:top">
Expand Down Expand Up @@ -44947,7 +44981,7 @@ <h4><a id="html-parser-options"></a>14.2.2 HTML parser options</h4>

<div class="example">

<div class="exampleHeader"><a id="d7e53623"></a>Example:</div>
<div class="exampleHeader"><a id="d7e53648"></a>Example:</div>
<p>An implementation may provide keys for options to the <em>tidy</em>
HTML parser, allowing a user to configure the behaviour of that parser.</p>
</div>
Expand Down Expand Up @@ -45303,7 +45337,7 @@ <h4><a id="json-to-xml-mapping"></a>14.3.2 XML Representation of JSON</h4>
representation. </p>
<div class="example">

<div class="exampleHeader"><a id="d7e54137"></a>Example: A JSON Text and its XML Representation</div>
<div class="exampleHeader"><a id="d7e54162"></a>Example: A JSON Text and its XML Representation</div>
<p>Consider the following JSON text:</p>
<div class="exampleInner">
<pre class="small">
Expand Down Expand Up @@ -47506,7 +47540,7 @@ <h4><a id="basic-csv-to-xdm-mapping"></a>14.4.3 Basic parsing of CSV to arrays</
rows, and returns all of them.</p>
<div class="example">

<div class="exampleHeader"><a id="d7e57199"></a>Example: A CSV with fixed-width rows</div>
<div class="exampleHeader"><a id="d7e57224"></a>Example: A CSV with fixed-width rows</div>
<p>For example, given the input:</p>
<div class="exampleInner">
<pre>
Expand All @@ -47526,7 +47560,7 @@ <h4><a id="basic-csv-to-xdm-mapping"></a>14.4.3 Basic parsing of CSV to arrays</
</div>
<div class="example">

<div class="exampleHeader"><a id="d7e57211"></a>Example: A CSV with variable-width rows</div>
<div class="exampleHeader"><a id="d7e57236"></a>Example: A CSV with variable-width rows</div>
<p>It is common practice for all rows in a CSV to
have the same number of columns, but this is not required.</p>
<div class="exampleInner">
Expand Down Expand Up @@ -66054,7 +66088,7 @@ <h3><a id="constructor-functions-for-user-defined-types"></a>19.5 Constructor fu
a namespace-sensitive item type, and union types that have a namespace-sensitive member type. See <a href="#constructor-qname-notation"><b>19.2 Constructor functions for xs:QName and xs:NOTATION</b></a>.</p>
<div class="example">

<div class="exampleHeader"><a id="d7e74398"></a>Example: Using a Constructor Function for a User-Defined Atomic Type</div>
<div class="exampleHeader"><a id="d7e74423"></a>Example: Using a Constructor Function for a User-Defined Atomic Type</div>
<p>Consider a situation where the static context contains an atomic type
called <code>hatSize</code> defined in a schema whose target namespace is bound
to the prefix <code>eg</code>. In such a case the following constructor function is available to users:</p>
Expand Down
14 changes: 8 additions & 6 deletions pr/1226/xpath-functions-40/Overview-diff.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3039,7 +3039,9 @@ return normalize-unicode(concat($v1, $v2))</pre></div><p class="note">where <cod
=&gt; string()
=&gt; lower-case()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"902fbdd2b1df0c4f70b4a5d23525e932"</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash("")
=&gt; string()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"D41D8CD98F00B204E9800998ECF8427E"</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash("ABC", { "algorithm": "SHA-1" })
=&gt; string()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"3C01BDBB26F358BAB27F267924AA2C9A03FCFDB8"</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash("ABC", { "algorithm": "sha-256" })
=&gt; string()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"3C01BDBB26F358BAB27F267924AA2C9A03FCFDB8"</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash("ABC", { "algorithm": "BLAKE3" })
=&gt; string() =&gt; lower-case()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"d1717274597cf0289694f75d96d444b992a096f1afd8e7bbfa6ebb1d360fedfc"</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash("ABC", { "algorithm": "BLAKE3" })
=&gt; xs:base64Binary() =&gt; string()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"0XFydFl88CiWlPddltREuZKglvGv2Oe7+m67HTYP7fw="</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash("ABC", { "algorithm": "sha-256" })
=&gt; string()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"B5D4045C3F466FA91FE2CC6ABE79232A1A57CDF104F7A26E716E0A1E2789DF78"</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash($doc)
=&gt; string()</pre></div></td></tr><tr><th style="vertical-align:top">Result:</th><td style="vertical-align:top"><div class="exampleInner"><pre>"900150983CD24FB0D6963F7D28E17F72"</pre></div></td></tr><tr class="testdiv"><th style="vertical-align:top">Expression:</th><td style="vertical-align:top"><div class="exampleInner"><pre>hash(serialize($doc), { "algorithm": "sha-1" })
=&gt; xs:base64Binary()
Expand Down Expand Up @@ -8424,7 +8426,7 @@ serialize(
</td></tr><tr><td>*</td><td>
<p>Additional <a title="implementation-defined" class="termref" href="#implementation-defined"><span class="arrow">·</span>implementation-defined<span class="arrow">·</span></a> parser options.</p>
<div class="example">
<div class="exampleHeader"><a id="d7e53623"/>Example:</div><p>An implementation may provide keys for options to the <em>tidy</em>
<div class="exampleHeader"><a id="d7e53648"/>Example:</div><p>An implementation may provide keys for options to the <em>tidy</em>
HTML parser, allowing a user to configure the behaviour of that parser.</p></div>
</td></tr></tbody></table></div><div class="div3 new-function">
<h4><a id="func-parse-html"/>14.2.3 fn:parse-html</h4><dl><dt class="label">Summary</dt><dd><p>This function takes as input an HTML document represented as a string, and returns the
Expand Down Expand Up @@ -8525,7 +8527,7 @@ serialize(
(a) JSON numbers are not exactly representable as double-precision floating point, or (b) duplicate key
values appear within a JSON object.</p></div><p>The following example demonstrates the correspondence of a JSON text and the corresponding XML
representation. </p><div class="example">
<div class="exampleHeader"><a id="d7e54137"/>Example: A JSON Text and its XML Representation</div><p>Consider the following JSON text:</p><div class="exampleInner"><pre class="small">
<div class="exampleHeader"><a id="d7e54162"/>Example: A JSON Text and its XML Representation</div><p>Consider the following JSON text:</p><div class="exampleInner"><pre class="small">
{
"desc" : "Distances between several cities, in kilometers.",
"updated" : "2014-02-04T18:50:45",
Expand Down Expand Up @@ -9259,7 +9261,7 @@ return pin($data)??languages[. = 'German'] ! label()?path()[1]</pre></div></td><
each row is represented as an array of <code>xs:string</code> values.</p><p>The first row of the CSV is returned in the same way as all the other rows.
<a href="#func-csv-to-arrays"><code>fn:csv-to-arrays</code></a> does not distinguish between a header row and data
rows, and returns all of them.</p><div class="example">
<div class="exampleHeader"><a id="d7e57199"/>Example: A CSV with fixed-width rows</div><p>For example, given the input:</p><div class="exampleInner"><pre>
<div class="exampleHeader"><a id="d7e57224"/>Example: A CSV with fixed-width rows</div><p>For example, given the input:</p><div class="exampleInner"><pre>
'Column 1,Column 2,Column 3
Field 1A,Field 1B,Field 1C
Field 2A,Field 2B,Field 2C'</pre></div><p>the <a href="#func-csv-to-arrays"><code>fn:csv-to-arrays</code></a> function produces</p><div class="exampleInner"><pre class="small">
Expand All @@ -9268,7 +9270,7 @@ Field 2A,Field 2B,Field 2C'</pre></div><p>the <a href="#func-csv-to-arrays"><cod
[ "Field 1A", "Field 1B", "Field 1C" ],
[ "Field 2A", "Field 2B", "Field 2C" ]
)</pre></div></div><div class="example">
<div class="exampleHeader"><a id="d7e57211"/>Example: A CSV with variable-width rows</div><p>It is common practice for all rows in a CSV to
<div class="exampleHeader"><a id="d7e57236"/>Example: A CSV with variable-width rows</div><p>It is common practice for all rows in a CSV to
have the same number of columns, but this is not required.</p><div class="exampleInner"><pre class="small">
'Column 1,Column 2,Column 3
Field 1A,Field 1B,Field 1C
Expand Down Expand Up @@ -12686,7 +12688,7 @@ There is no constructor function for <code>xs:NOTATION</code>. Constructors are
union types defined in a schema.</p></div><p>Special rules apply to constructor functions for namespace-sensitive types, that is,
atomic types derived from <code>xs:QName</code> and <code>xs:NOTATION</code>, list types that have
a namespace-sensitive item type, and union types that have a namespace-sensitive member type. See <a href="#constructor-qname-notation"><b>19.2 Constructor functions for xs:QName and xs:NOTATION</b></a>.</p><div class="example">
<div class="exampleHeader"><a id="d7e74398"/>Example: Using a Constructor Function for a User-Defined Atomic Type</div><p>Consider a situation where the static context contains an atomic type
<div class="exampleHeader"><a id="d7e74423"/>Example: Using a Constructor Function for a User-Defined Atomic Type</div><p>Consider a situation where the static context contains an atomic type
called <code>hatSize</code> defined in a schema whose target namespace is bound
to the prefix <code>eg</code>. In such a case the following constructor function is available to users:</p><div class="proto"><table class="proto" border="0"><tr class="name"><td colspan="3"><code class="function">eg:hatSize</code>(</td></tr><tr class="arg"><td><code>$value</code></td><td><code class="as">as </code><code class="type"><code>xs:anyAtomicType</code></code></td><td/></tr><tr class="return-type"><td colspan="3">)<code class="as"> as </code><code><code>my:hatSize</code>?</code></td></tr></table></div><p>The resulting function may be used in an expression such as <code>eg:hatSize("10½")</code>.</p></div><div class="diff-del"><p>In the case of an atomic type <var>A</var>, the return type of the function is <code>A?</code>, reflecting
the fact that the result will be an empty sequence if the input is an empty sequence. For a union or list type,
Expand Down
Loading

0 comments on commit 51c776e

Please sign in to comment.