← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~sorin.marian.nasoi/zorba/xqdoc_fixes into lp:zorba

 

Sorin Marian Nasoi has proposed merging lp:~sorin.marian.nasoi/zorba/xqdoc_fixes into lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)

For more details, see:
https://code.launchpad.net/~sorin.marian.nasoi/zorba/xqdoc_fixes/+merge/78150

Fixed the XQDoc issue related to the xpath_functions links pointing to XQuery 1.0 F&O instead of XQuery 3.0 F&O.
Fixed the S to the right scripting.
-- 
https://code.launchpad.net/~sorin.marian.nasoi/zorba/xqdoc_fixes/+merge/78150
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'doc/zorba/xqdoc/templates/www.w3.org_2005_xpath-functions.html'
--- doc/zorba/xqdoc/templates/www.w3.org_2005_xpath-functions.html	2011-08-17 19:19:17 +0000
+++ doc/zorba/xqdoc/templates/www.w3.org_2005_xpath-functions.html	2011-10-04 19:06:32 +0000
@@ -30,6 +30,10 @@
           });
         });
     </script>
+    <script src="http://www.google.com/js/gweb/analytics/autotrack.js";></script>
+    <script>//
+        new gweb.analytics.AutoTrack({profile: 'UA-4281090-1'});
+    //</script>
   </head>
   <body>
     <div id="header">
@@ -4098,7 +4102,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-QName";>fn:QName</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-QName";>fn:QName</a>
           </li>
         </ul>
         <hr />
@@ -4117,7 +4121,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-abs";>fn:abs</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-abs";>fn:abs</a>
           </li>
         </ul>
         <hr />
@@ -4136,7 +4140,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
           </li>
         </ul>
         <hr />
@@ -4156,7 +4160,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
           </li>
         </ul>
         <hr />
@@ -4175,7 +4179,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
           </li>
         </ul>
         <hr />
@@ -4195,7 +4199,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
           </li>
         </ul>
         <hr />
@@ -4214,7 +4218,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
           </li>
         </ul>
         <hr />
@@ -4234,7 +4238,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
           </li>
         </ul>
         <hr />
@@ -4254,7 +4258,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-analyze-string";>fn:analyze-string</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-analyze-string";>fn:analyze-string</a>
           </li>
         </ul>
         <hr />
@@ -4275,7 +4279,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-analyze-string";>fn:analyze-string</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-analyze-string";>fn:analyze-string</a>
           </li>
         </ul>
         <hr />
@@ -4293,7 +4297,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-available-environment-variables";>fn:available-environment-variables</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables";>fn:available-environment-variables</a>
           </li>
         </ul>
         <hr />
@@ -4312,7 +4316,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-avg";>fn:avg</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-avg";>fn:avg</a>
           </li>
         </ul>
         <hr />
@@ -4330,7 +4334,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-base-uri";>fn:base-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-base-uri";>fn:base-uri</a>
           </li>
         </ul>
         <hr />
@@ -4349,7 +4353,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-base-uri";>fn:base-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-base-uri";>fn:base-uri</a>
           </li>
         </ul>
         <hr />
@@ -4368,7 +4372,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-boolean";>fn:boolean</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-boolean";>fn:boolean</a>
           </li>
         </ul>
         <hr />
@@ -4387,7 +4391,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-ceiling";>fn:ceiling</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-ceiling";>fn:ceiling</a>
           </li>
         </ul>
         <hr />
@@ -4407,45 +4411,45 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-codepoint-equal";>fn:codepoint-equal</a>
-          </li>
-        </ul>
-        <hr />
-        <div class="subsection" id="codepoints-to-string-1">
-          <span class="no_underline">
-            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
-              <img src="images/External.gif" />
-            </a>
-          </span>codepoints-to-string<a href="#function_summary">
-            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
-          </a>
-        </div>
-        <pre class="signature">declare function fn:codepoints-to-string<span class="functName"></span> (
-<span class="funcParam">            $arg</span> as xs:integer* 
- ) as xs:string external</pre>
-        <p>No description available.</p>
-        <div class="subsubsection">See:</div>
-        <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-codepoints-to-string";>fn:codepoints-to-string</a>
-          </li>
-        </ul>
-        <hr />
-        <div class="subsection" id="codepoints-to-string-1">
-          <span class="no_underline">
-            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
-              <img src="images/External.gif" />
-            </a>
-          </span>codepoints-to-string<a href="#function_summary">
-            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
-          </a>
-        </div>
-        <pre class="signature">declare function fn:codepoints-to-string<span class="functName"></span> (
-<span class="funcParam">            $arg</span> as xs:integer* 
- ) as xs:string external</pre>
-        <p>No description available.</p>
-        <div class="subsubsection">See:</div>
-        <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-codepoints-to-string";>fn:codepoints-to-string</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-codepoint-equal";>fn:codepoint-equal</a>
+          </li>
+        </ul>
+        <hr />
+        <div class="subsection" id="codepoints-to-string-1">
+          <span class="no_underline">
+            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
+              <img src="images/External.gif" />
+            </a>
+          </span>codepoints-to-string<a href="#function_summary">
+            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
+          </a>
+        </div>
+        <pre class="signature">declare function fn:codepoints-to-string<span class="functName"></span> (
+<span class="funcParam">            $arg</span> as xs:integer* 
+ ) as xs:string external</pre>
+        <p>No description available.</p>
+        <div class="subsubsection">See:</div>
+        <ul>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-codepoints-to-string";>fn:codepoints-to-string</a>
+          </li>
+        </ul>
+        <hr />
+        <div class="subsection" id="codepoints-to-string-1">
+          <span class="no_underline">
+            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
+              <img src="images/External.gif" />
+            </a>
+          </span>codepoints-to-string<a href="#function_summary">
+            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
+          </a>
+        </div>
+        <pre class="signature">declare function fn:codepoints-to-string<span class="functName"></span> (
+<span class="funcParam">            $arg</span> as xs:integer* 
+ ) as xs:string external</pre>
+        <p>No description available.</p>
+        <div class="subsubsection">See:</div>
+        <ul>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-codepoints-to-string";>fn:codepoints-to-string</a>
           </li>
         </ul>
         <hr />
@@ -4463,7 +4467,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-collection";>fn:collection</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-collection";>fn:collection</a>
           </li>
         </ul>
         <hr />
@@ -4482,7 +4486,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-collection";>fn:collection</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-collection";>fn:collection</a>
           </li>
         </ul>
         <hr />
@@ -4502,7 +4506,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-compare";>fn:compare</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-compare";>fn:compare</a>
           </li>
         </ul>
         <hr />
@@ -4523,7 +4527,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-compare";>fn:compare</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-compare";>fn:compare</a>
           </li>
         </ul>
         <hr />
@@ -4543,7 +4547,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-concat";>fn:concat</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-concat";>fn:concat</a>
           </li>
         </ul>
         <hr />
@@ -4563,7 +4567,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-contains";>fn:contains</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-contains";>fn:contains</a>
           </li>
         </ul>
         <hr />
@@ -4584,7 +4588,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-contains";>fn:contains</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-contains";>fn:contains</a>
           </li>
         </ul>
         <hr />
@@ -4603,7 +4607,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-count";>fn:count</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-count";>fn:count</a>
           </li>
         </ul>
         <hr />
@@ -4621,7 +4625,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-current-date";>fn:current-date</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-current-date";>fn:current-date</a>
           </li>
         </ul>
         <hr />
@@ -4639,7 +4643,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-current-dateTime";>fn:current-dateTime</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-current-dateTime";>fn:current-dateTime</a>
           </li>
         </ul>
         <hr />
@@ -4657,7 +4661,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-current-time";>fn:current-time</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-current-time";>fn:current-time</a>
           </li>
         </ul>
         <hr />
@@ -4675,7 +4679,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-data";>fn:data</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-data";>fn:data</a>
           </li>
         </ul>
         <hr />
@@ -4694,7 +4698,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-data";>fn:data</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-data";>fn:data</a>
           </li>
         </ul>
         <hr />
@@ -4714,7 +4718,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-dateTime";>fn:dateTime</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-dateTime";>fn:dateTime</a>
           </li>
         </ul>
         <hr />
@@ -4733,7 +4737,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-day-from-date";>fn:day-from-date</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-day-from-date";>fn:day-from-date</a>
           </li>
         </ul>
         <hr />
@@ -4752,7 +4756,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-days-from-duration";>fn:days-from-duration</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-days-from-duration";>fn:days-from-duration</a>
           </li>
         </ul>
         <hr />
@@ -4772,7 +4776,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-deep-equal";>fn:deep-equal</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-deep-equal";>fn:deep-equal</a>
           </li>
         </ul>
         <hr />
@@ -4793,7 +4797,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-deep-equal";>fn:deep-equal</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-deep-equal";>fn:deep-equal</a>
           </li>
         </ul>
         <hr />
@@ -4811,7 +4815,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-default-collation";>fn:default-collation</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-default-collation";>fn:default-collation</a>
           </li>
         </ul>
         <hr />
@@ -4830,7 +4834,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-distinct-values";>fn:distinct-values</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-distinct-values";>fn:distinct-values</a>
           </li>
         </ul>
         <hr />
@@ -4850,7 +4854,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-distinct-values";>fn:distinct-values</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-distinct-values";>fn:distinct-values</a>
           </li>
         </ul>
         <hr />
@@ -4869,7 +4873,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-doc";>fn:doc</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-doc";>fn:doc</a>
           </li>
         </ul>
         <hr />
@@ -4888,7 +4892,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-doc-available";>fn:doc-available</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-doc-available";>fn:doc-available</a>
           </li>
         </ul>
         <hr />
@@ -4906,7 +4910,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-document-uri";>fn:document-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-document-uri";>fn:document-uri</a>
           </li>
         </ul>
         <hr />
@@ -4925,7 +4929,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-document-uri";>fn:document-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-document-uri";>fn:document-uri</a>
           </li>
         </ul>
         <hr />
@@ -4944,7 +4948,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-element-with-id";>fn:element-with-id</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-element-with-id";>fn:element-with-id</a>
           </li>
         </ul>
         <hr />
@@ -4964,7 +4968,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-element-with-id";>fn:element-with-id</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-element-with-id";>fn:element-with-id</a>
           </li>
         </ul>
         <hr />
@@ -4983,7 +4987,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-empty";>fn:empty</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-empty";>fn:empty</a>
           </li>
         </ul>
         <hr />
@@ -5002,7 +5006,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-encode-for-uri";>fn:encode-for-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-encode-for-uri";>fn:encode-for-uri</a>
           </li>
         </ul>
         <hr />
@@ -5022,7 +5026,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-ends-with";>fn:ends-with</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-ends-with";>fn:ends-with</a>
           </li>
         </ul>
         <hr />
@@ -5043,7 +5047,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-ends-with";>fn:ends-with</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-ends-with";>fn:ends-with</a>
           </li>
         </ul>
         <hr />
@@ -5062,7 +5066,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-environment-variable";>fn:environment-variable</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-environment-variable";>fn:environment-variable</a>
           </li>
         </ul>
         <hr />
@@ -5080,7 +5084,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
           </li>
         </ul>
         <hr />
@@ -5099,7 +5103,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
           </li>
         </ul>
         <hr />
@@ -5119,7 +5123,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
           </li>
         </ul>
         <hr />
@@ -5140,7 +5144,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
           </li>
         </ul>
         <hr />
@@ -5159,7 +5163,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-escape-html-uri";>fn:escape-html-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-escape-html-uri";>fn:escape-html-uri</a>
           </li>
         </ul>
         <hr />
@@ -5178,7 +5182,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-exactly-one";>fn:exactly-one</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-exactly-one";>fn:exactly-one</a>
           </li>
         </ul>
         <hr />
@@ -5197,7 +5201,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-exists";>fn:exists</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-exists";>fn:exists</a>
           </li>
         </ul>
         <hr />
@@ -5215,7 +5219,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-false";>fn:false</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-false";>fn:false</a>
           </li>
         </ul>
         <hr />
@@ -5235,7 +5239,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-filter";>fn:filter</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-filter";>fn:filter</a>
           </li>
         </ul>
         <hr />
@@ -5254,7 +5258,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-floor";>fn:floor</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-floor";>fn:floor</a>
           </li>
         </ul>
         <hr />
@@ -5275,7 +5279,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-fold-left";>fn:fold-left</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-fold-left";>fn:fold-left</a>
           </li>
         </ul>
         <hr />
@@ -5296,7 +5300,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-fold-right";>fn:fold-right</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-fold-right";>fn:fold-right</a>
           </li>
         </ul>
         <hr />
@@ -5316,7 +5320,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-date";>fn:format-date</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-date";>fn:format-date</a>
           </li>
         </ul>
         <hr />
@@ -5339,7 +5343,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-date";>fn:format-date</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-date";>fn:format-date</a>
           </li>
         </ul>
         <hr />
@@ -5359,7 +5363,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-dateTime";>fn:format-dateTime</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-dateTime";>fn:format-dateTime</a>
           </li>
         </ul>
         <hr />
@@ -5382,7 +5386,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-dateTime";>fn:format-dateTime</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-dateTime";>fn:format-dateTime</a>
           </li>
         </ul>
         <hr />
@@ -5402,7 +5406,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-integer";>fn:format-integer</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-integer";>fn:format-integer</a>
           </li>
         </ul>
         <hr />
@@ -5423,7 +5427,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-integer";>fn:format-integer</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-integer";>fn:format-integer</a>
           </li>
         </ul>
         <hr />
@@ -5443,7 +5447,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-number";>fn:format-number</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-number";>fn:format-number</a>
           </li>
         </ul>
         <hr />
@@ -5464,7 +5468,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-number";>fn:format-number</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-number";>fn:format-number</a>
           </li>
         </ul>
         <hr />
@@ -5484,7 +5488,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-time";>fn:format-time</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-time";>fn:format-time</a>
           </li>
         </ul>
         <hr />
@@ -5507,7 +5511,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-format-time";>fn:format-time</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-format-time";>fn:format-time</a>
           </li>
         </ul>
         <hr />
@@ -5526,7 +5530,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-function-arity";>fn:function-arity</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-function-arity";>fn:function-arity</a>
           </li>
         </ul>
         <hr />
@@ -5544,7 +5548,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-generate-id";>fn:generate-id</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-generate-id";>fn:generate-id</a>
           </li>
         </ul>
         <hr />
@@ -5563,7 +5567,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-generate-id";>fn:generate-id</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-generate-id";>fn:generate-id</a>
           </li>
         </ul>
         <hr />
@@ -5582,7 +5586,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-has-children";>fn:has-children</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-has-children";>fn:has-children</a>
           </li>
         </ul>
         <hr />
@@ -5601,7 +5605,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-head";>fn:head</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-head";>fn:head</a>
           </li>
         </ul>
         <hr />
@@ -5620,7 +5624,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-hours-from-duration";>fn:hours-from-duration</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-hours-from-duration";>fn:hours-from-duration</a>
           </li>
         </ul>
         <hr />
@@ -5639,7 +5643,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-hours-from-time";>fn:hours-from-time</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-hours-from-time";>fn:hours-from-time</a>
           </li>
         </ul>
         <hr />
@@ -5658,7 +5662,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-id";>fn:id</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-id";>fn:id</a>
           </li>
         </ul>
         <hr />
@@ -5678,7 +5682,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-id";>fn:id</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-id";>fn:id</a>
           </li>
         </ul>
         <hr />
@@ -5697,7 +5701,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-idref";>fn:idref</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-idref";>fn:idref</a>
           </li>
         </ul>
         <hr />
@@ -5717,7 +5721,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-idref";>fn:idref</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-idref";>fn:idref</a>
           </li>
         </ul>
         <hr />
@@ -5735,7 +5739,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-implicit-timezone";>fn:implicit-timezone</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-implicit-timezone";>fn:implicit-timezone</a>
           </li>
         </ul>
         <hr />
@@ -5754,7 +5758,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-in-scope-prefixes";>fn:in-scope-prefixes</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-in-scope-prefixes";>fn:in-scope-prefixes</a>
           </li>
         </ul>
         <hr />
@@ -5774,7 +5778,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-index-of";>fn:index-of</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-index-of";>fn:index-of</a>
           </li>
         </ul>
         <hr />
@@ -5795,7 +5799,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-index-of";>fn:index-of</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-index-of";>fn:index-of</a>
           </li>
         </ul>
         <hr />
@@ -5814,7 +5818,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-innermost";>fn:innermost</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-innermost";>fn:innermost</a>
           </li>
         </ul>
         <hr />
@@ -5835,7 +5839,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-insert-before";>fn:insert-before</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-insert-before";>fn:insert-before</a>
           </li>
         </ul>
         <hr />
@@ -5854,7 +5858,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-iri-to-uri";>fn:iri-to-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-iri-to-uri";>fn:iri-to-uri</a>
           </li>
         </ul>
         <hr />
@@ -5873,7 +5877,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-lang";>fn:lang</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-lang";>fn:lang</a>
           </li>
         </ul>
         <hr />
@@ -5893,7 +5897,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-lang";>fn:lang</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-lang";>fn:lang</a>
           </li>
         </ul>
         <hr />
@@ -5911,7 +5915,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-last";>fn:last</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-last";>fn:last</a>
           </li>
         </ul>
         <hr />
@@ -5929,7 +5933,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-local-name";>fn:local-name</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-local-name";>fn:local-name</a>
           </li>
         </ul>
         <hr />
@@ -5948,7 +5952,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-local-name";>fn:local-name</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-local-name";>fn:local-name</a>
           </li>
         </ul>
         <hr />
@@ -5967,7 +5971,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-local-name-from-QName";>fn:local-name-from-QName</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-local-name-from-QName";>fn:local-name-from-QName</a>
           </li>
         </ul>
         <hr />
@@ -5986,7 +5990,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-lower-case";>fn:lower-case</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-lower-case";>fn:lower-case</a>
           </li>
         </ul>
         <hr />
@@ -6006,7 +6010,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-map";>fn:map</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-map";>fn:map</a>
           </li>
         </ul>
         <hr />
@@ -6027,7 +6031,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-map-pairs";>fn:map-pairs</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-map-pairs";>fn:map-pairs</a>
           </li>
         </ul>
         <hr />
@@ -6047,7 +6051,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-matches";>fn:matches</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-matches";>fn:matches</a>
           </li>
         </ul>
         <hr />
@@ -6068,7 +6072,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-matches";>fn:matches</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-matches";>fn:matches</a>
           </li>
         </ul>
         <hr />
@@ -6087,7 +6091,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-max";>fn:max</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-max";>fn:max</a>
           </li>
         </ul>
         <hr />
@@ -6107,7 +6111,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-max";>fn:max</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-max";>fn:max</a>
           </li>
         </ul>
         <hr />
@@ -6126,7 +6130,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-min";>fn:min</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-min";>fn:min</a>
           </li>
         </ul>
         <hr />
@@ -6146,7 +6150,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-min";>fn:min</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-min";>fn:min</a>
           </li>
         </ul>
         <hr />
@@ -6165,7 +6169,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-minutes-from-dateTime";>fn:minutes-from-dateTime</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-minutes-from-dateTime";>fn:minutes-from-dateTime</a>
           </li>
         </ul>
         <hr />
@@ -6184,7 +6188,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-minutes-from-duration";>fn:minutes-from-duration</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-minutes-from-duration";>fn:minutes-from-duration</a>
           </li>
         </ul>
         <hr />
@@ -6203,7 +6207,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-minutes-from-time";>fn:minutes-from-time</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-minutes-from-time";>fn:minutes-from-time</a>
           </li>
         </ul>
         <hr />
@@ -6222,7 +6226,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-month-from-date";>fn:month-from-date</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-month-from-date";>fn:month-from-date</a>
           </li>
         </ul>
         <hr />
@@ -6241,7 +6245,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-months-from-duration";>fn:months-from-duration</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-months-from-duration";>fn:months-from-duration</a>
           </li>
         </ul>
         <hr />
@@ -6259,7 +6263,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-name";>fn:name</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-name";>fn:name</a>
           </li>
         </ul>
         <hr />
@@ -6278,7 +6282,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-name";>fn:name</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-name";>fn:name</a>
           </li>
         </ul>
         <hr />
@@ -6296,7 +6300,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri";>fn:namespace-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri";>fn:namespace-uri</a>
           </li>
         </ul>
         <hr />
@@ -6315,7 +6319,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri";>fn:namespace-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri";>fn:namespace-uri</a>
           </li>
         </ul>
         <hr />
@@ -6335,7 +6339,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri-for-prefix";>fn:namespace-uri-for-prefix</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri-for-prefix";>fn:namespace-uri-for-prefix</a>
           </li>
         </ul>
         <hr />
@@ -6354,7 +6358,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri-from-QName";>fn:namespace-uri-from-QName</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri-from-QName";>fn:namespace-uri-from-QName</a>
           </li>
         </ul>
         <hr />
@@ -6373,7 +6377,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-nilled";>fn:nilled</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-nilled";>fn:nilled</a>
           </li>
         </ul>
         <hr />
@@ -6391,7 +6395,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-node-name";>fn:node-name</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-node-name";>fn:node-name</a>
           </li>
         </ul>
         <hr />
@@ -6410,7 +6414,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-node-name";>fn:node-name</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-node-name";>fn:node-name</a>
           </li>
         </ul>
         <hr />
@@ -6428,7 +6432,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-normalize-space";>fn:normalize-space</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-space";>fn:normalize-space</a>
           </li>
         </ul>
         <hr />
@@ -6447,7 +6451,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-normalize-space";>fn:normalize-space</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-space";>fn:normalize-space</a>
           </li>
         </ul>
         <hr />
@@ -6466,7 +6470,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-normalize-unicode";>fn:normalize-unicode</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-unicode";>fn:normalize-unicode</a>
           </li>
         </ul>
         <hr />
@@ -6486,7 +6490,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-normalize-unicode";>fn:normalize-unicode</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-unicode";>fn:normalize-unicode</a>
           </li>
         </ul>
         <hr />
@@ -6505,7 +6509,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-not";>fn:not</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-not";>fn:not</a>
           </li>
         </ul>
         <hr />
@@ -6523,7 +6527,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-number";>fn:number</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-number";>fn:number</a>
           </li>
         </ul>
         <hr />
@@ -6542,7 +6546,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-number";>fn:number</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-number";>fn:number</a>
           </li>
         </ul>
         <hr />
@@ -6561,7 +6565,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-one-or-more";>fn:one-or-more</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-one-or-more";>fn:one-or-more</a>
           </li>
         </ul>
         <hr />
@@ -6580,7 +6584,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-outermost";>fn:outermost</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-outermost";>fn:outermost</a>
           </li>
         </ul>
         <hr />
@@ -6599,7 +6603,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-parse-xml";>fn:parse-xml</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-parse-xml";>fn:parse-xml</a>
           </li>
         </ul>
         <hr />
@@ -6619,7 +6623,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-parse-xml";>fn:parse-xml</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-parse-xml";>fn:parse-xml</a>
           </li>
         </ul>
         <hr />
@@ -6637,7 +6641,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-position";>fn:position</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-position";>fn:position</a>
           </li>
         </ul>
         <hr />
@@ -6656,7 +6660,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-prefix-from-QName";>fn:prefix-from-QName</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-prefix-from-QName";>fn:prefix-from-QName</a>
           </li>
         </ul>
         <hr />
@@ -6676,7 +6680,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-remove";>fn:remove</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-remove";>fn:remove</a>
           </li>
         </ul>
         <hr />
@@ -6697,7 +6701,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-replace";>fn:replace</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-replace";>fn:replace</a>
           </li>
         </ul>
         <hr />
@@ -6719,7 +6723,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-replace";>fn:replace</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-replace";>fn:replace</a>
           </li>
         </ul>
         <hr />
@@ -6739,7 +6743,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-resolve-QName";>fn:resolve-QName</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-resolve-QName";>fn:resolve-QName</a>
           </li>
         </ul>
         <hr />
@@ -6758,7 +6762,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-resolve-uri";>fn:resolve-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-resolve-uri";>fn:resolve-uri</a>
           </li>
         </ul>
         <hr />
@@ -6778,7 +6782,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-resolve-uri";>fn:resolve-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-resolve-uri";>fn:resolve-uri</a>
           </li>
         </ul>
         <hr />
@@ -6797,7 +6801,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-reverse";>fn:reverse</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-reverse";>fn:reverse</a>
           </li>
         </ul>
         <hr />
@@ -6815,7 +6819,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-root";>fn:root</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-root";>fn:root</a>
           </li>
         </ul>
         <hr />
@@ -6834,7 +6838,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-root";>fn:root</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-root";>fn:root</a>
           </li>
         </ul>
         <hr />
@@ -6853,7 +6857,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-round";>fn:round</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-round";>fn:round</a>
           </li>
         </ul>
         <hr />
@@ -6873,7 +6877,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-round";>fn:round</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-round";>fn:round</a>
           </li>
         </ul>
         <hr />
@@ -6892,7 +6896,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-round-half-to-even";>fn:round-half-to-even</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-round-half-to-even";>fn:round-half-to-even</a>
           </li>
         </ul>
         <hr />
@@ -6912,7 +6916,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-round-half-to-even";>fn:round-half-to-even</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-round-half-to-even";>fn:round-half-to-even</a>
           </li>
         </ul>
         <hr />
@@ -6931,7 +6935,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-seconds-from-dateTime";>fn:seconds-from-dateTime</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-seconds-from-dateTime";>fn:seconds-from-dateTime</a>
           </li>
         </ul>
         <hr />
@@ -6950,7 +6954,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-seconds-from-duration";>fn:seconds-from-duration</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-seconds-from-duration";>fn:seconds-from-duration</a>
           </li>
         </ul>
         <hr />
@@ -6969,7 +6973,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-seconds-from-time";>fn:seconds-from-time</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-seconds-from-time";>fn:seconds-from-time</a>
           </li>
         </ul>
         <hr />
@@ -6988,7 +6992,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-serialize";>fn:serialize</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-serialize";>fn:serialize</a>
           </li>
         </ul>
         <hr />
@@ -7008,7 +7012,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-serialize";>fn:serialize</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-serialize";>fn:serialize</a>
           </li>
         </ul>
         <hr />
@@ -7028,7 +7032,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-starts-with";>fn:starts-with</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-starts-with";>fn:starts-with</a>
           </li>
         </ul>
         <hr />
@@ -7049,7 +7053,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-starts-with";>fn:starts-with</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-starts-with";>fn:starts-with</a>
           </li>
         </ul>
         <hr />
@@ -7067,7 +7071,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-static-base-uri";>fn:static-base-uri</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-static-base-uri";>fn:static-base-uri</a>
           </li>
         </ul>
         <hr />
@@ -7085,7 +7089,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string";>fn:string</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string";>fn:string</a>
           </li>
         </ul>
         <hr />
@@ -7104,7 +7108,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string";>fn:string</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string";>fn:string</a>
           </li>
         </ul>
         <hr />
@@ -7123,7 +7127,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string-join";>fn:string-join</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string-join";>fn:string-join</a>
           </li>
         </ul>
         <hr />
@@ -7143,7 +7147,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string-join";>fn:string-join</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string-join";>fn:string-join</a>
           </li>
         </ul>
         <hr />
@@ -7161,7 +7165,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string-length";>fn:string-length</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string-length";>fn:string-length</a>
           </li>
         </ul>
         <hr />
@@ -7180,45 +7184,45 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string-length";>fn:string-length</a>
-          </li>
-        </ul>
-        <hr />
-        <div class="subsection" id="string-to-codepoints-1">
-          <span class="no_underline">
-            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
-              <img src="images/External.gif" />
-            </a>
-          </span>string-to-codepoints<a href="#function_summary">
-            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
-          </a>
-        </div>
-        <pre class="signature">declare function fn:string-to-codepoints<span class="functName"></span> (
-<span class="funcParam">            $arg</span> as xs:string? 
- ) as xs:integer* external</pre>
-        <p>No description available.</p>
-        <div class="subsubsection">See:</div>
-        <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string-to-codepoints";>fn:string-to-codepoints</a>
-          </li>
-        </ul>
-        <hr />
-        <div class="subsection" id="string-to-codepoints-1">
-          <span class="no_underline">
-            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
-              <img src="images/External.gif" />
-            </a>
-          </span>string-to-codepoints<a href="#function_summary">
-            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
-          </a>
-        </div>
-        <pre class="signature">declare function fn:string-to-codepoints<span class="functName"></span> (
-<span class="funcParam">            $arg</span> as xs:string? 
- ) as xs:integer* external</pre>
-        <p>No description available.</p>
-        <div class="subsubsection">See:</div>
-        <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-string-to-codepoints";>fn:string-to-codepoints</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string-length";>fn:string-length</a>
+          </li>
+        </ul>
+        <hr />
+        <div class="subsection" id="string-to-codepoints-1">
+          <span class="no_underline">
+            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
+              <img src="images/External.gif" />
+            </a>
+          </span>string-to-codepoints<a href="#function_summary">
+            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
+          </a>
+        </div>
+        <pre class="signature">declare function fn:string-to-codepoints<span class="functName"></span> (
+<span class="funcParam">            $arg</span> as xs:string? 
+ ) as xs:integer* external</pre>
+        <p>No description available.</p>
+        <div class="subsubsection">See:</div>
+        <ul>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string-to-codepoints";>fn:string-to-codepoints</a>
+          </li>
+        </ul>
+        <hr />
+        <div class="subsection" id="string-to-codepoints-1">
+          <span class="no_underline">
+            <a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; title="external" target="_blank">
+              <img src="images/External.gif" />
+            </a>
+          </span>string-to-codepoints<a href="#function_summary">
+            <img class="floatright" src="images/up.gif" alt="back to 'Function Summary'" title="back to 'Function Summary'" />
+          </a>
+        </div>
+        <pre class="signature">declare function fn:string-to-codepoints<span class="functName"></span> (
+<span class="funcParam">            $arg</span> as xs:string? 
+ ) as xs:integer* external</pre>
+        <p>No description available.</p>
+        <div class="subsubsection">See:</div>
+        <ul>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-string-to-codepoints";>fn:string-to-codepoints</a>
           </li>
         </ul>
         <hr />
@@ -7238,7 +7242,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-subsequence";>fn:subsequence</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-subsequence";>fn:subsequence</a>
           </li>
         </ul>
         <hr />
@@ -7259,7 +7263,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-subsequence";>fn:subsequence</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-subsequence";>fn:subsequence</a>
           </li>
         </ul>
         <hr />
@@ -7279,7 +7283,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-substring";>fn:substring</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-substring";>fn:substring</a>
           </li>
         </ul>
         <hr />
@@ -7300,7 +7304,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-substring";>fn:substring</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-substring";>fn:substring</a>
           </li>
         </ul>
         <hr />
@@ -7320,7 +7324,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-substring-after";>fn:substring-after</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-substring-after";>fn:substring-after</a>
           </li>
         </ul>
         <hr />
@@ -7341,7 +7345,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-substring-after";>fn:substring-after</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-substring-after";>fn:substring-after</a>
           </li>
         </ul>
         <hr />
@@ -7361,7 +7365,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-substring-before";>fn:substring-before</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-substring-before";>fn:substring-before</a>
           </li>
         </ul>
         <hr />
@@ -7382,7 +7386,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-substring-before";>fn:substring-before</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-substring-before";>fn:substring-before</a>
           </li>
         </ul>
         <hr />
@@ -7401,7 +7405,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-sum";>fn:sum</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-sum";>fn:sum</a>
           </li>
         </ul>
         <hr />
@@ -7421,7 +7425,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-sum";>fn:sum</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-sum";>fn:sum</a>
           </li>
         </ul>
         <hr />
@@ -7440,7 +7444,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-tail";>fn:tail</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-tail";>fn:tail</a>
           </li>
         </ul>
         <hr />
@@ -7459,7 +7463,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-timezone-from-date";>fn:timezone-from-date</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-timezone-from-date";>fn:timezone-from-date</a>
           </li>
         </ul>
         <hr />
@@ -7478,7 +7482,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-timezone-from-dateTime";>fn:timezone-from-dateTime</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-timezone-from-dateTime";>fn:timezone-from-dateTime</a>
           </li>
         </ul>
         <hr />
@@ -7497,7 +7501,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-timezone-from-time";>fn:timezone-from-time</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-timezone-from-time";>fn:timezone-from-time</a>
           </li>
         </ul>
         <hr />
@@ -7517,7 +7521,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-tokenize";>fn:tokenize</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-tokenize";>fn:tokenize</a>
           </li>
         </ul>
         <hr />
@@ -7538,7 +7542,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-tokenize";>fn:tokenize</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-tokenize";>fn:tokenize</a>
           </li>
         </ul>
         <hr />
@@ -7558,7 +7562,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-trace";>fn:trace</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-trace";>fn:trace</a>
           </li>
         </ul>
         <hr />
@@ -7579,7 +7583,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-translate";>fn:translate</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-translate";>fn:translate</a>
           </li>
         </ul>
         <hr />
@@ -7597,7 +7601,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-true";>fn:true</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-true";>fn:true</a>
           </li>
         </ul>
         <hr />
@@ -7616,7 +7620,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-unordered";>fn:unordered</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-unordered";>fn:unordered</a>
           </li>
         </ul>
         <hr />
@@ -7635,7 +7639,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text";>fn:unparsed-text</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text";>fn:unparsed-text</a>
           </li>
         </ul>
         <hr />
@@ -7655,7 +7659,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text";>fn:unparsed-text</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text";>fn:unparsed-text</a>
           </li>
         </ul>
         <hr />
@@ -7674,7 +7678,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-available";>fn:unparsed-text-available</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available";>fn:unparsed-text-available</a>
           </li>
         </ul>
         <hr />
@@ -7694,7 +7698,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-available";>fn:unparsed-text-available</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available";>fn:unparsed-text-available</a>
           </li>
         </ul>
         <hr />
@@ -7713,7 +7717,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
           </li>
         </ul>
         <hr />
@@ -7733,7 +7737,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
           </li>
         </ul>
         <hr />
@@ -7752,7 +7756,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-upper-case";>fn:upper-case</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-upper-case";>fn:upper-case</a>
           </li>
         </ul>
         <hr />
@@ -7770,7 +7774,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-uri-collection";>fn:uri-collection</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection";>fn:uri-collection</a>
           </li>
         </ul>
         <hr />
@@ -7789,7 +7793,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-uri-collection";>fn:uri-collection</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection";>fn:uri-collection</a>
           </li>
         </ul>
         <hr />
@@ -7808,7 +7812,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-year-from-date";>fn:year-from-date</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-year-from-date";>fn:year-from-date</a>
           </li>
         </ul>
         <hr />
@@ -7827,7 +7831,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-years-from-duration";>fn:years-from-duration</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-years-from-duration";>fn:years-from-duration</a>
           </li>
         </ul>
         <hr />
@@ -7846,7 +7850,7 @@
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
         <ul>
-          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions/#func-zero-or-one";>fn:zero-or-one</a>
+          <li>for semantics please check <a xmlns:xqdoc="http://www.xqdoc.org/1.0"; href="http://www.w3.org/TR/xpath-functions-30/#func-zero-or-one";>fn:zero-or-one</a>
           </li>
         </ul>
         <hr />

=== modified file 'doc/zorba/xqdoc/templates/www.w3.org_2005_xpath-functions_math.html'
--- doc/zorba/xqdoc/templates/www.w3.org_2005_xpath-functions_math.html	2011-08-17 19:19:17 +0000
+++ doc/zorba/xqdoc/templates/www.w3.org_2005_xpath-functions_math.html	2011-10-04 19:06:32 +0000
@@ -30,6 +30,10 @@
           });
         });
     </script>
+    <script src="http://www.google.com/js/gweb/analytics/autotrack.js";></script>
+    <script>//
+        new gweb.analytics.AutoTrack({profile: 'UA-4281090-1'});
+    //</script>
   </head>
   <body>
     <div id="header">
@@ -79,7 +83,7 @@
             <img src="images/minus.gif" /> Collapse All</a>
           <a title="Expand the entire tree below" href="#">
             <img src="images/plus.gif" /> Expand All</a>
-        </div>        
+        </div>
       </div>
       <div id="rightcontent">
         <h1>http://www.w3.org/2005/xpath-functions/math<sup>
@@ -221,7 +225,7 @@
                   <a href="#cos-1" title="">cos</a>
                 </span>
                 <span class="functName"></span> (
-<span class="funcParam">            $θ</span> as xs:double? 
+<span class="funcParam">            $theta</span> as xs:double? 
  ) as xs:double? external<br />
                 <span class="padding"></span>
               </tt>
@@ -361,7 +365,7 @@
                   <a href="#sin-1" title="">sin</a>
                 </span>
                 <span class="functName"></span> (
-<span class="funcParam">            $θ</span> as xs:double? 
+<span class="funcParam">            $theta</span> as xs:double? 
  ) as xs:double? external<br />
                 <span class="padding"></span>
               </tt>
@@ -401,7 +405,7 @@
                   <a href="#tan-1" title="">tan</a>
                 </span>
                 <span class="functName"></span> (
-<span class="funcParam">            $θ</span> as xs:double? 
+<span class="funcParam">            $theta</span> as xs:double? 
  ) as xs:double? external<br />
                 <span class="padding"></span>
               </tt>
@@ -498,7 +502,7 @@
           </a>
         </div>
         <pre class="signature">declare function math:cos<span class="functName"></span> (
-<span class="funcParam">            $θ</span> as xs:double? 
+<span class="funcParam">            $theta</span> as xs:double? 
  ) as xs:double? external</pre>
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
@@ -631,7 +635,7 @@
           </a>
         </div>
         <pre class="signature">declare function math:sin<span class="functName"></span> (
-<span class="funcParam">            $θ</span> as xs:double? 
+<span class="funcParam">            $theta</span> as xs:double? 
  ) as xs:double? external</pre>
         <p>No description available.</p>
         <div class="subsubsection">See:</div>
@@ -669,7 +673,7 @@
           </a>
         </div>
         <pre class="signature">declare function math:tan<span class="functName"></span> (
-<span class="funcParam">            $θ</span> as xs:double? 
+<span class="funcParam">            $theta</span> as xs:double? 
  ) as xs:double? external</pre>
         <p>No description available.</p>
         <div class="subsubsection">See:</div>

=== modified file 'modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq'
--- modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq	2011-09-01 03:31:49 +0000
+++ modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq	2011-10-04 19:06:32 +0000
@@ -53,7 +53,7 @@
 declare %private variable $xqdoc2html:moduleFolderName as xs:string := "modules";
 
 (:~
- : the name of the folder where the examples will be copied for the XQDoc documentation  
+ : the name of the folder where the examples will be copied for the XQDoc documentation
  :)
 declare %private variable $xqdoc2html:exampleFolderName as xs:string := "examples";
 
@@ -76,9 +76,9 @@
 (:~
  :  The level 1 wights for the categories in the left menu (this gives the order of the Level1 items)
  :)
-declare %private variable $xqdoc2html:level1Weight as xs:string* := 
+declare %private variable $xqdoc2html:level1Weight as xs:string* :=
 ("www.w3.org", "XDM", "store", "introspection", "reflection",
- "external", "xqdoc","data processing", "programming languages", "excel", 
+ "external", "xqdoc","data processing", "programming languages", "excel",
  "cryptography", "geo", "image", "OAuth", "expath.org",
  "www.functx.com", "communication");
 
@@ -126,15 +126,15 @@
  : @return empty sequence.
  :)
 declare %private %ann:sequential function xqdoc2html:collect-schema (
-  $schemaURI as xs:string, 
-  $fileName as xs:string, 
-  $collector) 
+  $schemaURI as xs:string,
+  $fileName as xs:string,
+  $collector)
 {
   insert node <schema uri="{$schemaURI}" file="{$fileName}" /> as last into $collector;
 };
 
 (:~
- : This function returns a sequence containing all the distinct items 
+ : This function returns a sequence containing all the distinct items
  : that appear in $arg1 but not in $arg2, in an arbitrary order.
  :
  : @param $arg1 first sequence.
@@ -143,13 +143,13 @@
  :)
 declare %private function  xqdoc2html:value-except(
   $arg1 as xs:anyAtomicType*,
-  $arg2 as xs:anyAtomicType*) as xs:anyAtomicType* 
+  $arg2 as xs:anyAtomicType*) as xs:anyAtomicType*
 {
   fn:distinct-values($arg1[not(.=$arg2)])
 };
 
 (:~
- : This function returns a sequence containing all the distinct items 
+ : This function returns a sequence containing all the distinct items
  : that appear in both $arg1 and $arg2, in an arbitrary order.
  :
  : @param $arg1 first sequence.
@@ -158,7 +158,7 @@
  :)
 declare %private function  xqdoc2html:value-intersect(
   $arg1 as xs:anyAtomicType*,
-  $arg2 as xs:anyAtomicType*) as xs:anyAtomicType* 
+  $arg2 as xs:anyAtomicType*) as xs:anyAtomicType*
 {
   fn:distinct-values($arg1[.=$arg2])
 };
@@ -176,7 +176,7 @@
  :)
 declare %private %ann:sequential function xqdoc2html:gather-and-copy(
   $sourcePath       as xs:string,
-  $destinationPath  as xs:string, 
+  $destinationPath  as xs:string,
   $extensions       as xs:string+)
 {
   if(fn:not(file:exists($destinationPath))) then
@@ -186,17 +186,17 @@
 
     for $file in file:list($sourcePath, fn:true(), fn:concat("*.", $extension))
 
-    let $fileName := 
+    let $fileName :=
     fn:tokenize($file, fn:concat("\", file:directory-separator()))[last()]
 
     let $fileSourcePath := fn:concat($sourcePath, file:directory-separator(), $file)
 
-    let $fileDestinationPath := 
+    let $fileDestinationPath :=
     fn:concat($destinationPath, file:directory-separator(), $fileName)
 
     return
       file:copy($fileSourcePath,$fileDestinationPath)
-    
+
 };
 
 (:~
@@ -217,7 +217,7 @@
 (:~ Returns the string resulting from replacing the directory-separators (i.e. / ) with '_'
  :
  : @param $moduleURI the path to the module URI.
- : @return the string resulting from replacing the directory-separators (i.e. / ) with '_'. 
+ : @return the string resulting from replacing the directory-separators (i.e. / ) with '_'.
  :
  :)
 declare %private function xqdoc2html:get-filename($moduleURI as xs:string) as xs:string {
@@ -241,7 +241,7 @@
  :)
 declare %private %ann:sequential function xqdoc2html:copy-files(
   $sourcePath       as xs:string,
-  $destinationPath  as xs:string, 
+  $destinationPath  as xs:string,
   $extensions       as xs:string+)
 {
   file:create-directory($destinationPath);
@@ -251,7 +251,7 @@
 (:_____________________________________________________________________________________________________:)
 
 (:~
- : The function copies all the files under the following folders 
+ : The function copies all the files under the following folders
  : from $xhtmlRequisitesPath to $xqdocBuildPath/xhtml folder:
  : <ul>
  :  <li>schemas</li>
@@ -287,14 +287,14 @@
       (: second - clear the XHTML folder :)
       if(file:exists($xhtmlPath)) then
         file:delete($xhtmlPath);
-      else ();      
-      
+      else ();
+
       (: third - re-copy these files :)
       xqdoc2html:copy-files($xhtmlRequisitesPath, $imagesPath ,("gif", "png", "svg"));
       xqdoc2html:copy-files($xhtmlRequisitesPath, $libPath    ,"js");
       xqdoc2html:copy-files($xhtmlRequisitesPath, $cssPath    ,"css");
-           
-      file:create-directory($schemasPath);      
+
+      file:create-directory($schemasPath);
     }
 };
 
@@ -303,11 +303,11 @@
 declare %private %ann:sequential function xqdoc2html:create-general-menu()
 {
   {
-    variable $allStructures     := for $entry in $xqdoc2html:menuEntries/entry return $entry/@structure;   
-    variable $dvStructures      := distinct-values($allStructures);  
-    variable $structures        := for $entry in $dvStructures order by lower-case($entry) return $entry; 
+    variable $allStructures     := for $entry in $xqdoc2html:menuEntries/entry return $entry/@structure;
+    variable $dvStructures      := distinct-values($allStructures);
+    variable $structures        := for $entry in $dvStructures order by lower-case($entry) return $entry;
     variable $leftMenuFunction  := xqdoc2html:create-left-menu();
-    
+
     xqdoc2html:create-module-table( $structures,
                                     $leftMenuFunction)
   }
@@ -318,7 +318,7 @@
 $xqdocXmlPath as xs:string)
 {
   ddl:create($collectionName);
-  
+
   (: gather all the XQDoc XML's :)
   for $xqdocRelPath in file:list($xqdocXmlPath, fn:false(), "*.xml")
   let $path := fn:concat($xqdocXmlPath, file:directory-separator(), $xqdocRelPath )
@@ -329,19 +329,19 @@
 declare %private %ann:sequential function xqdoc2html:collectZorbaManifestEntries(
   $zorbaManifestPath as xs:string,
   $xqdocBuildPath as xs:string)
-{    
+{
   if(not(file:is-file($zorbaManifestPath))) then
   {
     variable $message := fn:concat("The file <ZorbaManifest.xml> was not found: <", $zorbaManifestPath, ">. Suggestion: run 'cmake' in your build folder such that ZorbaManifest.xml is regenerated.");
     fn:error($err:UE004, $message);
   }
-  else 
-  try 
+  else
+  try
   {
     variable $manifestXML := fn:parse-xml(file:read-text($zorbaManifestPath));
-    
-    variable $moduleManifests := $manifestXML/z:manifest/z:module;    
-         
+
+    variable $moduleManifests := $manifestXML/z:manifest/z:module;
+
     for $module in $moduleManifests
     return
       insert node <module uri="{data($module/z:uri)}"
@@ -354,7 +354,7 @@
     fn:error(fn:concat("The file <",$zorbaManifestPath,"> does not have the correct structure."));
   }
 };
-  
+
 (:~
  : This function creates the XQDoc XMLs and from them the XQDoc XHTMLs.
  :
@@ -370,54 +370,54 @@
   $xqdocBuildPath as xs:string,
   $indexHtmlPath  as xs:string,
   $zorbaVersion   as xs:string,
-  $xhtmlRequisitesPath as xs:string)  
-{ 
+  $xhtmlRequisitesPath as xs:string)
+{
   (: fill out $xqdoc2html:ZorbaManifest :)
   xqdoc2html:collectZorbaManifestEntries($zorbaManifestPath, $xqdocBuildPath);
-  
-  variable $xqdocXmlPath as xs:string := 
+
+  variable $xqdocXmlPath as xs:string :=
   fn:concat($xqdocBuildPath, file:directory-separator(), "xml");
-  
-  variable $xqdocXhtmlPath as xs:string := 
+
+  variable $xqdocXhtmlPath as xs:string :=
   fn:concat($xqdocBuildPath, file:directory-separator(), "xhtml");
-   
-  (: if there is no main.html template we can not proceed further :) 
+
+  (: if there is no main.html template we can not proceed further :)
   if(not(file:exists($indexHtmlPath))) then
     fn:error($err:UE002, "No 'main.html' template was found.");
   else
     ();
-    
-  (: start generate the XQDoc XHTML for all the modules :)  
+
+  (: start generate the XQDoc XHTML for all the modules :)
   xqdoc2html:create-collection-categories (xs:QName("xqdoc2html:collection"), $xqdocXmlPath);
-  
+
   trace(xs:string(1)," collect-menu-entries ...");
   xqdoc2html:collect-menu-entries();
-  
+
   (: copy the left menu inside menu.html page :)
   trace(xs:string(2)," create-general-menu ...");
   variable $leftMenuIndex := xqdoc2html:create-general-menu();
   variable $generalLeftMenu :=  <ul id="documentation" class="treeview">{$leftMenuIndex}</ul>;
-                                          
+
   xqdoc2html:generate-xqdoc-xhtml($generalLeftMenu, $xhtmlRequisitesPath, $xqdocXhtmlPath);
 
-  variable $functionIndex := 
+  variable $functionIndex :=
   xqdoc2html:generate-function-index-xhtml( $generalLeftMenu,
-                                            $indexHtmlPath, 
-                                            fn:concat($xqdocXhtmlPath, 
-                                              file:directory-separator(), 
+                                            $indexHtmlPath,
+                                            fn:concat($xqdocXhtmlPath,
+                                              file:directory-separator(),
                                               $xqdoc2html:functionIndexPageName));
-                                                  
-  variable $doc := 
+
+  variable $doc :=
     xqdoc2html:generate-index-html($indexHtmlPath,
-                                   $generalLeftMenu, 
+                                   $generalLeftMenu,
                                    $leftMenuIndex,
                                    $zorbaVersion);
 
   file:write(fn:concat($xqdocXhtmlPath, file:directory-separator(), "index.html"),
-             $doc, 
-             $xqdoc2html:serParamXhtml);                                          
-                         
-  dml:delete-nodes(dml:collection(xs:QName("xqdoc2html:collection")));                           
+             $doc,
+             $xqdoc2html:serParamXhtml);
+
+  dml:delete-nodes(dml:collection(xs:QName("xqdoc2html:collection")));
   ddl:delete(xs:QName("xqdoc2html:collection"));
 };
 
@@ -487,7 +487,7 @@
     {
       variable $schemaName := concat(xqdoc2html:get-filename($schemaURI), ".html");
       xqdoc2html:collect-schema($schemaURI, $schemaName, $xqdoc2html:schemasCollector);
-      
+
       variable $schemaContent := fetch:content($schemaURI, "SCHEMA");
       variable $schemaPath := concat($xqdocXhtmlPath,
                                      file:directory-separator(),
@@ -501,8 +501,8 @@
 
 (:~
  : This function reads the XQDoc XML and then invokes the creation of the XHTML
- : for all the modules corresponding to the XML's found in $xqdocXmlPath 
- : and writes the resulting XHTML's in $xqdocXhtmlPath. 
+ : for all the modules corresponding to the XML's found in $xqdocXmlPath
+ : and writes the resulting XHTML's in $xqdocXhtmlPath.
  : The hierarchy is not preserved.
  :
  : @param $xhtmlRequisitesPath location of the XHTML prerequisites.
@@ -515,12 +515,12 @@
   $xhtmlRequisitesPath  as xs:string,
   $xqdocXhtmlPath       as xs:string
   ) as xs:string*
-{  
-  variable $modulePath  := fn:concat($xqdocXhtmlPath, file:directory-separator(), $xqdoc2html:moduleFolderName); 
-  variable $examplesFolderDestination := fn:concat($xqdocXhtmlPath, file:directory-separator(),$xqdoc2html:exampleFolderName); 
-  file:create-directory($modulePath);  
+{
+  variable $modulePath  := fn:concat($xqdocXhtmlPath, file:directory-separator(), $xqdoc2html:moduleFolderName);
+  variable $examplesFolderDestination := fn:concat($xqdocXhtmlPath, file:directory-separator(),$xqdoc2html:exampleFolderName);
+  file:create-directory($modulePath);
   file:create-directory($examplesFolderDestination);
-  
+
   for $docNode in dml:collection(xs:QName("xqdoc2html:collection"))
   let $moduleDoc := $docNode/xqdoc:xqdoc/xqdoc:module
   let $moduleName := $moduleDoc/xqdoc:name
@@ -528,7 +528,7 @@
   let $getFilename := xqdoc2html:get-filename($moduleUri)
   let $xhtmlRelativeFilePath := fn:concat($getFilename, ".html")
   return
-  try 
+  try
   {
     if(($moduleUri = "http://www.w3.org/2005/xpath-functions";) or
        ($moduleUri = "http://www.w3.org/2005/xpath-functions/math";) or
@@ -538,11 +538,11 @@
       (:just read the content from the templates folder and compute the left menu:)
       variable $templatesPath := concat($xhtmlRequisitesPath, file:directory-separator(), 'templates');
       variable $xhtmlSource := concat($templatesPath, file:directory-separator(), $xhtmlRelativeFilePath);
-      
+
       variable $xhtml := xqdoc2html:add-left-menu($generalLeftMenu, $xhtmlSource);
       variable $xhtmlFilePath := fn:concat($xqdocXhtmlPath, file:directory-separator(), $xhtmlRelativeFilePath);
       file:write($xhtmlFilePath, $xhtml, $xqdoc2html:serParamXhtml);
-      
+
       (: copy the .xq module to the xhtml/modules folder :)
       variable $moduleContent := fetch:content($moduleUri, "MODULE");
       variable $destination := fn:concat($modulePath, file:directory-separator(), pxqdoc:get-filename($moduleUri),".html");
@@ -551,29 +551,29 @@
                 $xqdoc2html:serParamXhtml);
     }
     else
-    {      
+    {
       (: replace the inlined examples with actual XQuery code :)
       variable $examplesPath := xqdoc2html:get-project-root($moduleUri);
       variable $xqdoc2 := xqdoc2html:configure-xml($docNode/xqdoc:xqdoc, $examplesPath, $xqdocXhtmlPath);
-      
+
       (: copy the examples listed in the .xq file into the xhtml/examples folder :)
       xqdoc2html:copy-examples($xqdoc2, $examplesFolderDestination, $examplesPath);
-      
+
       (: copy the .xq module to the xhtml/modules folder :)
       variable $moduleContent := fetch:content($moduleUri, "MODULE");
       variable $destination := fn:concat($modulePath, file:directory-separator(), pxqdoc:get-filename($moduleUri),".html");
       file:write( $destination,
                 xqdoc2html:create-xhtml-wrapper($moduleContent,"xquery"),
                 $xqdoc2html:serParamXhtml);
-                                        
+
       (: copy the schemas that are imported by this module :)
       variable $schemaImports := $docNode/xqdoc:xqdoc/xqdoc:imports/xqdoc:import[@type="schema"];
       if(count($schemaImports) ne xs:integer(0)) then
         xqdoc2html:copy-schemas($docNode/xqdoc:xqdoc/xqdoc:imports/xqdoc:import[@type="schema"], $xqdocXhtmlPath);
       else ();
-                                    
+
       if($xqdoc2/xqdoc:module/@type = "library") then
-      {         
+      {
         variable $templatePath := fn:concat($xhtmlRequisitesPath, file:directory-separator(),"templates",file:directory-separator(),"main.html");
         variable $xhtml := xqdoc2html:doc($xqdoc2, $generalLeftMenu, $templatePath, $xqdocXhtmlPath);
         variable $xhtmlFilePath := fn:concat($xqdocXhtmlPath, file:directory-separator(), $getFilename,".html");
@@ -582,8 +582,8 @@
       else ();
     }
   }
-  catch * 
-  {      
+  catch *
+  {
     fn:error($err:UE004, fn:concat("FAILED: ", $moduleUri, " Message: ", $werr:description));
   }
 };
@@ -602,7 +602,7 @@
   $xqdoc,
   $examplePath as xs:string,
   $xqdocXhtmlPath as xs:string)
-{    
+{
   (: replace the inlineExamples with actual inline code :)
   for $inlineExample in $xqdoc//*:inlineexample
   return
@@ -610,7 +610,7 @@
     variable $exampleSource := xqdoc2html:resolve-file-path(fn:data($inlineExample/@href), $examplePath);
     variable $exampleContent := file:read-text($exampleSource);
     replace node $inlineExample with
-      <pre class="brush: xquery;">{text{$exampleContent}}</pre>;      
+      <pre class="brush: xquery;">{text{$exampleContent}}</pre>;
   }
 
   $xqdoc
@@ -625,7 +625,7 @@
  : @return The created XHTML page.
  :)
 declare %private %ann:sequential function xqdoc2html:copy-examples(
-  $xqdoc, 
+  $xqdoc,
   $examplesFolderDestination as xs:string,
   $examplePath as xs:string)
 {
@@ -639,18 +639,18 @@
     for $example in $xqdoc/xqdoc:functions/xqdoc:function/xqdoc:comment/xqdoc:custom[@tag="example"]
     let $exampleText := xqdoc2html:get-example-filename($example/text())
     let $exampleDestination := fn:concat($examplesFolderDestination, "/", replace($exampleText,'.xq','.html'))
-    return 
+    return
     {
       variable $exampleSource := fn:concat($examplePath, "/", $example/text());
       if(not(file:is-file($exampleSource))) then
         fn:error($err:UE009, fn:concat("Copy example from <", $exampleSource,"> to <", $exampleDestination, "> failed."))
       else
-      try {         
+      try {
         xqdoc2html:copy-example($exampleSource, $exampleDestination, $examplePath)
       } catch *  {
         fn:error($err:UE009, fn:concat("Copy example from <", $exampleSource,"> to <", $exampleDestination, "> failed. Error code: ", $werr:code, " Message: ", $werr:description))
       }
-      
+
     };
   }
 };
@@ -693,7 +693,7 @@
   let $exampleContent := file:read-text( $exampleSource )
   return
   if (fn:not(fn:matches($exampleSource, "[.]xq$")) or
-      fn:not(fn:matches($exampleSource, $search-queries))) then     
+      fn:not(fn:matches($exampleSource, $search-queries))) then
     file:write( $exampleDestination,
                 xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"),
                 $xqdoc2html:serParamXhtml)
@@ -704,22 +704,22 @@
   else
     let $specSource := fn:replace($exampleSource, "[.]xq$", ".spec")
     return
-    if (fn:matches($specSource, "[.]spec$") and file:is-file($specSource)) 
-    then 
+    if (fn:matches($specSource, "[.]spec$") and file:is-file($specSource))
+    then
     {
       variable $specContent :=  file:read-text( $specSource );
-  
+
       variable $specContent2 := fn:replace($specContent,
-                                          "\$RBKT_SRC_DIR", 
+                                          "\$RBKT_SRC_DIR",
                                           fn:concat($examplePath,"/rbkt"));
-  
+
       variable $specLines := fn:tokenize($specContent2, "[\n\r]+");
-  
+
       variable $specArgs := xqdoc2html:parse-spec-args($exampleSource, $specLines);
-  
-      variable $specResults := xqdoc2html:parse-spec-results($exampleSource, 
+
+      variable $specResults := xqdoc2html:parse-spec-results($exampleSource,
                                                             $specLines);
-  
+
       variable $exampleContent := fn:concat($exampleContent, "
 
 
@@ -735,15 +735,15 @@
 
 ", $specResults, "
 ");
-          if (fn:string-length($specResults) eq 0) 
+          if (fn:string-length($specResults) eq 0)
           then
           {
-            if (fn:not(matches($specContent2, "Error"))) 
+            if (fn:not(matches($specContent2, "Error")))
             then
             {
               variable $replace-exp-result := "rbkt/ExpQueryResults";
 
-              variable $exp-result-path := 
+              variable $exp-result-path :=
               fn:replace($exampleSource, $search-queries, $replace-exp-result);
 
               variable $exp-result := fn:replace($exp-result-path, "[.]xq$", ".xml.res");
@@ -761,8 +761,8 @@
 
 :)
 ");
-                file:write($exampleDestination, 
-                           xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"), 
+                file:write($exampleDestination,
+                           xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"),
                            $xqdoc2html:serParamXhtml);
               }
               else
@@ -777,8 +777,8 @@
 Test returns an error code.
 :)
 ");
-              file:write($exampleDestination, 
-                         xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"), 
+              file:write($exampleDestination,
+                         xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"),
                          $xqdoc2html:serParamXhtml);
             }
           }
@@ -788,8 +788,8 @@
 
 :)
 ");
-          file:write($exampleDestination, 
-                     xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"), 
+          file:write($exampleDestination,
+                     xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"),
                      $xqdoc2html:serParamXhtml);
           }
         }
@@ -801,7 +801,7 @@
 
           variable $exp-result := fn:replace($exp-result-path, "[.]xq$", ".xml.res");
 
-          if (($exp-result-path ne $exampleSource) and file:is-file ($exp-result)) 
+          if (($exp-result-path ne $exampleSource) and file:is-file ($exp-result))
           then
           {
             variable $output-content := file:read-text ($exp-result);
@@ -813,11 +813,11 @@
 Expected output:
 
 ", $output-content, "
-                
+
 :)
 ");
-            file:write($exampleDestination, 
-                       xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"), 
+            file:write($exampleDestination,
+                       xqdoc2html:create-xhtml-wrapper($exampleContent,"xquery"),
                        $xqdoc2html:serParamXhtml);
           }
           else
@@ -917,7 +917,7 @@
  : @return a xs:boolean if there are external functions declared.
  :)
 declare %private function xqdoc2html:contains-external-functions (
-  $xqdoc) as xs:boolean 
+  $xqdoc) as xs:boolean
 {
   let $ext := count(for $sig in $xqdoc/xqdoc:functions/xqdoc:function/xqdoc:signature
                     return
@@ -925,10 +925,10 @@
                       else ())
   let $func := count ($xqdoc/xqdoc:functions/xqdoc:function/xqdoc:signature)
   return
-    (($func gt 0) and ($ext gt 0))  
+    (($func gt 0) and ($ext gt 0))
 };
 
-declare %private function xqdoc2html:get-example-filename($examplePath as xs:string) as xs:string 
+declare %private function xqdoc2html:get-example-filename($examplePath as xs:string) as xs:string
 {
   if (fn:contains($examplePath,"/")) then
     fn:replace($examplePath,"/","_")
@@ -938,7 +938,7 @@
     $examplePath
 };
 
-declare  %private function xqdoc2html:get-example-filename-link($examplePath as xs:string) as xs:string 
+declare  %private function xqdoc2html:get-example-filename-link($examplePath as xs:string) as xs:string
 {
   fn:tokenize($examplePath,fn:concat("\",file:directory-separator()))[last()]
 };
@@ -948,45 +948,45 @@
 {
   let $ZorbaOptAndAnn := "../../html/options_and_annotations.html",
       $xquSpec := "http://www.w3.org/TR/xquery-update-10/#dt-updating-function";,
-      $xqsSpec := "http://xquery-scripting.ethz.ch/spec.html";,
+      $xqsSpec := "../../html/scripting_spec.html",
       $xq11Spec := "http://www.w3.org/TR/xquery-11/#FunctionDeclns";,
       $xqExternal := "http://www.w3.org/TR/xquery-30/#dt-external-function";,
       $imagesPath := "images/"
   return
     <span class="no_underline">
       {if(contains($type, "updating")) then
-        <a  href="{$xquSpec}" 
-            title="updating" 
-            target="_blank"><img src="{concat($imagesPath, "Updating.gif")}" /></a>  
+        <a  href="{$xquSpec}"
+            title="updating"
+            target="_blank"><img src="{concat($imagesPath, "Updating.gif")}" /></a>
        else ()}
        {if(contains($type, "sequential")) then
-        <a  href="{$xqsSpec}" 
-            title="sequential" 
-            target="_blank"><img src="{concat($imagesPath, "Sequential.gif")}" /></a>  
+        <a  href="{$xqsSpec}"
+            title="sequential"
+            target="_blank"><img src="{concat($imagesPath, "Sequential.gif")}" /></a>
        else ()}
        {if(contains($type, "nondeterministic ")) then
-        <a  href="{$ZorbaOptAndAnn}" 
-            title="%ann:nondeterministic" 
-            target="_blank"><img src="{concat($imagesPath, "Nondeterministic.gif")}" /></a>  
+        <a  href="{$ZorbaOptAndAnn}"
+            title="%ann:nondeterministic"
+            target="_blank"><img src="{concat($imagesPath, "Nondeterministic.gif")}" /></a>
        else ()}
        {if(contains($type, "variadic")) then
         <a  title="A function annotated with the http://www.zorba-xquery.com/annotations:variadic annotation is a function of indefinite arity, i.e. one that accepts a variable number of arguments."
             href="{$ZorbaOptAndAnn}"
-            target="_blank"><img src="{concat($imagesPath, "Variadic.gif")}" /></a>  
+            target="_blank"><img src="{concat($imagesPath, "Variadic.gif")}" /></a>
        else ()}
        {if(contains($type, "streamable")) then
-        <a  href="{$ZorbaOptAndAnn}" title="A function annotated with the http://www.zorba-xquery.com/annotations:streamable annotation is 
-        a function that may return an xs:string item whose content is streamed. Such a string is called a streamable string. 
-        Such strings have the advantage that their contents doesn't need to be materialized in memory. 
-        If a function consuming such a string is able to process the string in a streaming fashion, 
-        this allows for processing of strings with a virtually infinite length. 
-        However, the disadvantage is that a streamable string can only be consumed exactly once. 
-        If a streamable string is consumed more than once, an error is raised. 
-        In order to enable multiple consumers of a streamable string, the string:materialize function can be used 
-        to materialize the entire contents in an (regular) xs:string item." target="_blank"><img src="{concat($imagesPath, "Streamable.gif")}" /></a>  
+        <a  href="{$ZorbaOptAndAnn}" title="A function annotated with the http://www.zorba-xquery.com/annotations:streamable annotation is
+        a function that may return an xs:string item whose content is streamed. Such a string is called a streamable string.
+        Such strings have the advantage that their contents doesn't need to be materialized in memory.
+        If a function consuming such a string is able to process the string in a streaming fashion,
+        this allows for processing of strings with a virtually infinite length.
+        However, the disadvantage is that a streamable string can only be consumed exactly once.
+        If a streamable string is consumed more than once, an error is raised.
+        In order to enable multiple consumers of a streamable string, the string:materialize function can be used
+        to materialize the entire contents in an (regular) xs:string item." target="_blank"><img src="{concat($imagesPath, "Streamable.gif")}" /></a>
        else ()}
        {if(contains($type, "external")) then
-        <a href="{$xqExternal}" title="external" target="_blank"><img src="{concat($imagesPath, "External.gif")}" /></a>  
+        <a href="{$xqExternal}" title="external" target="_blank"><img src="{concat($imagesPath, "External.gif")}" /></a>
        else ()}
     </span>
 };
@@ -1007,7 +1007,7 @@
   let $doc := fn:parse-xml(file:read-text($templatePath))
   return {
     insert nodes $menu
-    as last into $doc/*:html/*:body/*:div[@id='main']/*:div[@id='leftMenu'];          
+    as last into $doc/*:html/*:body/*:div[@id='main']/*:div[@id='leftMenu'];
 
     $doc
   }
@@ -1024,18 +1024,18 @@
  : @return The created XHTML page.
  :)
 declare %private %ann:sequential function xqdoc2html:doc(
-  $xqdoc, 
+  $xqdoc,
   $menu,
   $templatePath as xs:string,
   $xqdocXhtmlPath as xs:string) {
   let $doc := fn:parse-xml(file:read-text($templatePath))
   return {
     insert node <title>Documentation for {xqdoc2html:module-uri($xqdoc)}</title>
-    as first into $doc/*:html/*:head;    
- 
+    as first into $doc/*:html/*:head;
+
     insert nodes $menu
-    as last into $doc/*:html/*:body/*:div[@id='main']/*:div[@id='leftMenu'];   
- 
+    as last into $doc/*:html/*:body/*:div[@id='main']/*:div[@id='leftMenu'];
+
     let $right_content := $doc/*:html/*:body/*:div[@id='main']/*:div[@id='rightcontent']
     return
       if ($right_content)
@@ -1043,7 +1043,7 @@
         insert nodes xqdoc2html:body($xqdoc, $xqdocXhtmlPath)
         as last into $right_content;
       else
-        ();        
+        ();
 
     $doc
   }
@@ -1069,16 +1069,16 @@
  : @return The 'body' of the XHTML.
  :)
 declare %private %ann:nondeterministic function xqdoc2html:body(
-  $xqdoc, 
+  $xqdoc,
   $xqdocXhtmlPath as xs:string)
 {
   (: use only the functions not marked as %private :)
-  let $functions := for $function in $xqdoc/xqdoc:functions/xqdoc:function 
+  let $functions := for $function in $xqdoc/xqdoc:functions/xqdoc:function
                     where xqdoc2html:function-is-not-private($function)
                     return $function
   let $moduleUri := xqdoc2html:module-uri($xqdoc)
   let $isZorbaCore as xs:boolean := xqdoc2html:get-is-core($moduleUri)
-  let $modulePrefix as xs:string := if(count($functions) ne xs:integer(0)) then 
+  let $modulePrefix as xs:string := if(count($functions) ne xs:integer(0)) then
   substring-before($xqdoc/xqdoc:functions/xqdoc:function[1]/xqdoc:name/text(),':') else
   if($xqdoc/xqdoc:variables/xqdoc:variable) then
   substring-before($xqdoc/xqdoc:variables/xqdoc:variable[1]/xqdoc:uri/text(),':') else
@@ -1158,8 +1158,8 @@
   return
     for $annotation in $annotations
     let $annName := local-name($annotation)
-    return 
-    ( 
+    return
+    (
       <div class="subsubsection">{
         concat(upper-case(substring($annName, 1, 1)), substring($annName, 2), ":")
       }</div>,
@@ -1176,7 +1176,7 @@
  :)
 declare %private %ann:nondeterministic function xqdoc2html:module-resources(
   $xqdocXhtmlPath as xs:string,
-  $moduleUri as xs:string) 
+  $moduleUri as xs:string)
 {
   let $folder := xqdoc2html:get-filename($moduleUri)
   return
@@ -1234,7 +1234,7 @@
           <li><a href="{$filePath}" target="_blank">{string($import/xqdoc:uri/text())}</a></li>
         }
         else
-          <li>{string($import/xqdoc:uri/text())}</li>  
+          <li>{string($import/xqdoc:uri/text())}</li>
     }
     </ul></p>
   else (),
@@ -1251,7 +1251,7 @@
 };
 
 (:~
- : Create the items for the Related Documentation 
+ : Create the items for the Related Documentation
  : ('see' annotations appearing in the module description part).
  :
  : @param $module the node containing the XQDoc XML module.
@@ -1284,7 +1284,7 @@
  :)
 declare %private function xqdoc2html:module-variables($variables)
 {
-  let $noPublicVariables := 
+  let $noPublicVariables :=
     count(for $variable in $variables/xqdoc:variable
           where (count($variable/xqdoc:annotations/xqdoc:annotation[@localname="private"]) = 0)
           return $variable)
@@ -1293,7 +1293,7 @@
   else
    (<div class="section"><span id="variables">Variables</span></div>,
     <table class="funclist">
-   {      
+   {
       for $variable in $variables/xqdoc:variable
       let $name := $variable/xqdoc:uri/text()
       let $type := $variable/xqdoc:comment/xqdoc:custom[@tag="type"]/text()
@@ -1302,7 +1302,7 @@
                                return data($annotation/@localname),
                                if($isExternal) then "external" else ""," ")," ")
 
-      where (count($variable/xqdoc:annotations/xqdoc:annotation[@localname="private"]) = 0) 
+      where (count($variable/xqdoc:annotations/xqdoc:annotation[@localname="private"]) = 0)
       order by $name
       return (<tr>
               <td>{xqdoc2html:add-images($ann)}</td>
@@ -1327,7 +1327,7 @@
   if($namespaces/xqdoc:namespace) then
     (<div class="section"><span id="variables">Namespaces</span></div>,
     <table class="varlist">
-    {      
+    {
       for $namespace in $namespaces/xqdoc:namespace
       let $prefix := data($namespace/@prefix)
       let $uri := data($namespace/@uri)
@@ -1362,10 +1362,10 @@
           $description := data($function/xqdoc:comment/xqdoc:description),
           $shortDescription := if(not(fn:substring-before($description,".") = "")) then
                                fn:concat(fn:substring-before($description,"."),".") else ""
-      order by $name, $param-number 
+      order by $name, $param-number
       return
         let $type := replace(normalize-space(substring-after(substring-before($signature, "function"), "declare")),"\%",""),
-            $isExternal := ends-with($signature, "external"),    
+            $isExternal := ends-with($signature, "external"),
             $paramsAndReturn := substring-after($signature,concat(':',$name)),
             $external := if(ends-with($signature,"external")) then "external" else ""
         return
@@ -1399,7 +1399,7 @@
     (: if the function has parameter :)
     if (matches($rest, "\$")) then
       let $tmp := substring-before($rest, ") as ")
-      return 
+      return
         (: if we don't have a return type specified :)
         if ($tmp eq "") then
           (: en external function declaration :)
@@ -1473,10 +1473,10 @@
         xqdoc2html:function-return($comment),
         xqdoc2html:errors($comment),
         xqdoc2html:annotations($comment),
-        xqdoc2html:annotations-author($comment),        
+        xqdoc2html:annotations-author($comment),
         xqdoc2html:annotations-see($comment),
-        xqdoc2html:annotations-example($comment, $xqdocXhtmlPath),  
-        <hr />)                
+        xqdoc2html:annotations-example($comment, $xqdocXhtmlPath),
+        <hr />)
        )
     else ()
 };
@@ -1497,24 +1497,24 @@
   xqdoc2html:add-images(string-join((
   if(contains($lcSignature, 'updating')) then
     'updating' else (),
-    
+
   if(contains($lcSignature, 'sequential')) then
     'sequential' else (),
-    
+
   if(contains($lcSignature, 'nondeterministic')) then
     'nondeterministic' else (),
-    
+
   if(contains($lcSignature, 'non-deterministic')) then
     'nondeterministic' else (),
-    
+
   if(contains($lcSignature, 'variadic')) then
     'variadic' else (),
-  
+
   if(contains($lcSignature, 'streamable')) then
     'streamable' else (),
   if(ends-with($signature, 'external')) then
     'external' else ())," ")),
-    
+
   $name
 )
 };
@@ -1529,10 +1529,10 @@
   let $params := $comment/xqdoc:param
   return
     if (exists($params)) then
-      (<div class="subsubsection">Parameters:</div>, 
+      (<div class="subsubsection">Parameters:</div>,
       <ul>
       {for $param in $params return <li>{data($param)}</li>}
-      </ul>) 
+      </ul>)
     else ()
 };
 
@@ -1561,10 +1561,10 @@
   let $errors := $comment/xqdoc:error
   return
     if (exists($errors)) then
-      (<div class="subsubsection">Errors:</div>, 
+      (<div class="subsubsection">Errors:</div>,
       <ul>
       {for $error in $errors return <li>{data($error)}</li>}
-      </ul>) 
+      </ul>)
     else ()
 };
 
@@ -1597,11 +1597,11 @@
   return
     for $annotation in $annotations
     let $annName := local-name($annotation)
-    return 
-    ( 
+    return
+    (
       <div class="subsubsection">{
         concat(upper-case(substring($annName, 1, 1)), substring($annName, 2), ":")
-      }</div>,    
+      }</div>,
       <p class="annotationText">{$annotation/node()}</p>
     )
 };
@@ -1617,7 +1617,7 @@
   (
     if($isModuleURI) then
       <a href="{concat(xqdoc2html:get-filename($text),'.html')}">{$text}</a>
-    else 
+    else
       <a href="{$text}" target="_blank">{$text}</a>
   )
   else $text
@@ -1703,7 +1703,7 @@
         <span class="link"><a href="#{$letter}">{$letter}</a></span>
       else
         <span>{upper-case($letter)}</span>,
-     
+
     for $letter in $letters
       order by $letter
       return
@@ -1786,21 +1786,21 @@
           ();
 
     (:$indexHtmlDoc:)
-    file:write($functionIndexPath, 
-               $indexHtmlDoc, 
+    file:write($functionIndexPath,
+               $indexHtmlDoc,
                $xqdoc2html:serParamXhtml);
   }
 };
 
 declare %private %ann:sequential function xqdoc2html:collect-entry (
-  $href as xs:string, 
-  $name as xs:string, 
+  $href as xs:string,
+  $name as xs:string,
   $structure as xs:string,
   $pureXQuery as xs:string,
-  $moduleURI as xs:string) 
+  $moduleURI as xs:string)
 {
-  insert node <entry  href="{$href}" 
-                      name="{$name}" 
+  insert node <entry  href="{$href}"
+                      name="{$name}"
                       structure="{$structure}"
                       pureXQuery="{$pureXQuery}"
                       moduleURI="{$moduleURI}" /> as last into $xqdoc2html:menuEntries;
@@ -1811,7 +1811,7 @@
   for $docNode in dml:collection(xs:QName("xqdoc2html:collection"))
       let $module := $docNode/xqdoc:xqdoc/xqdoc:module,
           $lModuleProject := $module/xqdoc:comment/xqdoc:custom[@tag="project"]/text(),
-          $lModuleUri     := $module/xqdoc:uri/text(),  
+          $lModuleUri     := $module/xqdoc:uri/text(),
           $lXHTMLFileName := pxqdoc:get-filename($lModuleUri),
           $lPureXquery    := not(xqdoc2html:contains-external-functions($docNode/xqdoc:xqdoc)),
           $lTmp := substring-after($lModuleUri,'http://'),
@@ -1837,7 +1837,7 @@
  : @return $table after the subcategory together with the modules were added to it.
  :)
 declare %private %ann:sequential function xqdoc2html:create-module-helper(
-  $table, 
+  $table,
   $category as xs:string,
   $currentCategory as xs:string
   )
@@ -1856,16 +1856,16 @@
           {
             if(xs:boolean(data($entry/@pureXQuery))) then ()
             else
-              <sup><a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; 
+              <sup><a href="http://www.w3.org/TR/xquery-30/#dt-external-function";
               target="_blank" title="There are external functions (either private or public) declared in this module.">(E)</a></sup>
           }
           {
             if($isZorbaCore) then
               <sup><img src="images/ZCsmall.gif" alt="ZC" title="This module is part of Zorba core."/></sup>
             else ()
-          }          
+          }
         </li>
-    }    
+    }
     </ul></li>
     as last into $table
   };
@@ -1878,7 +1878,7 @@
   $currentCat as xs:string
 ) as xs:string*
 {
-  let $lTmp :=  for $cat in $level1 
+  let $lTmp :=  for $cat in $level1
                 where starts-with($cat,concat($currentCat,'/'))
                 return substring-after($cat, concat($currentCat,'/'))
   return distinct-values(for $str in $lTmp return tokenize($str,'/')[1])
@@ -1918,10 +1918,10 @@
 {
  (: show first the items in the $xqdoc2html:level1Weight that were also found in the modules :)
  let $defined := for $str in $xqdoc2html:level1Weight return xqdoc2html:value-intersect($str, $entries)
- 
+
  (: if there are any other level 1 items found in the modules, show them also ordered alphabetically:)
  let $undefined := xqdoc2html:value-except($entries, $defined)
- 
+
  return ($defined, for $str in $undefined order by $str return $str)
 };
 
@@ -1934,14 +1934,14 @@
  : @return $root after the subcategories were added to it.
  :)
 declare %private %ann:sequential function xqdoc2html:create-module-table(
-  $level1 as xs:string*, 
-  $root) 
+  $level1 as xs:string*,
+  $root)
 {
   {
     variable $leveln := distinct-values(for $str in $level1 return tokenize($str,'/')[1]);
-    
+
     xqdoc2html:create-module-table-rec($level1, xqdoc2html:order-level1-entries($leveln), "", $root, fn:false());
-      
+
     $root
   }
 };
@@ -1963,37 +1963,37 @@
 };
 
 (:
-declare %private %ann:sequential function xqdoc2html:create-specialized-left-menu( 
+declare %private %ann:sequential function xqdoc2html:create-specialized-left-menu(
   $generalLeftMenu,
   $moduleUri as xs:string)
-{  
+{
   {
     for $docNode in dml:collection(xs:QName("xqdoc2html:collection"))
       let $module := $docNode/xqdoc:xqdoc/xqdoc:module,
           $lModuleUri     := $module/xqdoc:uri/text(),
           $lPureXquery    := not(xqdoc2html:contains-external-functions($docNode/xqdoc:xqdoc))
     where $lModuleUri = $moduleUri
-            
+
     for $node in $generalLeftMenu//li
     let $isZorbaCore as xs:boolean := xs:boolean(dml:collection(xs:QName("xqdoc2html:collectionConfig"))/module[@moduleURI=$moduleUri]/@isCore)
-    where $node/a[@title eq $moduleUri] 
-    return   
+    where $node/a[@title eq $moduleUri]
+    return
     replace node $node with
       <li>
       <span class="leftmenu_active">{$node/a/text()}
       {
         if($lPureXquery) then ()
         else
-          <sup><span class="superscript"><a href="http://www.w3.org/TR/xquery-30/#dt-external-function"; 
+          <sup><span class="superscript"><a href="http://www.w3.org/TR/xquery-30/#dt-external-function";
           target="_blank" title="There are external functions (either private or public) declared in this module.">(E)</a></span></sup>
       }</span>
       {
         if($isZorbaCore) then
           <sup><img src="images/ZCsmall.gif" alt="ZC" title="This module is part of Zorba core."/></sup>
         else ()
-      }</li>;      
+      }</li>;
   }
- 
+
   $generalLeftMenu
 };
 :)
@@ -2008,8 +2008,8 @@
  : @return The content of the new index.html.
  :)
 declare %private %ann:sequential function xqdoc2html:generate-index-html(
-  $templatePath as xs:string, 
-  $menu, 
+  $templatePath as xs:string,
+  $menu,
   $modules,
   $zorbaVersion as xs:string) as document-node()
 {

=== modified file 'modules/w3c/xpath_functions.xq'
--- modules/w3c/xpath_functions.xq	2011-08-05 02:21:55 +0000
+++ modules/w3c/xpath_functions.xq	2011-10-04 19:06:32 +0000
@@ -27,971 +27,971 @@
 module namespace fn = "http://www.w3.org/2005/xpath-functions";;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-QName";>fn:QName</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-QName";>fn:QName</a>
  :)
 declare function fn:QName($paramURI as xs:string?, $paramQName as xs:string) as xs:QName external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-abs";>fn:abs</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-abs";>fn:abs</a>
  :)
 declare function fn:abs($arg as numeric?) as numeric? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
  :)
 declare function fn:adjust-date-to-timezone($arg as xs:date?) as xs:date? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-date-to-timezone";>fn:adjust-date-to-timezone</a>
  :)
 declare function fn:adjust-date-to-timezone( $arg as xs:date?, $timezone as xs:dayTimeDuration?) as xs:date? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
  :)
 declare function fn:adjust-dateTime-to-timezone($arg as xs:dateTime?) as xs:dateTime external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-dateTime-to-timezone";>fn:adjust-dateTime-to-timezone</a>
  :)
 declare function fn:adjust-dateTime-to-timezone( $arg as xs:dateTime?, $timezone as xs:dayTimeDuration?) as xs:dateTime external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
  :)
 declare function fn:adjust-time-to-timezone($arg as xs:time?) as xs:time? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-adjust-time-to-timezone";>fn:adjust-time-to-timezone</a>
  :)
 declare function fn:adjust-time-to-timezone( $arg as xs:time?, $timezone as xs:dayTimeDuration?) as xs:time? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-analyze-string";>fn:analyze-string</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-analyze-string";>fn:analyze-string</a>
  :)
 declare function fn:analyze-string( $input as xs:string?, $pattern as xs:string) as element(fn:analyze-string-result) external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-analyze-string";>fn:analyze-string</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-analyze-string";>fn:analyze-string</a>
  :)
 declare function fn:analyze-string( $input as xs:string?, $pattern as xs:string, $flags as xs:string) as element(fn:analyze-string-result) external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-available-environment-variables";>fn:available-environment-variables</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables";>fn:available-environment-variables</a>
  :)
 declare function fn:available-environment-variables() as xs:string* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-avg";>fn:avg</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-avg";>fn:avg</a>
  :)
 declare function fn:avg($arg as xs:anyAtomicType*) as xs:anyAtomicType? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-boolean";>fn:boolean</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-boolean";>fn:boolean</a>
  :)
 declare function fn:boolean($arg as item()*) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-ceiling";>fn:ceiling</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-ceiling";>fn:ceiling</a>
  :)
 declare function fn:ceiling($arg as numeric?) as numeric? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-codepoint-equal";>fn:codepoint-equal</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-codepoint-equal";>fn:codepoint-equal</a>
  :)
 declare function fn:codepoint-equal( $comparand1 as xs:string?, $comparand2 as xs:string?) as xs:boolean? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-codepoints-to-string";>fn:codepoints-to-string</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-codepoints-to-string";>fn:codepoints-to-string</a>
  :)
 declare function fn:codepoints-to-string($arg as xs:integer*) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-collection";>fn:collection</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-collection";>fn:collection</a>
  :)
 declare function fn:collection() as node()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-collection";>fn:collection</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-collection";>fn:collection</a>
  :)
 declare function fn:collection($arg as xs:string?) as node()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-compare";>fn:compare</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-compare";>fn:compare</a>
  :)
 declare function fn:compare($comparand1 as xs:string?, $comparand2 as xs:string?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-compare";>fn:compare</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-compare";>fn:compare</a>
  :)
 declare function fn:compare( $comparand1 as xs:string?, $comparand2 as xs:string?, $collation as xs:string) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-concat";>fn:concat</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-concat";>fn:concat</a>
  :)
 declare function fn:concat( $arg1 as xs:anyAtomicType?, $arg2 as xs:anyAtomicType? ) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-contains";>fn:contains</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-contains";>fn:contains</a>
  :)
 declare function fn:contains($arg1 as xs:string?, $arg2 as xs:string?) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-contains";>fn:contains</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-contains";>fn:contains</a>
  :)
 declare function fn:contains( $arg1 as xs:string?, $arg2 as xs:string?, $collation as xs:string) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-count";>fn:count</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-count";>fn:count</a>
  :)
 declare function fn:count($arg as item()*) as xs:integer external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-dateTime";>fn:dateTime</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-dateTime";>fn:dateTime</a>
  :)
 declare function fn:dateTime($arg1 as xs:date?, $arg2 as xs:time?) as xs:dateTime? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-day-from-date";>fn:day-from-date</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-day-from-date";>fn:day-from-date</a>
  :)
 declare function fn:day-from-date($arg as xs:date?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-days-from-duration";>fn:days-from-duration</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-days-from-duration";>fn:days-from-duration</a>
  :)
 declare function fn:days-from-duration($arg as xs:duration?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-deep-equal";>fn:deep-equal</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-deep-equal";>fn:deep-equal</a>
  :)
 declare function fn:deep-equal($parameter1 as item()*, $parameter2 as item()*) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-deep-equal";>fn:deep-equal</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-deep-equal";>fn:deep-equal</a>
  :)
 declare function fn:deep-equal( $parameter1 as item()*, $parameter2 as item()*, $collation as xs:string) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-distinct-values";>fn:distinct-values</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-distinct-values";>fn:distinct-values</a>
  :)
 declare function fn:distinct-values($arg as xs:anyAtomicType*) as xs:anyAtomicType* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-distinct-values";>fn:distinct-values</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-distinct-values";>fn:distinct-values</a>
  :)
 declare function fn:distinct-values( $arg as xs:anyAtomicType*, $collation as xs:string) as xs:anyAtomicType* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-doc";>fn:doc</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-doc";>fn:doc</a>
  :)
 declare function fn:doc($uri as xs:string?) as document-node()? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-doc-available";>fn:doc-available</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-doc-available";>fn:doc-available</a>
  :)
 declare function fn:doc-available($uri as xs:string?) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-element-with-id";>fn:element-with-id</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-element-with-id";>fn:element-with-id</a>
  :)
 declare function fn:element-with-id($arg as xs:string*) as element()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-element-with-id";>fn:element-with-id</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-element-with-id";>fn:element-with-id</a>
  :)
 declare function fn:element-with-id($arg as xs:string*, $node as node()) as element()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-empty";>fn:empty</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-empty";>fn:empty</a>
  :)
 declare function fn:empty($arg as item()*) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-ends-with";>fn:ends-with</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-ends-with";>fn:ends-with</a>
  :)
 declare function fn:ends-with($arg1 as xs:string?, $arg2 as xs:string?) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-ends-with";>fn:ends-with</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-ends-with";>fn:ends-with</a>
  :)
 declare function fn:ends-with( $arg1 as xs:string?, $arg2 as xs:string?, $collation as xs:string) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-environment-variable";>fn:environment-variable</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-environment-variable";>fn:environment-variable</a>
  :)
 declare function fn:environment-variable($name as xs:string) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
  :)
 declare function fn:error() as none external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
  :)
 declare function fn:error($code as xs:QName) as none external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
  :)
 declare function fn:error($code as xs:QName?, $description as xs:string) as none external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-error";>fn:error</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-error";>fn:error</a>
  :)
 declare function fn:error( $code as xs:QName?, $description as xs:string, $error-object as item()*) as none external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-exactly-one";>fn:exactly-one</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-exactly-one";>fn:exactly-one</a>
  :)
 declare function fn:exactly-one($arg as item()*) as item() external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-exists";>fn:exists</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-exists";>fn:exists</a>
  :)
 declare function fn:exists($arg as item()*) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-false";>fn:false</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-false";>fn:false</a>
  :)
 declare function fn:false() as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-filter";>fn:filter</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-filter";>fn:filter</a>
  :)
 declare function fn:filter($f as function(item()) as xs:boolean, $seq as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-floor";>fn:floor</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-floor";>fn:floor</a>
  :)
 declare function fn:floor($arg as numeric?) as numeric? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-fold-left";>fn:fold-left</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-fold-left";>fn:fold-left</a>
  :)
 declare function fn:fold-left( $f as function(item()*, item()) as item()*, $zero as item()*, $seq as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-fold-right";>fn:fold-right</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-fold-right";>fn:fold-right</a>
  :)
 declare function fn:fold-right( $f as function(item(), item()*) as item()*, $zero as item()*, $seq as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-date";>fn:format-date</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-date";>fn:format-date</a>
  :)
 declare function fn:format-date( $value as xs:date?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $place as xs:string?) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-date";>fn:format-date</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-date";>fn:format-date</a>
  :)
 declare function fn:format-date($value as xs:date?, $picture as xs:string) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-dateTime";>fn:format-dateTime</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-dateTime";>fn:format-dateTime</a>
  :)
 declare function fn:format-dateTime( $value as xs:dateTime?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $place as xs:string?) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-dateTime";>fn:format-dateTime</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-dateTime";>fn:format-dateTime</a>
  :)
 declare function fn:format-dateTime($value as xs:dateTime?, $picture as xs:string) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-integer";>fn:format-integer</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-integer";>fn:format-integer</a>
  :)
 declare function fn:format-integer($value as xs:integer?, $picture as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-integer";>fn:format-integer</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-integer";>fn:format-integer</a>
  :)
 declare function fn:format-integer( $value as xs:integer?, $picture as xs:string, $language as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-number";>fn:format-number</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-number";>fn:format-number</a>
  :)
 declare function fn:format-number($value as numeric?, $picture as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-number";>fn:format-number</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-number";>fn:format-number</a>
  :)
 declare function fn:format-number( $value as numeric?, $picture as xs:string, $decimal-format-name as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-time";>fn:format-time</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-time";>fn:format-time</a>
  :)
 declare function fn:format-time( $value as xs:time?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $place as xs:string?) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-format-time";>fn:format-time</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-format-time";>fn:format-time</a>
  :)
 declare function fn:format-time($value as xs:time?, $picture as xs:string) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-function-arity";>fn:function-arity</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-function-arity";>fn:function-arity</a>
  :)
 declare function fn:function-arity($func as function(*)) as xs:integer external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-generate-id";>fn:generate-id</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-generate-id";>fn:generate-id</a>
  :)
 declare function fn:generate-id() as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-generate-id";>fn:generate-id</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-generate-id";>fn:generate-id</a>
  :)
 declare function fn:generate-id($arg as node()?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-head";>fn:head</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-head";>fn:head</a>
  :)
 declare function fn:head($arg as item()*) as item()? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-hours-from-duration";>fn:hours-from-duration</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-hours-from-duration";>fn:hours-from-duration</a>
  :)
 declare function fn:hours-from-duration($arg as xs:duration?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-hours-from-time";>fn:hours-from-time</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-hours-from-time";>fn:hours-from-time</a>
  :)
 declare function fn:hours-from-time($arg as xs:time?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-id";>fn:id</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-id";>fn:id</a>
  :)
 declare function fn:id($arg as xs:string*) as element()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-id";>fn:id</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-id";>fn:id</a>
  :)
 declare function fn:id($arg as xs:string*, $node as node()) as element()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-idref";>fn:idref</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-idref";>fn:idref</a>
  :)
 declare function fn:idref($arg as xs:string*) as node()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-idref";>fn:idref</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-idref";>fn:idref</a>
  :)
 declare function fn:idref($arg as xs:string*, $node as node()) as node()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-in-scope-prefixes";>fn:in-scope-prefixes</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-in-scope-prefixes";>fn:in-scope-prefixes</a>
  :)
 declare function fn:in-scope-prefixes($element as element()) as xs:string* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-index-of";>fn:index-of</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-index-of";>fn:index-of</a>
  :)
 declare function fn:index-of( $seq as xs:anyAtomicType*, $search as xs:anyAtomicType) as xs:integer* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-index-of";>fn:index-of</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-index-of";>fn:index-of</a>
  :)
 declare function fn:index-of( $seq as xs:anyAtomicType*, $search as xs:anyAtomicType, $collation as xs:string) as xs:integer* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-insert-before";>fn:insert-before</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-insert-before";>fn:insert-before</a>
  :)
 declare function fn:insert-before( $target as item()*, $position as xs:integer, $inserts as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-local-name-from-QName";>fn:local-name-from-QName</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-local-name-from-QName";>fn:local-name-from-QName</a>
  :)
 declare function fn:local-name-from-QName($arg as xs:QName?) as xs:NCName? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-lower-case";>fn:lower-case</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-lower-case";>fn:lower-case</a>
  :)
 declare function fn:lower-case($arg as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-map";>fn:map</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-map";>fn:map</a>
  :)
 declare function fn:map($f as function(item()) as item()*, $seq as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-map-pairs";>fn:map-pairs</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-map-pairs";>fn:map-pairs</a>
  :)
 declare function fn:map-pairs( $f as function(item(), item()) as item()*, $seq1 as item()*, $seq2 as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-matches";>fn:matches</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-matches";>fn:matches</a>
  :)
 declare function fn:matches($input as xs:string?, $pattern as xs:string) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-matches";>fn:matches</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-matches";>fn:matches</a>
  :)
 declare function fn:matches( $input as xs:string?, $pattern as xs:string, $flags as xs:string) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-max";>fn:max</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-max";>fn:max</a>
  :)
 declare function fn:max($arg as xs:anyAtomicType*) as xs:anyAtomicType? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-max";>fn:max</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-max";>fn:max</a>
  :)
 declare function fn:max($arg as xs:anyAtomicType*, $collation as xs:string) as xs:anyAtomicType? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-min";>fn:min</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-min";>fn:min</a>
  :)
 declare function fn:min($arg as xs:anyAtomicType*) as xs:anyAtomicType? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-min";>fn:min</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-min";>fn:min</a>
  :)
 declare function fn:min($arg as xs:anyAtomicType*, $collation as xs:string) as xs:anyAtomicType? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-minutes-from-dateTime";>fn:minutes-from-dateTime</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-minutes-from-dateTime";>fn:minutes-from-dateTime</a>
  :)
 declare function fn:minutes-from-dateTime($arg as xs:dateTime?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-minutes-from-duration";>fn:minutes-from-duration</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-minutes-from-duration";>fn:minutes-from-duration</a>
  :)
 declare function fn:minutes-from-duration($arg as xs:duration?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-minutes-from-time";>fn:minutes-from-time</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-minutes-from-time";>fn:minutes-from-time</a>
  :)
 declare function fn:minutes-from-time($arg as xs:time?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-month-from-date";>fn:month-from-date</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-month-from-date";>fn:month-from-date</a>
  :)
 declare function fn:month-from-date($arg as xs:date?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-months-from-duration";>fn:months-from-duration</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-months-from-duration";>fn:months-from-duration</a>
  :)
 declare function fn:months-from-duration($arg as xs:duration?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri-for-prefix";>fn:namespace-uri-for-prefix</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri-for-prefix";>fn:namespace-uri-for-prefix</a>
  :)
 declare function fn:namespace-uri-for-prefix( $prefix as xs:string?, $element as element()) as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri-from-QName";>fn:namespace-uri-from-QName</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri-from-QName";>fn:namespace-uri-from-QName</a>
  :)
 declare function fn:namespace-uri-from-QName($arg as xs:QName?) as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-normalize-space";>fn:normalize-space</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-space";>fn:normalize-space</a>
  :)
 declare function fn:normalize-space() as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-normalize-space";>fn:normalize-space</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-space";>fn:normalize-space</a>
  :)
 declare function fn:normalize-space($arg as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-normalize-unicode";>fn:normalize-unicode</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-unicode";>fn:normalize-unicode</a>
  :)
 declare function fn:normalize-unicode($arg as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-normalize-unicode";>fn:normalize-unicode</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-normalize-unicode";>fn:normalize-unicode</a>
  :)
 declare function fn:normalize-unicode( $arg as xs:string?, $normalizationForm as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-not";>fn:not</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-not";>fn:not</a>
  :)
 declare function fn:not($arg as item()*) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-one-or-more";>fn:one-or-more</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-one-or-more";>fn:one-or-more</a>
  :)
 declare function fn:one-or-more($arg as item()*) as item()+ external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-parse-xml";>fn:parse-xml</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-parse-xml";>fn:parse-xml</a>
  :)
 declare function fn:parse-xml($arg as xs:string?) as document-node(element(*, xs:untyped)) external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-parse-xml";>fn:parse-xml</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-parse-xml";>fn:parse-xml</a>
  :)
 declare function fn:parse-xml( $arg as xs:string?, $baseURI as xs:string) as document-node(element(*, xs:untyped)) external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-prefix-from-QName";>fn:prefix-from-QName</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-prefix-from-QName";>fn:prefix-from-QName</a>
  :)
 declare function fn:prefix-from-QName($arg as xs:QName?) as xs:NCName? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-remove";>fn:remove</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-remove";>fn:remove</a>
  :)
 declare function fn:remove($target as item()*, $position as xs:integer) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-replace";>fn:replace</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-replace";>fn:replace</a>
  :)
 declare function fn:replace( $input as xs:string?, $pattern as xs:string, $replacement as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-replace";>fn:replace</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-replace";>fn:replace</a>
  :)
 declare function fn:replace( $input as xs:string?, $pattern as xs:string, $replacement as xs:string, $flags as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-resolve-QName";>fn:resolve-QName</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-resolve-QName";>fn:resolve-QName</a>
  :)
 declare function fn:resolve-QName($qname as xs:string?, $element as element()) as xs:QName? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-reverse";>fn:reverse</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-reverse";>fn:reverse</a>
  :)
 declare function fn:reverse($arg as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-round";>fn:round</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-round";>fn:round</a>
  :)
 declare function fn:round($arg as numeric?) as numeric? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-round";>fn:round</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-round";>fn:round</a>
  :)
 declare function fn:round($arg as numeric?, $precision as xs:integer) as numeric? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-round-half-to-even";>fn:round-half-to-even</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-round-half-to-even";>fn:round-half-to-even</a>
  :)
 declare function fn:round-half-to-even($arg as numeric?) as numeric? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-round-half-to-even";>fn:round-half-to-even</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-round-half-to-even";>fn:round-half-to-even</a>
  :)
 declare function fn:round-half-to-even($arg as numeric?, $precision as xs:integer) as numeric? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-seconds-from-dateTime";>fn:seconds-from-dateTime</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-seconds-from-dateTime";>fn:seconds-from-dateTime</a>
  :)
 declare function fn:seconds-from-dateTime($arg as xs:dateTime?) as xs:decimal? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-seconds-from-duration";>fn:seconds-from-duration</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-seconds-from-duration";>fn:seconds-from-duration</a>
  :)
 declare function fn:seconds-from-duration($arg as xs:duration?) as xs:decimal? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-seconds-from-time";>fn:seconds-from-time</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-seconds-from-time";>fn:seconds-from-time</a>
  :)
 declare function fn:seconds-from-time($arg as xs:time?) as xs:decimal? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-serialize";>fn:serialize</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-serialize";>fn:serialize</a>
  :)
 declare function fn:serialize($arg as item()*) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-serialize";>fn:serialize</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-serialize";>fn:serialize</a>
  :)
 declare function fn:serialize( $arg as item()*, $params as element(output:serialization-parameters)?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-starts-with";>fn:starts-with</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-starts-with";>fn:starts-with</a>
  :)
 declare function fn:starts-with($arg1 as xs:string?, $arg2 as xs:string?) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-starts-with";>fn:starts-with</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-starts-with";>fn:starts-with</a>
  :)
 declare function fn:starts-with( $arg1 as xs:string?, $arg2 as xs:string?, $collation as xs:string) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string-join";>fn:string-join</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string-join";>fn:string-join</a>
  :)
 declare function fn:string-join($arg1 as xs:string*) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string-join";>fn:string-join</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string-join";>fn:string-join</a>
  :)
 declare function fn:string-join($arg1 as xs:string*, $arg2 as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string-length";>fn:string-length</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string-length";>fn:string-length</a>
  :)
 declare function fn:string-length() as xs:integer external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string-length";>fn:string-length</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string-length";>fn:string-length</a>
  :)
 declare function fn:string-length($arg as xs:string?) as xs:integer external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string-to-codepoints";>fn:string-to-codepoints</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string-to-codepoints";>fn:string-to-codepoints</a>
  :)
 declare function fn:string-to-codepoints($arg as xs:string?) as xs:integer* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-subsequence";>fn:subsequence</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-subsequence";>fn:subsequence</a>
  :)
 declare function fn:subsequence($sourceSeq as item()*, $startingLoc as xs:double) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-subsequence";>fn:subsequence</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-subsequence";>fn:subsequence</a>
  :)
 declare function fn:subsequence( $sourceSeq as item()*, $startingLoc as xs:double, $length as xs:double) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-substring";>fn:substring</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-substring";>fn:substring</a>
  :)
 declare function fn:substring($sourceString as xs:string?, $start as xs:double) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-substring";>fn:substring</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-substring";>fn:substring</a>
  :)
 declare function fn:substring( $sourceString as xs:string?, $start as xs:double, $length as xs:double) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-substring-after";>fn:substring-after</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-substring-after";>fn:substring-after</a>
  :)
 declare function fn:substring-after($arg1 as xs:string?, $arg2 as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-substring-after";>fn:substring-after</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-substring-after";>fn:substring-after</a>
  :)
 declare function fn:substring-after( $arg1 as xs:string?, $arg2 as xs:string?, $collation as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-substring-before";>fn:substring-before</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-substring-before";>fn:substring-before</a>
  :)
 declare function fn:substring-before($arg1 as xs:string?, $arg2 as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-substring-before";>fn:substring-before</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-substring-before";>fn:substring-before</a>
  :)
 declare function fn:substring-before( $arg1 as xs:string?, $arg2 as xs:string?, $collation as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-sum";>fn:sum</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-sum";>fn:sum</a>
  :)
 declare function fn:sum($arg as xs:anyAtomicType*) as xs:anyAtomicType external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-sum";>fn:sum</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-sum";>fn:sum</a>
  :)
 declare function fn:sum( $arg as xs:anyAtomicType*, $zero as xs:anyAtomicType?) as xs:anyAtomicType? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-tail";>fn:tail</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-tail";>fn:tail</a>
  :)
 declare function fn:tail($arg as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-timezone-from-date";>fn:timezone-from-date</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-timezone-from-date";>fn:timezone-from-date</a>
  :)
 declare function fn:timezone-from-date($arg as xs:date?) as xs:dayTimeDuration? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-timezone-from-dateTime";>fn:timezone-from-dateTime</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-timezone-from-dateTime";>fn:timezone-from-dateTime</a>
  :)
 declare function fn:timezone-from-dateTime($arg as xs:dateTime?) as xs:dayTimeDuration? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-timezone-from-time";>fn:timezone-from-time</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-timezone-from-time";>fn:timezone-from-time</a>
  :)
 declare function fn:timezone-from-time($arg as xs:time?) as xs:dayTimeDuration? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-tokenize";>fn:tokenize</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-tokenize";>fn:tokenize</a>
  :)
 declare function fn:tokenize($input as xs:string?, $pattern as xs:string) as xs:string* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-tokenize";>fn:tokenize</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-tokenize";>fn:tokenize</a>
  :)
 declare function fn:tokenize( $input as xs:string?, $pattern as xs:string, $flags as xs:string) as xs:string* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-trace";>fn:trace</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-trace";>fn:trace</a>
  :)
 declare function fn:trace($value as item()*, $label as xs:string) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-translate";>fn:translate</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-translate";>fn:translate</a>
  :)
 declare function fn:translate( $arg as xs:string?, $mapString as xs:string, $transString as xs:string) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-true";>fn:true</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-true";>fn:true</a>
  :)
 declare function fn:true() as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-unordered";>fn:unordered</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unordered";>fn:unordered</a>
  :)
 declare function fn:unordered($sourceSeq as item()*) as item()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text";>fn:unparsed-text</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text";>fn:unparsed-text</a>
  :)
 declare function fn:unparsed-text($href as xs:string?) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text";>fn:unparsed-text</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text";>fn:unparsed-text</a>
  :)
 declare function fn:unparsed-text($href as xs:string?, $encoding as xs:string) as xs:string? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-available";>fn:unparsed-text-available</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available";>fn:unparsed-text-available</a>
  :)
 declare function fn:unparsed-text-available($href as xs:string?) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-available";>fn:unparsed-text-available</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available";>fn:unparsed-text-available</a>
  :)
 declare function fn:unparsed-text-available( $href as xs:string?, $encoding as xs:string) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
  :)
 declare function fn:unparsed-text-lines($href as xs:string?) as xs:string* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines";>fn:unparsed-text-lines</a>
  :)
 declare function fn:unparsed-text-lines( $href as xs:string?, $encoding as xs:string) as xs:string* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-upper-case";>fn:upper-case</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-upper-case";>fn:upper-case</a>
  :)
 declare function fn:upper-case($arg as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-uri-collection";>fn:uri-collection</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection";>fn:uri-collection</a>
  :)
 declare function fn:uri-collection() as xs:anyURI* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-uri-collection";>fn:uri-collection</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-uri-collection";>fn:uri-collection</a>
  :)
 declare function fn:uri-collection($arg as xs:string?) as xs:anyURI* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-year-from-date";>fn:year-from-date</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-year-from-date";>fn:year-from-date</a>
  :)
 declare function fn:year-from-date($arg as xs:date?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-years-from-duration";>fn:years-from-duration</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-years-from-duration";>fn:years-from-duration</a>
  :)
 declare function fn:years-from-duration($arg as xs:duration?) as xs:integer? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-zero-or-one";>fn:zero-or-one</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-zero-or-one";>fn:zero-or-one</a>
  :)
 declare function fn:zero-or-one($arg as item()*) as item()? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-codepoints-to-string";>fn:codepoints-to-string</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-codepoints-to-string";>fn:codepoints-to-string</a>
  :)
 declare function fn:codepoints-to-string($arg as xs:integer*) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string-to-codepoints";>fn:string-to-codepoints</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string-to-codepoints";>fn:string-to-codepoints</a>
  :)
 declare function fn:string-to-codepoints($arg as xs:string?) as xs:integer* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-base-uri";>fn:base-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-base-uri";>fn:base-uri</a>
  :)
 declare function fn:base-uri() as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-base-uri";>fn:base-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-base-uri";>fn:base-uri</a>
  :)
 declare function fn:base-uri($arg as node()?) as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-current-date";>fn:current-date</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-current-date";>fn:current-date</a>
  :)
 declare function fn:current-date() as xs:date external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-current-dateTime";>fn:current-dateTime</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-current-dateTime";>fn:current-dateTime</a>
  :)
 declare function fn:current-dateTime() as xs:dateTimeStamp external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-current-time";>fn:current-time</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-current-time";>fn:current-time</a>
  :)
 declare function fn:current-time() as xs:time external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-data";>fn:data</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-data";>fn:data</a>
  :)
 declare function fn:data() as xs:anyAtomicType* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-data";>fn:data</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-data";>fn:data</a>
  :)
 declare function fn:data($arg as item()*) as xs:anyAtomicType* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-default-collation";>fn:default-collation</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-default-collation";>fn:default-collation</a>
  :)
 declare function fn:default-collation() as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-document-uri";>fn:document-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-document-uri";>fn:document-uri</a>
  :)
 declare function fn:document-uri() as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-document-uri";>fn:document-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-document-uri";>fn:document-uri</a>
  :)
 declare function fn:document-uri($arg as node()?) as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-encode-for-uri";>fn:encode-for-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-encode-for-uri";>fn:encode-for-uri</a>
  :)
 declare function fn:encode-for-uri($uri-part as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-escape-html-uri";>fn:escape-html-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-escape-html-uri";>fn:escape-html-uri</a>
  :)
 declare function fn:escape-html-uri($uri as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-has-children";>fn:has-children</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-has-children";>fn:has-children</a>
  :)
 declare function fn:has-children($node as node()?) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-implicit-timezone";>fn:implicit-timezone</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-implicit-timezone";>fn:implicit-timezone</a>
  :)
 declare function fn:implicit-timezone() as xs:dayTimeDuration external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-innermost";>fn:innermost</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-innermost";>fn:innermost</a>
  :)
 declare function fn:innermost($nodes as node()*) as node()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-iri-to-uri";>fn:iri-to-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-iri-to-uri";>fn:iri-to-uri</a>
  :)
 declare function fn:iri-to-uri($iri as xs:string?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-lang";>fn:lang</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-lang";>fn:lang</a>
  :)
 declare function fn:lang($testlang as xs:string?) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-lang";>fn:lang</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-lang";>fn:lang</a>
  :)
 declare function fn:lang($testlang as xs:string?, $node as node()) as xs:boolean external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-last";>fn:last</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-last";>fn:last</a>
  :)
 declare function fn:last() as xs:integer external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-local-name";>fn:local-name</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-local-name";>fn:local-name</a>
  :)
 declare function fn:local-name() as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-local-name";>fn:local-name</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-local-name";>fn:local-name</a>
  :)
 declare function fn:local-name($arg as node()?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-name";>fn:name</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-name";>fn:name</a>
  :)
 declare function fn:name() as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-name";>fn:name</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-name";>fn:name</a>
  :)
 declare function fn:name($arg as node()?) as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri";>fn:namespace-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri";>fn:namespace-uri</a>
  :)
 declare function fn:namespace-uri() as xs:anyURI external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-namespace-uri";>fn:namespace-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-namespace-uri";>fn:namespace-uri</a>
  :)
 declare function fn:namespace-uri($arg as node()?) as xs:anyURI external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-nilled";>fn:nilled</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-nilled";>fn:nilled</a>
  :)
 declare function fn:nilled($arg as node()?) as xs:boolean? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-node-name";>fn:node-name</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-node-name";>fn:node-name</a>
  :)
 declare function fn:node-name() as xs:QName? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-node-name";>fn:node-name</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-node-name";>fn:node-name</a>
  :)
 declare function fn:node-name($arg as node()?) as xs:QName? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-number";>fn:number</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-number";>fn:number</a>
  :)
 declare function fn:number() as xs:double external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-number";>fn:number</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-number";>fn:number</a>
  :)
 declare function fn:number($arg as xs:anyAtomicType?) as xs:double external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-outermost";>fn:outermost</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-outermost";>fn:outermost</a>
  :)
 declare function fn:outermost($nodes as node()*) as node()* external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-position";>fn:position</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-position";>fn:position</a>
  :)
 declare function fn:position() as xs:integer external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-resolve-uri";>fn:resolve-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-resolve-uri";>fn:resolve-uri</a>
  :)
 declare function fn:resolve-uri($relative as xs:string?) as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-resolve-uri";>fn:resolve-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-resolve-uri";>fn:resolve-uri</a>
  :)
 declare function fn:resolve-uri($relative as xs:string?, $base as xs:string) as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-root";>fn:root</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-root";>fn:root</a>
  :)
 declare function fn:root() as node() external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-root";>fn:root</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-root";>fn:root</a>
  :)
 declare function fn:root($arg as node()?) as node()? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-static-base-uri";>fn:static-base-uri</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-static-base-uri";>fn:static-base-uri</a>
  :)
 declare function fn:static-base-uri() as xs:anyURI? external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string";>fn:string</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string";>fn:string</a>
  :)
 declare function fn:string() as xs:string external;
 
 (:~
- : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions/#func-string";>fn:string</a>
+ : @see for semantics please check <a href="http://www.w3.org/TR/xpath-functions-30/#func-string";>fn:string</a>
  :)
 declare function fn:string($arg as item()?) as xs:string external;
\ No newline at end of file


Follow ups