[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSLT code for XML to JSON conversion?
Hi Folks,
We're looking to do conversion of relatively complex XML (i.e. namespaces, attributes, repeating elements, xlinks) into JSON from the Unix command line to build a web page. We'veB used the XML to JSON feature in the Oxygen Developer tool, and it works well, but that's a GUI, not a command line tool. Does anyone else here convert XML to JSON? Any recommendations on a stylesheet we could use? Many thanks for any help, --Rich Details: There seems to be a wide variety of open source stylesheets out there. We've looked at: B - Doeke Zanstra's xml2json utility https://github.com/doekman/xml2json-xslt B - Bram Stein's xml-to-json https://github.com/bramstein/xsltjson B - Darrell Miller's http://www.bizcoder.com/convert-xml-to-json-using-xslt B - Jens Duttke's xml2json https://xml2json.duttke.de/ B - Bojan BjeliD's xml2json https://www.bjelic.net/2012/08/01/coding/convert-xml-to-json-using-xslt/ ...and other unnamed scripts found in forums. Most seem to use XSL 1, but Bram Stein's uses XSL 2 and Saxon, implying more sophistication. We do have a SaxonPE site license. We'd even be willing to pay if there's a supported COTS stylesheet. -- Richard Fozzard, Computer Scientist Geospatial Metadata at NGDC: https://data.noaa.gov/ Cooperative Institute for Research in Environmental Sciences (CIRES) Univ. Colorado & NOAA National Centers for Environmental Information 151 Patton Ave, Room 468, Asheville, NC 28801 Cell: 303-579-5615, Email: richard.fozzard@xxxxxxxx
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|