Here you go:

xquery version "1.0-ml";

let $doc :=
<advancedSettings>
<value>&lt;settings&gt;&lt;setting 
name="asv.preview.maxRows"&gt;450&lt;/setting&gt;&lt;/settings&gt;</value>
</advancedSettings>

let $convert := xdmp:unquote(xdmp:url-decode($doc/value/text()))

return
  $convert//setting


Best,
Rob

Rob Szkutak
Associate Consultant
MarkLogic Corporation
[email protected]
Cell +1.716.562.8464
www.marklogic.com<http://www.marklogic.com>

________________________________
From: [email protected] 
[[email protected]] on behalf of Gary Larsen 
[[email protected]]
Sent: Tuesday, June 30, 2015 12:27 PM
To: 'General MarkLogic Developer Discussion'
Subject: [MarkLogic Dev General] Convert element text to node in XSL

Hope this isn’t too off topic.  In an XML document the value element contains 
and encoded XML string. I would like to parse this to a node in XSL for further 
processing.

<advancedSettings>
<value>&lt;settings&gt;&lt;setting 
name="asv.preview.maxRows"&gt;450&lt;/setting&gt;&lt;/settings&gt;</value>
</advancedSettings>

Is this possible?

Thanks,
Gary

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to