[prev in list] [next in list] [prev in thread] [next in thread]
List: xsl-list
Subject: Re: [xsl] How to Parse String with Escaped XML Markup?
From: "Liam R. E. Quin liam () fromoldbooks ! org" <xsl-list-service () lists ! mulberrytech ! com
Date: 2021-01-15 20:25:49
Message-ID: 20210115152516.89081 () lists ! mulberrytech ! com
[Download RAW message or body]
On Fri, 2021-01-15 at 14:58 +0000, Eliot Kimber ekimber@contrext.com
wrote:
>
> <?oxy_delete author="ekimber" timestamp="20210115T085216-0600"
> content="<body><p><ul
> id="ul_c5k_mhh_34b"><li>li
> one</li><li>li
> two</li></ul></p></body>"?>
>
> What I'm failing to work out is how to convert the value of the
> @content pseudo-attribute back into a proper XML string that I can
> pass to parse-xml().
I'd start by making a sequence of (name, value) pairs and only then
replace the entities, perhaps by treating each as an XML fragment
inside try/catch.
This is assuming you want to avoid extension functions, which i think
wise where possible.
--
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/651070
or by email: xsl-list-unsub@lists.mulberrytech.com
--~--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic