Created
November 21, 2015 22:08
-
-
Save fgeorges/baaf911f8bd8bce866b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare function local:add-ns-node( | |
$elem as element(), | |
$prefix as xs:string, | |
$ns-uri as xs:string | |
) as element() | |
{ | |
element { QName($ns-uri, concat($prefix, ":x")) }{ $elem }/* | |
}; | |
local:add-ns-node(<xxx><a/></xxx>, "p1", "uri2") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment