Changes

Jump to navigation Jump to search
183 bytes added ,  16:52, 21 October 2021
|-
| '''Examples'''
| * Remove all namespaces from an element and its descendants:
<syntaxhighlight lang="xquery">
util:strip-namespaces(<xml xmlns='xuri' xmlns:prefix='uri2' prefix:name='value'><prefix:child/></xml>)
(: yields :)
<xml name='value'><child/></xml>
</syntaxhighlight>
* Remove all default namespaces:
<syntaxhighlight lang="xquery">
<xml xmlns='uri1'><child xmlns='uri2'/></xml>
=> util:strip-namespaces('')
</syntaxhighlight>
|}
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu