Re: [xsl] Function json-to-xml and implementations in ECMAScript and Python

Subject: Re: [xsl] Function json-to-xml and implementations in ECMAScript and Python
From: "Schimon Jehudah sch@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Nov 2025 12:46:36 -0000
I have modified a Python script of Mr. Max Base.

https://git.xmpp-it.net/sch/Focus/commit/5c3fdf9dfd4ee0c8c3ded9138240e88ea470bb82

This script converts JSON to XML in a similar fashion to XPath 3.1
function json-to-xml, in order to enable processing of JSON data with
XSLT 1.0 and XSLT 2.0.

I sense, that there should be a few more features to add.

Kind regards,
Schimon

On Wed, 26 Nov 2025 06:22:29 -0000
"Schimon Jehudah sch@xxxxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Tue, 25 Nov 2025 23:31:01 -0000
> "Martin Honnen martin.honnen@xxxxxx"
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> > On 26/11/2025 00:27, Schimon Jehudah sch@xxxxxxxxxxxx wrote:  
> > >
> > > I would appreciate to receive complete information about XSLT 3.0
> > > function "json-to-xml".
> > >
> > > I intend to create ECMAScript and Python scripts to do that task,
> > > preferably in the most compliance fashion.
> > >
> > > I did try that function with SaxonJS, yet I would rather read
> > > documentation in order to be certain that I do not skip esssential
> > > information.
> > >
> > > Please advise.
> > >    
> > 
> > It is defined for XPath 3.1 in 
> > https://www.w3.org/TR/xpath-functions-31/#func-json-to-xml.
> >   
> 
> Good day.
> 
> Thank you. Martin.
> 
> With regards,
> Schimon

Current Thread