[XQZone General] Element repacement function?
Tim Finney
tjf2n at virginia.edu
Fri Dec 2 14:04:48 PST 2005
I want to write a function for replacing an element within an XML
fragment. The arguments would be the XML fragment, the element that
needs to be replaced, and the replacement, which might have mixed
content. The function should return the fragment with the substitution
in place.
E.g. repl($fragment, $fragment/a/b, <c>Mixed <d>content</d></c>)
Can it be done without using xdmp:node-replace()?
Best
Tim Finney
Programmer
Electronic Imprint (UVA Press)
More information about the General
mailing list