[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Recovering the 'document order' of parsed json

Subject: Re: Recovering the 'document order' of parsed json
From: David Cramer <david@xxxxxxxxxxxx>
Date: Tue, 29 Oct 2013 10:06:47 -0500
Re:  Recovering the 'document order' of parsed json
On 10/29/2013 08:31 AM, Tony Graham wrote:
> So would you be better off with a XML representation of the JSON rather
> than the JSON as XSLT/XPath datatypes?

Yes, I think you're right. For this particular task, having the JSON
represented as xml will be much more convenient than walking through a map.

> There is, e.g., David Lee's "JSON XML Schema (JXML)" at
> http://xml.calldei.com/JsonXML, but given his stated conceptual
> difficulties with XSLT, he's unlikely to have produced a XSLT library for
> parsing JSON into JXML.
> 
> I've also found http://www.gerixsoft.com/blog/xslt/json2xml and

I'd tried that one, but it blows up I do "ant test" (also it felt kind
of bulky). Also I though "I should give some of those fancy xslt 3.0
features s shot".

> https://dnovatchev.wordpress.com/2007/07/05/transforming-json/ but YMMV
> since you may just be wanting elements for the different JSON types as in
> JXML rather than turning JSON names into XML element names as in the other
> approaches that I've seen.

That looks promising. I'll give it a shot.

Thanks,
David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.