> Thanks for the suggestion... I agree that's the issue, but I'm not quite
> sure how to work around it. I've tried the following to no avail - how do I
> replace the & with &? (unfortunately, I can't change the value of $ex,
> this comes from web-service call)...
>
> let $ex as xs:string := '<exception message="One of
> ''{"http://www.w3.org/1998/Math/MathML":semantics}'' is
> expected."/>'
> return
> xdmp:unquote(
> replace($ex, "&", "&")
> )
No it would be:
let $ex as xs:string := '<exception message="One of
''{&quot;http://www.w3.org/1998/Math/MathML&quot;:semantics}''
is expected."/>'
return xdmp:unquote($ex)
The entity reference " needs to be double escaped to &quot;
so that once the query has been parsed by the query processor, the
& entity ref is resolved to &, creating the " ref ready to be
parsed again using xdmp:unquote.
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general