Hi Wyatt,
Do you have to use xdmp:unquote for a particular reason? Otherwise you could do
something like this:
<exception message="one of
'{{"http://www.w3.org/1998/Math/MathML":semantics}}' is
expected."/>
Kind regards,
Geert
>
drs. G.P.H. (Geert) Josten
Consultant
Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk
T +31 (0)10 850 1200
F +31 (0)10 850 1199
mailto:[email protected]
http://www.daidalos.nl/
KvK 27164984
P Please consider the environment before printing this mail.
De informatie - verzonden in of met dit e-mailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> Wyatt VanderStucken
> Sent: woensdag 3 maart 2010 19:32
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] Escaping text?
>
> I've been banging my head trying to figure this out - any
> ideas would be much appreciated....
>
> let $ex as xs:string := '<exception message="One of
> ''{"http://www.w3.org/1998/Math/MathML":semantics}''
> is expected."/>'
> return xdmp:unquote($ex)
>
> Always gives error "SystemID: XDMP-DOCSTARTTAGCHAR:
> xdmp:unquote("<exception message="One of
> '{"http://www.w3.org/1998/M...") -- Unexpected character
> "/" in start tag at line 1"
>
> I've tried a variety fn:replace calls, but haven't yet found
> the magic...
>
> Thanks,
> Wyatt
>
>
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general