Re: [xsl] XML to Json and escaped characters

Subject: Re: [xsl] XML to Json and escaped characters
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Mar 2025 18:10:54 -0000
On 18/03/2025 18:56, dvint@xxxxxxxxx wrote:
I checked the spec for xml-to-json()


Note that the version 4 of that function allows an option to prevent
escaping the slash/solidus e.g.

xml-to-json(<string key="data"
xmlns="http://www.w3.org/2005/xpath-functions";>http://example.com/foo/bar</st
ring>,
{ 'escape-solidus' : false() })

Might already work with Saxon PE or EE although I haven't checked

Current Thread