3278 lines
		
	
	
		
			191 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			3278 lines
		
	
	
		
			191 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| 
 | |
| <head>
 | |
|     <!-- <link rel="stylesheet" href="../common.css"> -->
 | |
|     <!-- <link rel="stylesheet" href="styles.css"> -->
 | |
|     <script src="../assets/scripts/tools/jquery-3.6.0.slim.min.js"></script>
 | |
|     <link rel="stylesheet" href="../assets/css/tools/r11form.css">
 | |
|     <script src="../assets/scripts/tools/scripts.js"></script>
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|     <meta charset="utf-8" />
 | |
| </head>
 | |
| 
 | |
| <body onload="init();">
 | |
| 
 | |
|     <div class="container">
 | |
|         <div id="tool" class="tool rwd-expandable">
 | |
|             <div class="tool-context">
 | |
|                 <div class="headline">
 | |
|                     <h1>Online XPath tester <span class="versionInfo"><span class="version-span">v0.4</span></span></h1>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="display-space-between">
 | |
|                     <div style="text-align: center;">
 | |
|                         <label for="processors">Select XPath processor:</label>
 | |
|                         <select name="processors" id="processors">
 | |
|                             <option value="saxon">Saxon</option>
 | |
|                             <option value="xalan">Xalan</option>
 | |
|                             <option value="libxml">libXML</option>
 | |
|                         </select>
 | |
|                         <label for="versions">XPath version:</label>
 | |
|                         <select name="versions" id="versions">
 | |
|                             <option class="hideable libxml xalan"value="1.0">1.0</option>
 | |
|                             <option class="hideable saxon" value="2.0">2.0</option>
 | |
|                             <option class="hideable saxon" value="3.0">3.0</option>
 | |
|                             <option class="hideable saxon" value="3.1">3.1</option>
 | |
|                         </select>
 | |
|                     </div>
 | |
|                     <div>
 | |
|                         <button class="action-button active" id="clearXMLButton" style="padding: 3px 10px;"
 | |
|                             onclick="clearDataField()">Clear</button>
 | |
|                         <button class="action-button active" id="prettyXMLButton" style="padding: 3px 10px;"
 | |
|                             onclick="performFormatRequest('prettifypost', true, 'xmlArea', 'xmlArea')">Format XML</button>
 | |
|                         <button class="action-button active" id="defaultXMLButton" style="padding: 3px 10px;"
 | |
|                             onclick="fillDefaultXML(this)">Insert default XML</button>
 | |
|                     </div>
 | |
|                 </div>
 | |
|                 <!-- <br><br> -->
 | |
|                 <label for="xmlArea"><b>Insert your XML:</b></label>
 | |
|                 <textarea id="xmlArea" name="xmlArea" rows="15"
 | |
|                     class="textarea-300 bordered-field vertically-resizeable max-width"
 | |
|                     onblur="setDefaultContent(this, 'Insert XML here');"
 | |
|                     onfocus="clearDefaultContent(this, 'Insert XML here');"></textarea>
 | |
|                 <br><br>
 | |
|                 <label for="transformArea"><b>Insert your XPath:</b></label>
 | |
|                 <textarea id="transformArea" name="transformArea"
 | |
|                     class="bordered-field vertically-resizeable max-width" rows="4"
 | |
|                     onblur="setDefaultContent(this, 'Insert XPath expression here');"
 | |
|                     onfocus="clearDefaultContent(this,  'Insert XPath expression here');"></textarea>
 | |
|                 <br>
 | |
|                 <button id="requestButton" class="max-width block-label action-button active"
 | |
|                     onclick="performRequest('xpathpost', false, true)">Execute XPath
 | |
|                     expression</button>
 | |
|                 <br><br>
 | |
|                 <label for="resultArea"><b>Transform result:<span id="procinfo"></span></b></label>
 | |
|                 <textarea disabled id="resultArea" name="resultArea"
 | |
|                     class="textarea-300 bordered-field vertically-resizeable max-width" style="margin-bottom: 50px;" rows="10" cols="100"></textarea>
 | |
| 
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="tooltip tooltip-window rwd-hideable">
 | |
|             <h2>What is XPath?</h2>
 | |
|             <p>XPath is a query language used for selecting nodes from XML and processing them.<br>
 | |
|                 It may perform operations on strings, numbers and boolean values.<br></p>
 | |
| 
 | |
|             <span id="collapsible-lists">
 | |
|                 <div class="collapsible">
 | |
|                     <span>
 | |
|                         <button class="section-button collapseTrigger" style="border: none">XPath 1.0 vs 2.0 vs 3.0 vs
 | |
|                             3.1</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
|                         <p><b>XPath 2.0 introduced many new features XQuery-cośtam:</b><br>
 | |
|                             - Added support for all XML simple types<br>
 | |
|                             - Many new functions (tripled instruction count)<br>
 | |
|                             - All expressions evaluate to sequence<br>
 | |
|                             - Introduces conditional expressions and for-loops<br>
 | |
|                         </p>
 | |
|                         <p><b>XPath 3.0</b><br>
 | |
|                             - Dynamic function calls (function may be called without being referenced by name (find
 | |
|                             function in collection and call)<br>
 | |
|                             - Inline functions<br>
 | |
|                             - Namespace literals - Namespace may be embedded into function name<br>
 | |
|                             - Support for union types - collections containing elements of different types<br>
 | |
|                             - Mapping operator - '!' performs evaluation for each element in sequence and
 | |
|                             concatenates results<br>
 | |
|                             - Introduced maps <br>
 | |
|                         </p>
 | |
|                         <p><b>XPath 3.1</b><br>
 | |
|                             - New operator for function chaining '=>' <br>
 | |
|                             - Introduced maps that store data in pair 'key:value' - 'map{ key : value, key : value
 | |
|                             }'<br>
 | |
|                             - Introduced arrays - they differ from sequences in that they can be nested 'array{1, 5, 7,
 | |
|                             (10 to 20)}'<br>
 | |
| 
 | |
|                         </p>
 | |
|                     </div>
 | |
|                 </div>
 | |
| 
 | |
|                 <h2><span id="tooltipFunctionInfo">XPath 1.0 & 2.0 functions</span></h2>
 | |
| 
 | |
| 
 | |
|                 <!-- Cut here -->
 | |
| 
 | |
| 
 | |
|                 <div class="collapsible">
 | |
|                     <span>
 | |
|                         <button class="section-button collapseTrigger" style="border: none">Node-Set</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:last()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the position of the last node in the context list <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:position()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the position of the current context node <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:count(node-set)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the number of nodes in the node-set <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>node-set</td>
 | |
|                                         <td>Node-set to count nodes in</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>count(//b:book)</td>
 | |
|                                         <td>5</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>count(//person[@id>5])</td>
 | |
|                                         <td>17</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:id(object)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the element specified by it's unique id, requires DTD <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:local-name(node-set)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the local-name for the first node in the node-set <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>node-set</td>
 | |
|                                         <td>Extract first node and return its local name</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>local-name(//b:books)</td>
 | |
|                                         <td>b:book</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>local-name(//b:book)</td>
 | |
|                                         <td>b:title</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:local-name()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the local-name for the context node <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:namespace-uri(node-set)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the namespace-uri for the first node in the node-set <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>node-set</td>
 | |
|                                         <td>Extract first node and return the namespace URI</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>namespace-uri(//b:book)</td>
 | |
|                                         <td>http://www.book.com</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:namespace-uri()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the namespace-uri for the context node <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:name(node-set)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the name for the first node in the node-set <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>node-set</td>
 | |
|                                         <td>Extract first node and return QName</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>name(//b:books/*)</td>
 | |
|                                         <td>b:book</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>name(//b:book/*)</td>
 | |
|                                         <td>b:title</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:name()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the name for the context node <br>
 | |
|                                 <b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>current context node</td>
 | |
|                                         <td>Extract first node and return QName</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions" class="hyperlink" target="_blank">Node-Set-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                     </div>
 | |
|                 </div>
 | |
|                 <div class="collapsible">
 | |
|                     <span>
 | |
|                         <button class="section-button collapseTrigger" style="border: none">String</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:string(object)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the string representation of the object argument <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>The object to convert to a string</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string((1<0))< /td>
 | |
|                                         <td>false</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string(.11)</td>
 | |
|                                         <td>0.11</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:string()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns a string value representation of the context node <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:concat(string, string, string*)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the concatenation of its arguments <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be merged</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be merged</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string*</td>
 | |
|                                         <td>any number of strings</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>concat("aa","bb")</td>
 | |
|                                         <td>aabb</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>concat("aa", 123)</td>
 | |
|                                         <td>aa123</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:starts-with(string, string)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns true if the first string starts with the second string <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be searched</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be found</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>starts-with("aabb", "aa")</td>
 | |
|                                         <td>true</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>starts-with("aabb", "cc")</td>
 | |
|                                         <td>false</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:contains(string, string)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns true if the first string contains the second string <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be searched</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be found</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>contains("abc", "c")</td>
 | |
|                                         <td>true</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>contains("abc", "1")</td>
 | |
|                                         <td>false</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:substring-before(string, string)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the substring found before the first occurrence of the second argument <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be searched</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be used to split</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>substring-before("aabbcc","bb")</td>
 | |
|                                         <td>aa</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>substring-before("aabbcc","c")</td>
 | |
|                                         <td>aabb</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:substring-after(string, string)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the substring found after the first occurrence of the second argument <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be searched</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be used to split</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>substring-after("aabbcc","bb")</td>
 | |
|                                         <td>cc</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>substring-after("aabbcc","a")</td>
 | |
|                                         <td>abbcc</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:substring(string, number, number)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the substring starting at second argument with lenght of third argument <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be cut</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>integer</td>
 | |
|                                         <td>Starting position</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>integer</td>
 | |
|                                         <td>Length of the substring</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>substring("aabbcc", 1, 2)</td>
 | |
|                                         <td>aa</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:substring(string, number)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the substring of the first argument from the position specified by the second
 | |
|                                 argument <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be cut</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>integer</td>
 | |
|                                         <td>Starting position</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>substring("aabbcc", 3)</td>
 | |
|                                         <td>bbcc</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:string-length(string)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the length of the string specified by the argument <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String of which length should be returned</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string-length("aabbcc")</td>
 | |
|                                         <td>6</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string-length("aa bb cc")</td>
 | |
|                                         <td>8</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:string-length()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns the length of the string specified by the context node <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:normalize-space(string)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns a white-space normalized string <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be normalized</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>normalize-space("aa bb cc")</td>
 | |
|                                         <td>aa bb cc</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>normalize-space("aa bb cc")</td>
 | |
|                                         <td>aa bb cc</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:normalize-space()</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Returns a white-space normalized string specified by the context-node <br>
 | |
|                                 <br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
| 
 | |
|                         [1.0] <a href="#" onClick="return false;"
 | |
|                             class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:translate(string, string, string)</code></a>
 | |
|                         <div class="content">
 | |
|                             <div class="section">
 | |
|                                 Replaces characters specified by the second argument using those from the third argument
 | |
|                                 <br>
 | |
|                                 <b>Arguments and return type:</b>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Type</th>
 | |
|                                         <th>Description</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>String to be edited</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>sequence of characters to be replaced</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>string</td>
 | |
|                                         <td>sequence of character to be used in replacement</td>
 | |
|                                     </tr>
 | |
|                                 </table><b>Examples: </b><br>
 | |
|                                 <table class="table-doc">
 | |
|                                     <tr>
 | |
|                                         <th>Expression</th>
 | |
|                                         <th>Result</th>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>translate("aabbcc", "ab","xz")</td>
 | |
|                                         <td>xxzzcc</td>
 | |
|                                     </tr>
 | |
|                                     <tr>
 | |
|                                         <td>translate("Test sequence", "e","z")</td>
 | |
|                                         <td>Tzst szquzncz</td>
 | |
|                                     </tr>
 | |
|                                 </table><br>
 | |
|                                 <code>W3C Documentation reference: <a href="https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions" class="hyperlink" target="_blank">String-Functions</code></a>
 | |
|                             </div>
 | |
|                         </div>
 | |
| 
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:string-join((string,string,...),sep)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a string created by concatenating the string arguments and using the sep
 | |
|                                     argument as the separator <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string*</td>
 | |
|                                             <td>string sequence to be joined</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>separator to be used</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string-join(('fox', 'jumps', 'over', 'dog'), ' ')</td>
 | |
|                                             <td>' fox jumps over dog '</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string-join(('fox', 'jumps', 'over', 'dog'))</td>
 | |
|                                             <td>'joxjumpsoverdog'</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-string-join" class="hyperlink" target="_blank">#func-string-join</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:string-to-codepoints(string)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns sequence of unicode codepoint representing the provided string <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>string to be coverted to list of unicode values</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string-to-codepoints("test")</td>
 | |
|                                             <td>(116, 101, 115, 116)</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-31/#func-string-to-codepoints" class="hyperlink" target="_blank">#func-string-to-codepoints</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:compare(comp1,comp2)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns -1 if comp1 is less than comp2, 0 if comp1 is equal to comp2, or 1 if comp1
 | |
|                                     is greater than comp2 (according to the rules of the collation that is used) <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>first parameter to be compared</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>second parameter to be compared</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>compare('abc', 'abc')</td>
 | |
|                                             <td>0</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>compare('abc', 'abd')</td>
 | |
|                                             <td>-1</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>compare('abc1', 'abd')</td>
 | |
|                                             <td>-1</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>compare("abc1","abc")</td>
 | |
|                                             <td>1</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-compare" class="hyperlink" target="_blank">#func-compare</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:compare(comp1,comp2,collation)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns -1 if comp1 is less than comp2, 0 if comp1 is equal to comp2, or 1 if comp1
 | |
|                                     is greater than comp2 (according to the rules of the collation that is used) <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>first parameter to be compared</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>second parameter to be compared</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>collation to be used in comparison(letter weight may differ between
 | |
|                                                 languages)</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>compare('ghi', 'ghi')</td>
 | |
|                                             <td>0</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-compare" class="hyperlink" target="_blank">#func-compare</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:codepoints-to-string((int,int,...))</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Creates a string from a sequence of the Unicode Standard code points <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>int*</td>
 | |
|                                             <td>int sequence to be converted to string</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>codepoints-to-string((116, 101, 115, 116))</td>
 | |
|                                             <td>'test'</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-codepoints-to-string" class="hyperlink" target="_blank">#func-codepoints-to-string</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:codepoint-equal(comp1,comp2)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns true if the value of comp1 is equal to the value of comp2, according to the
 | |
|                                     Unicode code point collation
 | |
|                                     (http://www.w3.org/2005/02/xpath-functions/collation/codepoint), otherwise it
 | |
|                                     returns false <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>int</td>
 | |
|                                             <td>unicode codepoint</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>int</td>
 | |
|                                             <td>unicode codepoint</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>codepoint-equal(111, 111)</td>
 | |
|                                             <td>true</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>codepoint-equal(111, 112)</td>
 | |
|                                             <td>false</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>codepoint-equal("111F", "111F")</td>
 | |
|                                             <td>true</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-codepoint-equal" class="hyperlink" target="_blank">#func-codepoint-equal</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:normalize-unicode()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-normalize-unicode" class="hyperlink" target="_blank">#func-normalize-unicode</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:upper-case(string)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Converts the string argument to upper-case <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>string to be converted to upper case</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>upper-case('aabbCC')</td>
 | |
|                                             <td>'AABBCC'</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-upper-case" class="hyperlink" target="_blank">#func-upper-case</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:lower-case(string)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Converts the string argument to lower-case <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>string to be converted to upper case</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>lower-case('aabbCC')</td>
 | |
|                                             <td>'aabbcc'</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-lower-case" class="hyperlink" target="_blank">#func-lower-case</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:escape-uri(stringURI,esc-res)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     https://www.w3.org/TR/xpath-functions/#func-escape-uri <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-escape-uri" class="hyperlink" target="_blank">#func-escape-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:tokenize(string,pattern)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     https://www.w3.org/TR/xpath-functions/#func-tokenize <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>string to be tokenized</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>string to be used to split the first argument</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>tokenize("fox jumps over dog", "s+")</td>
 | |
|                                             <td>("fox", "jumps", "over", "dog")</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-tokenize" class="hyperlink" target="_blank">#func-tokenize</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:matches(string,pattern)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns true if the string argument matches the pattern, otherwise, it returns false
 | |
|                                     <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>string to search in</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>string</td>
 | |
|                                             <td>pattern to be found</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>matches("Xpath", "pat")</td>
 | |
|                                             <td>true</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>matches("Xpath", "abc")</td>
 | |
|                                             <td>false</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-matches" class="hyperlink" target="_blank">#func-matches</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:replace(string,pattern,replace)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a string that is created by replacing the given pattern with the replace
 | |
|                                     argument <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-replace" class="hyperlink" target="_blank">#func-replace</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:ends-with(string1,string2)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns true if string1 ends with string2, otherwise it returns false <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-ends-with" class="hyperlink" target="_blank">#func-ends-with</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
| 
 | |
|                     </div>
 | |
|                 </div>
 | |
|                 <div class="collapsible">
 | |
|                     <span name="collapse20">
 | |
|                         <button class="section-button collapseTrigger" style="border: none">Collections</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:avg((arg,arg,...))</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the average of the argument values <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence*</td>
 | |
|                                             <td>returns average value of provided elements</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>avg((1,2,3))</td>
 | |
|                                             <td>2</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-avg" class="hyperlink" target="_blank">#func-avg</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:exactly-one(item,item,...)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the argument if it contains exactly one item, otherwise it raises an error
 | |
|                                     <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence</td>
 | |
|                                             <td>sequence to check</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>exactly-one((1))</td>
 | |
|                                             <td>1</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>exactly-one((1,1))</td>
 | |
|                                             <td>fn:exactly-one called with a sequence containing zero or more than one
 | |
|                                                 item.</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-exactly-one" class="hyperlink" target="_blank">#func-exactly-one</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:zero-or-one(item,item,...)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the argument if it contains zero or one items, otherwise it raises an error
 | |
|                                     <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-zero-or-one" class="hyperlink" target="_blank">#func-zero-or-one</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:index-of((item,item,...),searchitem)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the positions within the sequence of items that are equal to the searchitem
 | |
|                                     argument <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-index-of" class="hyperlink" target="_blank">#func-index-of</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:reverse((item,item,...))</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the reversed order of the items specified <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence*</td>
 | |
|                                             <td>sequence of elements to have its order reversed</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>reverse(("ab", "cd", "ef"))</td>
 | |
|                                             <td>("ef", "cd", "ab")</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>reverse(("ab"))</td>
 | |
|                                             <td>("ab")</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-reverse" class="hyperlink" target="_blank">#func-reverse</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:one-or-more(item,item,...)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the argument if it contains one or more items, otherwise it raises an error
 | |
|                                     <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence</td>
 | |
|                                             <td>sequence to check</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>one-or-more((1, 2, 3))</td>
 | |
|                                             <td>1 2 3</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>one-or-more()</td>
 | |
|                                             <td>An empty sequence is not allowed as the first argument of
 | |
|                                                 fn:one-or-more()</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-one-or-more" class="hyperlink" target="_blank">#func-one-or-more</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:distinct-values((item,item,...),collation)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns only distinct (different) values <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence</td>
 | |
|                                             <td>sequence to extract distinct values from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>distinct-values((1, 2, 3, 1, 2))</td>
 | |
|                                             <td>(1, 2, 3)</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-distinct-values" class="hyperlink" target="_blank">#func-distinct-values</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:exists(item,item,...)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns true if the value of the arguments IS NOT an empty sequence, otherwise it
 | |
|                                     returns false <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-exists" class="hyperlink" target="_blank">#func-exists</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:subsequence((item,item,...),start,len)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a sequence of items from the position specified by the start argument and
 | |
|                                     continuing for the number of items specified by the len argument. The first item is
 | |
|                                     located at position 1 <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-subsequence" class="hyperlink" target="_blank">#func-subsequence</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:empty(item,item,...)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns true if the value of the arguments IS an empty sequence, otherwise it
 | |
|                                     returns false <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-empty" class="hyperlink" target="_blank">#func-empty</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:insert-before((item,item,...),pos,inserts)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a new sequence constructed from the value of the item arguments <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-insert-before" class="hyperlink" target="_blank">#func-insert-before</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:remove((item,item,...),position)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a new sequence constructed from the value of the item arguments <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence*</td>
 | |
|                                             <td>sequence to be modified</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>integer</td>
 | |
|                                             <td>position to insert element from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>remove(("a","b","c"), 1)</td>
 | |
|                                             <td>b c</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>remove(("a","b","c"), 0)</td>
 | |
|                                             <td>a b c</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-remove" class="hyperlink" target="_blank">#func-remove</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:unordered((item,item,...))</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the items in an implementation dependent order <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-unordered" class="hyperlink" target="_blank">#func-unordered</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:data(item.item,...)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Takes a sequence of items and returns a sequence of atomic values <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence*</td>
 | |
|                                             <td>sequence to be split to atomic values</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>data((1,2,23, "test"))</td>
 | |
|                                             <td>1 2 23 test</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-data" class="hyperlink" target="_blank">#func-data</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:collection()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-collection" class="hyperlink" target="_blank">#func-collection</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:collection(string)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-collection" class="hyperlink" target="_blank">#func-collection</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:min((arg,arg,...))</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the argument that is less than the others <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence*</td>
 | |
|                                             <td>sequence to select minimum from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>min((1,2,3))</td>
 | |
|                                             <td>1</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>min(('a', 'k'))</td>
 | |
|                                             <td>'a'</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-min" class="hyperlink" target="_blank">#func-min</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:max((arg,arg,...))</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the argument that is greater than the others <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>sequence*</td>
 | |
|                                             <td>sequence to select maximum from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>max((1,2,3))</td>
 | |
|                                             <td>3</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>max(('a', 'k'))</td>
 | |
|                                             <td>'k'</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-max" class="hyperlink" target="_blank">#func-max</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:deep-equal(param1,param2,collation)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns true if param1 and param2 are deep-equal to each other, otherwise it returns
 | |
|                                     false <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-deep-equal" class="hyperlink" target="_blank">#func-deep-equal</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
| 
 | |
|                     </div>
 | |
|                 </div>
 | |
|                 <div class="collapsible">
 | |
|                     <span name="collapse20">
 | |
|                         <button class="section-button collapseTrigger" style="border: none">Date / Time</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:adjust-date-to-timezone(date,timezone)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     If the timezone argument is empty, it returns a date without a timezone. Otherwise,
 | |
|                                     it returns a date with a timezone <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>date</td>
 | |
|                                             <td>date to be adjusted</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>timezone</td>
 | |
|                                             <td>timezone to be imposed into date</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>adjust-date-to-timezone(xs:date('2011-11-15'),
 | |
|                                                 xs:dayTimeDuration("PT10H"))</td>
 | |
|                                             <td>2011-11-15+10:00</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-adjust-date-to-timezone" class="hyperlink" target="_blank">#func-adjust-date-to-timezone</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:adjust-time-to-timezone(time,timezone)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     If the timezone argument is empty, it returns a time without a timezone. Otherwise,
 | |
|                                     it returns a time with a timezone <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-adjust-time-to-timezone" class="hyperlink" target="_blank">#func-adjust-time-to-timezone</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:implicit-timezone()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the value of the implicit timezone <br>
 | |
|                                     <b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>implicit-timezone()</td>
 | |
|                                             <td>PT1H</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-implicit-timezone" class="hyperlink" target="_blank">#func-implicit-timezone</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:dateTime(date,time)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Converts the arguments to a date and a time <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>date</td>
 | |
|                                             <td>date to be merged into dateTime</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>time</td>
 | |
|                                             <td>time to be merged into dateTime</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>dateTime(xs:date("2011-11-15"), xs:time("10:22:00"))</td>
 | |
|                                             <td>2011-11-15T10:22:00</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-dateTime" class="hyperlink" target="_blank">#func-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:current-time()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the current time (with timezone) <br>
 | |
|                                     <b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>current-time()</td>
 | |
|                                             <td>11:48:04.393361+01:00</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-current-time" class="hyperlink" target="_blank">#func-current-time</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:timezone-from-time(time)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the time zone component of the argument if any <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>time</td>
 | |
|                                             <td>time to extract timezone infromation from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>timezone-from-time(xs:time("10:22:00+10:00"))</td>
 | |
|                                             <td>PT10H</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-timezone-from-time" class="hyperlink" target="_blank">#func-timezone-from-time</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:hours-from-time(time)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the hours component in the localized value of the
 | |
|                                     argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>time</td>
 | |
|                                             <td>time to extact hours component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>hours-from-time(xs:time("10:22:00"))</td>
 | |
|                                             <td>10</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-hours-from-time" class="hyperlink" target="_blank">#func-hours-from-time</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:minutes-from-time(time)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the minutes component in the localized value of
 | |
|                                     the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>time</td>
 | |
|                                             <td>time to extract minutes component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>minutes-from-time(xs:time("10:22:00"))</td>
 | |
|                                             <td>22</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-minutes-from-time" class="hyperlink" target="_blank">#func-minutes-from-time</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:seconds-from-time(time)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the seconds component in the localized value of
 | |
|                                     the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>time</td>
 | |
|                                             <td>Time to convert to seconds</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>seconds-from-time(xs:time("10:22:00"))</td>
 | |
|                                             <td>0</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-seconds-from-time" class="hyperlink" target="_blank">#func-seconds-from-time</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:years-from-duration(datetimedur)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the years component in the canonical lexical
 | |
|                                     representation of the value of the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetimedur</td>
 | |
|                                             <td>datetimedur to extract years component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>years-from-duration(xs:duration("P5Y2DT10H59M"))</td>
 | |
|                                             <td>5</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-years-from-duration" class="hyperlink" target="_blank">#func-years-from-duration</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:months-from-duration(datetimedur)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the months component in the canonical lexical
 | |
|                                     representation of the value of the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetimedur</td>
 | |
|                                             <td>datetimedur to extract months component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>months-from-duration(xs:duration("P5Y10M2DT10H59M"))</td>
 | |
|                                             <td>10</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-years-from-duration" class="hyperlink" target="_blank">#func-years-from-duration</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:days-from-duration(datetimedur)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the days component in the canonical lexical
 | |
|                                     representation of the value of the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetimedur</td>
 | |
|                                             <td>datetimedur to extract days component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>days-from-duration(xs:duration("P5Y2DT10H59M"))</td>
 | |
|                                             <td>2</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-days-from-duration" class="hyperlink" target="_blank">#func-days-from-duration</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:hours-from-duration(datetimedur)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the hours component in the canonical lexical
 | |
|                                     representation of the value of the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetimedur</td>
 | |
|                                             <td>datetimedur to extract hours component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>hours-from-duration(xs:duration("P5Y2DT10H59M"))</td>
 | |
|                                             <td>10</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-hours-from-duration" class="hyperlink" target="_blank">#func-hours-from-duration</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:minutes-from-duration(datetimedur)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the minutes component in the canonical lexical
 | |
|                                     representation of the value of the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetimedur</td>
 | |
|                                             <td>datetimedur to extract minute component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>years-from-duration(xs:duration("P5Y2DT10H59M"))</td>
 | |
|                                             <td>59</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-minutes-from-duration" class="hyperlink" target="_blank">#func-minutes-from-duration</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:seconds-from-duration(datetimedur)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a decimal that represents the seconds component in the canonical lexical
 | |
|                                     representation of the value of the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetimedur</td>
 | |
|                                             <td>datetimedur to extract seconds component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>days-from-duration(xs:duration("P5Y2DT10H59M40S"))</td>
 | |
|                                             <td>40</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-seconds-from-duration" class="hyperlink" target="_blank">#func-seconds-from-duration</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:current-date()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the current date (with timezone) <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-current-date" class="hyperlink" target="_blank">#func-current-date</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:timezone-from-date(date)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the time zone component of the argument if any <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>date</td>
 | |
|                                             <td>date to extract timezone information from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>timezone-from-date(xs:date("2011-11-15+11:00"))</td>
 | |
|                                             <td>PT1H</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>timezone-from-date(xs:date("2011-11-15+11:00"))</td>
 | |
|                                             <td>PT11H</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-timezone-from-date" class="hyperlink" target="_blank">#func-timezone-from-date</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:year-from-date(date)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the year in the localized value of the argument
 | |
|                                     <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>date</td>
 | |
|                                             <td>date to extract years component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>year-from-date(xs:date("2011-11-15"))</td>
 | |
|                                             <td>2011</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-year-from-date" class="hyperlink" target="_blank">#func-year-from-date</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:month-from-date(date)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the month in the localized value of the argument
 | |
|                                     <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>date</td>
 | |
|                                             <td>Date to extrat the month from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>month-from-date(xs:date("2011-11-15"))</td>
 | |
|                                             <td>11</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-month-from-date" class="hyperlink" target="_blank">#func-month-from-date</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:day-from-date(date)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the day in the localized value of the argument
 | |
|                                     <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>date</td>
 | |
|                                             <td>date to extact day component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>day-from-date(xs:date("2011-04-23"))</td>
 | |
|                                             <td>23</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-day-from-date" class="hyperlink" target="_blank">#func-day-from-date</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:current-dateTime()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the current dateTime (with timezone) <br>
 | |
|                                     <b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>current-dateTime()</td>
 | |
|                                             <td>2021-03-24T18:15:09.808+01:00</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-current-dateTime" class="hyperlink" target="_blank">#func-current-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:timezone-from-dateTime(datetime)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the time zone component of the argument if any <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>DateTime to extract fimezone information from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>timezone-from-dateTime(xs:dateTime("2021-01-15T12:10:00-03:00"))</td>
 | |
|                                             <td>-PT3H</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-timezone-from-dateTime" class="hyperlink" target="_blank">#func-timezone-from-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:year-from-dateTime(datetime)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the year component in the localized value of the
 | |
|                                     argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>datetime to extract years component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>year-from-dateTime(xs:dateTime("2011-11-15T12:30-04:10"))</td>
 | |
|                                             <td>2011</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-year-from-dateTime" class="hyperlink" target="_blank">#func-year-from-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:month-from-dateTime(datetime)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the month component in the localized value of the
 | |
|                                     argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>datetime to extract month component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>month-from-dateTime(xs:dateTime("2011-11-15T12:30-04:10"))</td>
 | |
|                                             <td>11</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-month-from-dateTime" class="hyperlink" target="_blank">#func-month-from-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:day-from-dateTime(datetime)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the day component in the localized value of the
 | |
|                                     argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>datetime to extract day component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>day-from-dateTime(xs:dateTime("2011-11-15T12:30-04:10"))</td>
 | |
|                                             <td>15</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-day-from-dateTime" class="hyperlink" target="_blank">#func-day-from-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:hours-from-dateTime(datetime)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the hours component in the localized value of the
 | |
|                                     argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>datetime to extract hours component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>hours-from-dateTime(xs:dateTime("2011-11-15T12:30-04:10"))</td>
 | |
|                                             <td>12</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-hours-from-dateTime" class="hyperlink" target="_blank">#func-hours-from-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:minutes-from-dateTime(datetime)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns an integer that represents the minutes component in the localized value of
 | |
|                                     the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>datetime to extract minutes component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>minutes-from-dateTime(xs:dateTime("2011-11-15T12:30-04:10"))</td>
 | |
|                                             <td>30</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-minutes-from-dateTime" class="hyperlink" target="_blank">#func-minutes-from-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:seconds-from-dateTime(datetime)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a decimal that represents the seconds component in the localized value of
 | |
|                                     the argument <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>datetime to extract seconds component from</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>seconds-from-dateTime(xs:dateTime("2011-11-15T12:30:00-04:10"))</td>
 | |
|                                             <td>0</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-seconds-from-dateTime" class="hyperlink" target="_blank">#func-seconds-from-dateTime</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:adjust-dateTime-to-timezone(datetime,timezone)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     If the timezone argument is empty, it returns a dateTime without a timezone.
 | |
|                                     Otherwise, it returns a dateTime with a timezone <br>
 | |
|                                     <b>Arguments and return type:</b>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Type</th>
 | |
|                                             <th>Description</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>datetime</td>
 | |
|                                             <td>datetime to be adjusted</td>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>timezone</td>
 | |
|                                             <td>timezone to be used in provided date</td>
 | |
|                                         </tr>
 | |
|                                     </table><b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>adjust-dateTime-to-timezone(xs:dateTime('2011-11-15T12:30:00-04:10'),
 | |
|                                                 xs:dayTimeDuration("PT10H"))</td>
 | |
|                                             <td>2011-11-16T02:40:00+10:00</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-adjust-dateTime-to-timezone" class="hyperlink" target="_blank">#func-adjust-dateTime-to-timezone</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
| 
 | |
|                     </div>
 | |
|                 </div>
 | |
|                 <div class="collapsible">
 | |
|                     <span name="collapse20">
 | |
|                     <button class="section-button collapseTrigger" style="border: none">Error</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:error()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     https://www.w3.org/TR/xpath-functions/#func-error <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-error" class="hyperlink" target="_blank">#func-error</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:error(error)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     https://www.w3.org/TR/xpath-functions/#func-error <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-error" class="hyperlink" target="_blank">#func-error</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:error(error,description)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     https://www.w3.org/TR/xpath-functions/#func-error <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-error" class="hyperlink" target="_blank">#func-error</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:error(error,description,error-object)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     https://www.w3.org/TR/xpath-functions/#func-error <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-error" class="hyperlink" target="_blank">#func-error</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:trace(value,label)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Used to debug queries <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-trace" class="hyperlink" target="_blank">#func-trace</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
| 
 | |
|                     </div>
 | |
|                 </div>
 | |
|                 <div class="collapsible">
 | |
|                     <span name="collapse20">
 | |
|                         <button class="section-button collapseTrigger" style="border: none">Misc</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:nilled(node)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a Boolean value indicating whether the argument node is nilled <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-nilled" class="hyperlink" target="_blank">#func-nilled</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:namespace-uri-from-QName()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-namespace-uri-from-QName" class="hyperlink" target="_blank">#func-namespace-uri-from-QName</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:base-uri()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the value of the base-uri property of the current or specified node <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-base-uri" class="hyperlink" target="_blank">#func-base-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:base-uri(node)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the value of the base-uri property of the current or specified node <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-base-uri" class="hyperlink" target="_blank">#func-base-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:static-base-uri()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the value of the base-uri <br>
 | |
|                                     <b>Examples: </b><br>
 | |
|                                     <table class="table-doc">
 | |
|                                         <tr>
 | |
|                                             <th>Expression</th>
 | |
|                                             <th>Result</th>
 | |
|                                         </tr>
 | |
|                                         <tr>
 | |
|                                             <td>default-collation()</td>
 | |
|                                             <td>http://www.w3.org/2005/xpath-functions/collation/codepoint</td>
 | |
|                                         </tr>
 | |
|                                     </table><br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-static-base-uri" class="hyperlink" target="_blank">#func-static-base-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:doc-available(URI)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns true if the doc() function returns a document node, otherwise it returns
 | |
|                                     false <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-doc-available" class="hyperlink" target="_blank">#func-doc-available</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:resolve-QName()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-resolve-QName" class="hyperlink" target="_blank">#func-resolve-QName</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:node-name(node)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the node-name of the argument node <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-node-name" class="hyperlink" target="_blank">#func-node-name</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:default-collation()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the value of the default collation <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-default-collation" class="hyperlink" target="_blank">#func-default-collation</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:idref((string,string,...),node)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a sequence of element or attribute nodes that have an IDREF value equal to
 | |
|                                     the value of one or more of the values specified in the string argument <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-idref" class="hyperlink" target="_blank">#func-idref</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:document-uri(node)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the value of the document-uri property for the specified node <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-document-uri" class="hyperlink" target="_blank">#func-document-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:local-name-from-QName()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-local-name-from-QName" class="hyperlink" target="_blank">#func-local-name-from-QName</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:in-scope-prefixes()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-in-scope-prefixes" class="hyperlink" target="_blank">#func-in-scope-prefixes</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:namespace-uri-for-prefix()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-namespace-uri-for-prefix" class="hyperlink" target="_blank">#func-namespace-uri-for-prefix</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:QName()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-QName" class="hyperlink" target="_blank">#func-QName</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:root() fn:root(node)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the root of the tree to which the current node or the specified belongs.
 | |
|                                     This will usually be a document node <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-root" class="hyperlink" target="_blank">#func-root</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:doc(URI)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-doc" class="hyperlink" target="_blank">#func-doc</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse20">
 | |
|                             [2.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:resolve-uri(relative,base)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     NONE <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions/#func-resolve-uri" class="hyperlink" target="_blank">#func-resolve-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:available-environment-variables()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns a list of environment variable names <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables" class="hyperlink" target="_blank">#func-available-environment-variables</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:doc-available(uri)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     The function returns true the function call fn:doc(uri) would return a document node
 | |
|                                     <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-doc-available" class="hyperlink" target="_blank">#func-doc-available</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:element-with-id()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     https://www.w3.org/TR/xpath-functions-31/#func-element-with-id <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-31/#func-element-with-id" class="hyperlink" target="_blank">#func-element-with-id</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:encode-for-uri(uri-part)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Encodes reserved characters in a string that is intended to be used in the path
 | |
|                                     segment of a URI. <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-encode-for-uri" class="hyperlink" target="_blank">#func-encode-for-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:environment-variable(name)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns the value of a system environment variable, if it exists <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-environment-variable" class="hyperlink" target="_blank">#func-environment-variable</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:escape-html-uri(uri)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Escapes a URI in the same way that HTML user agents handle attribute values expected
 | |
|                                     to contain URIs <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-escape-html-uri" class="hyperlink" target="_blank">#func-escape-html-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:iri-to-uri(iri)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Converts a string containing an IRI into a URI <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-iri-to-uri" class="hyperlink" target="_blank">#func-iri-to-uri</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
| 
 | |
|                     </div>
 | |
|                 </div>
 | |
| 
 | |
| 
 | |
|                 <div class="collapsible">
 | |
|                     <span name="collapse30">
 | |
|                         <button class="section-button collapseTrigger" style="border: none">Loop /
 | |
|                             Conditional</button>
 | |
|                     </span>
 | |
|                     <div class="content">
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:for-each(sequence*, function)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Applies function item to every element in sequence <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-for-each" class="hyperlink" target="_blank">#func-for-each</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:for-each-pair(sequence*, sequence*, function)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Applies the function to consecutive pairs of elements taken from sequences <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-for-each-pair" class="hyperlink" target="_blank">#func-for-each-pair</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:fold-left(sequence*, baseValue, function)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Applies function item to every element in sequence, accumulating value <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-fold-left" class="hyperlink" target="_blank">#func-fold-left</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:fold-right()</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Applies function item to every element in sequence, accumulating value <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-fold-right" class="hyperlink" target="_blank">#func-fold-right</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
| 
 | |
|                         <span name="collapse30">
 | |
|                             [3.0] <a href="#" onClick="return false;"
 | |
|                                 class="hyperlink collapsible collapsibleMini collapseTrigger"><code>fn:filter(sequence*, function)</code></a>
 | |
|                             <div class="content">
 | |
|                                 <div class="section">
 | |
|                                     Returns those items from the sequence for which the supplied function returns true <br>
 | |
|                                     <br>
 | |
|                                     <code>W3C Documentation reference: <a href="https://www.w3.org/TR/xpath-functions-30/#func-filter" class="hyperlink" target="_blank">#func-filter</code></a>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </span>
 | |
|                     </div>
 | |
|                 </div>
 | |
| 
 | |
|         </div>
 | |
|         <!-- Cut here -->
 | |
|         </span>
 | |
|     </div>
 | |
| 
 | |
|     </div>
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
|     <script>
 | |
|         function processVersionSelector() {
 | |
|             var processor = getProcessor();
 | |
|             var hideableOptions = document.getElementsByClassName("hideable");
 | |
|             for (let i = 0; i < hideableOptions.length; i++) {
 | |
|                hideableOptions[i].style = "display: none;";
 | |
|             }
 | |
|             if (processor == "xalan" || processor == "libxml") {
 | |
|                 var xalanOptions = document.getElementsByClassName("xalan");
 | |
|                 for (let i = 0; i < xalanOptions.length; i++) {
 | |
|                     xalanOptions[i].style = "";
 | |
|                 }
 | |
|                 document.getElementById("versions").selectedIndex = 0;
 | |
|             }
 | |
|             else {
 | |
|                 var saxonOptions = document.getElementsByClassName("saxon");
 | |
|                 for (let i = 0; i < saxonOptions.length; i++) {
 | |
|                     saxonOptions[i].style = "";
 | |
|                 }
 | |
|                 document.getElementById("versions").selectedIndex = 3;
 | |
|                 
 | |
|             }
 | |
|             processTooltip();
 | |
| 
 | |
|         }
 | |
| 
 | |
|         function processTooltip() {
 | |
|             var filter = "collapse" + getVersion();
 | |
|             var collList;
 | |
|             console.log("filter: ", filter);
 | |
| 
 | |
| 
 | |
|             if (filter == "collapse3.0") {
 | |
|                 document.getElementById("tooltipFunctionInfo").innerText = "XPath 1.0, 2.0 & 3.0 functions";
 | |
|                 showList(document.getElementsByName("collapse20"));
 | |
|                 showList(document.getElementsByName("collapse30"));
 | |
|                 hideList(document.getElementsByName("collapse31"));
 | |
|                 console.log("collapsed 3.0");
 | |
|             } else if (filter == "collapse3.1") {
 | |
|                 document.getElementById("tooltipFunctionInfo").innerText = "XPath 1.0, 2.0, 3.0 & 3.1 functions";
 | |
|                 showList(document.getElementsByName("collapse20"));
 | |
|                 showList(document.getElementsByName("collapse30"));
 | |
|                 showList(document.getElementsByName("collapse31"));
 | |
|                 console.log("collapsed 3.1");
 | |
|             } else if (filter == "collapse2.0"){
 | |
|                 document.getElementById("tooltipFunctionInfo").innerText = "XPath 1.0 & 2.0 functions";
 | |
|                 showList(document.getElementsByName("collapse20"));
 | |
|                 hideList(document.getElementsByName("collapse30"));
 | |
|                 hideList(document.getElementsByName("collapse31"));
 | |
|             } else {
 | |
|                 document.getElementById("tooltipFunctionInfo").innerText = "XPath 1.0 functions";
 | |
|                 hideList(document.getElementsByName("collapse20"));
 | |
|                 hideList(document.getElementsByName("collapse30"));
 | |
|                 hideList(document.getElementsByName("collapse31"));
 | |
| 
 | |
|             }
 | |
| 
 | |
| 
 | |
| 
 | |
|             // if (checkDefault(document.getElementById("xmlArea").value.trim()) || document.getElementById("xmlArea").value.trim() == "") {
 | |
|             //     document.getElementById("defaultXMLButton").classList.toggle("active", true);
 | |
|             // } else {
 | |
|             //     document.getElementById("defaultXMLButton").classList.toggle("active", false);
 | |
|             // }
 | |
|         }
 | |
|     </script>
 | |
| 
 | |
|     <script>
 | |
|         function getVersion() {
 | |
|             return document.getElementById("versions").value;
 | |
|         }
 | |
|     </script>
 | |
| 
 | |
|     <script>
 | |
|         function getProcessor() {
 | |
|             return document.getElementById("processors").value;
 | |
|         }
 | |
|     </script>
 | |
| 
 | |
| 
 | |
|     <script>
 | |
|         function getProcInfo() {
 | |
|             var processVariables = document.getElementById("processors").value + "&version=" + getVersion();
 | |
|             return processVariables;
 | |
|         }
 | |
|     </script>
 | |
| 
 | |
| 
 | |
|     <script>
 | |
|         var triggerList = document.getElementsByClassName("collapseTrigger");
 | |
|         for (i = 0; i < triggerList.length; i++) {
 | |
|             console.log("trigger connected");
 | |
|             triggerList[i].addEventListener("click", function () {
 | |
|                 var collapsible = this.parentElement;
 | |
|                 if (this.tagName == "A") {
 | |
|                     var collapsibleData = this.nextElementSibling;
 | |
|                 } else {
 | |
|                     var collapsibleData = this.parentElement.nextElementSibling;
 | |
|                     
 | |
|                 }
 | |
| 
 | |
|                 console.log(collapsibleData);
 | |
|                 if (collapsibleData.style.maxHeight > "0px") {
 | |
|                     collapsibleData.style.maxHeight = "0px";
 | |
| 
 | |
|                     this.classList.toggle("active", false);
 | |
|                     if (!this.classList.contains("collapsibleMini")) {
 | |
|                         collapsible.classList.toggle("active", false);
 | |
|                     }
 | |
| 
 | |
|                     var subLists1 = collapsibleData.getElementsByClassName("content");
 | |
|                     var subLists2 = collapsibleData.getElementsByClassName("active");
 | |
|                     for (j = 0; j < subLists1.length; j++) {
 | |
|                         subLists1[j].style.maxHeight = "0px";
 | |
|                     }
 | |
|                     for (j = 0; j < subLists2.length; j++) {
 | |
|                         subLists2[j].classList.toggle("active", false);
 | |
|                     }
 | |
|                 } else {
 | |
|                     collapsibleData.style.maxHeight = (collapsibleData.scrollHeight) + "px";
 | |
| 
 | |
|                     this.classList.toggle("active", true);
 | |
|                     if (!this.classList.contains("collapsibleMini")) {
 | |
|                         collapsible.classList.toggle("active", true);
 | |
|                     } else {
 | |
|                         var parentContent = this.closest(".content");
 | |
|                         parentContent.style.maxHeight = (parentContent.scrollHeight + collapsibleData.scrollHeight) + "px";
 | |
|                     }
 | |
|                 }
 | |
|             });
 | |
|         }
 | |
|     </script>
 | |
| 
 | |
|     <script>
 | |
| 
 | |
|     </script>
 | |
| 
 | |
|     <script>
 | |
|         function init() {
 | |
|             //Handle clicks in whole form and set info in tooltip
 | |
|             setDefaultContent(document.getElementById("xmlArea"), 'Insert XML here');
 | |
|             setDefaultContent(document.getElementById("transformArea"), 'Insert XPath expression here');
 | |
|             console.log("init");
 | |
|             processVersionSelector();
 | |
|             processTooltip();
 | |
|             tool.addEventListener('change', event => {
 | |
|                 //Check if script was called from textarea or selector
 | |
|                 var targetID = event.target.getAttribute('id');
 | |
|                 if (targetID == "processors") {
 | |
|                     processVersionSelector();
 | |
|                     processTooltip();
 | |
|                 }
 | |
|                 else if (targetID == "versions") {
 | |
|                     processTooltip();
 | |
|                 }
 | |
|                 
 | |
|                 
 | |
|             })
 | |
|             tool.addEventListener('click', event => {
 | |
|                 //Check if script was called from textarea or selector
 | |
|                 var targetID = event.target.getAttribute('id');
 | |
|                 if (targetID !== "xmlArea" && targetID !== "transformArea") {
 | |
|                     return;
 | |
|                 }
 | |
|                 processTooltip();
 | |
| 
 | |
|             })
 | |
|             tool.addEventListener('change', event => {
 | |
|                 //Check if script was called from textarea or selector
 | |
|                 var targetID = event.target.getAttribute('id');
 | |
|                 if (targetID !== "xmlArea" && targetID !== "transformArea") {
 | |
|                     return;
 | |
|                 }
 | |
|                 processTooltip();
 | |
|             })
 | |
|         }
 | |
|     </script>
 | |
| 
 | |
| 
 | |
| </body>
 | |
| 
 | |
| </html>
 |