Re: How to Parse String with Escaped XML Markup?

"Martin Honnen [email protected]" <[email protected]> Fri, 15 Jan 2021 15:24:34 -0000
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
Am 15.01.2021 um 16:23 schrieb Martin Honnen [email protected]:
> Am 15.01.2021 um 15:58 schrieb Eliot Kimber [email protected]:
>> I researched this question in this list but I didn't find a recent
>> response so I'm asking it again.
>>
>> My specific requirement is to take the value of an Oxygen deleted
>> content processing instruction and parse it back into elements in the
>> context of an XSLT 3 transform.
>>
>> The PI is:
>>
>> <?oxy_delete author="ekimber" timestamp="20210115T085216-0600"
>> content="&lt;body&gt;&lt;p&gt;&lt;ul
>> id=&quot;ul_c5k_mhh_34b&quot;&gt;&lt;li&gt;li
>> one&lt;/li&gt;&lt;li&gt;li
>> two&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;&lt;/body&gt;"?>
>>
>> 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 think Saxon PE and EE have an extension function to access the pseudo
> attributes of a processing instruction value.

https://www.saxonica.com/html/documentation/functions/saxon/get-pseudo-attribute.html
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--