i have to parse strings with escaped markup, contained in the @body attribute of an ownedComment Element. An example woud be @body='<p>test</p>'
In order to deal with parser errors, which could be caused by typos in the string above, i'd like to use the new try/catch mechanism of XSLT 3.
So i wrote something along these lines:
Code: Select all
<xsl:variable name="doc" as="document-node()" select="parse-xml-fragment(db:escapeEntities($string))"/>
<xsl:apply-templates select="$doc/*" mode="db-ns"/>
This is a bug, isn't it?
Oxygen 17.0, build 2015051321 on Windows 7 64 bit with Saxon EE 184.108.40.206. Stylesheet Version is 3.0.