Changes

Jump to navigation Jump to search
379 bytes added ,  16:00, 22 September 2011
<query xmlns="http://www.basex.org/rest">
<text><![CDATA[ (//city/name)[position() <= 5] ]]></text>
</query>
</pre>
 
The second query returns the string lengths of all text nodes, which are found in the node that has been specified as initial context node:
<pre class="brush:xml">
<query xmlns="http://www.basex.org/rest">
<text>for $i in .//text() return string-length($i)</text>
<context>
<xml>
<text>Hello</text>
<text>World</text>
</xml>
</context>
</query>
</pre>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu