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

Re: XSLT functions for JSON

Subject: Re: XSLT functions for JSON
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Sun, 18 May 2008 12:35:56 -0600
Re:  XSLT functions for JSON
On Sun, 18 May 2008 07:52:35 -0600, Jesper Tverskov <jesper@xxxxxxxxxxx> wrote:

property names in JSON could begin with characters not allowed as
first character in XML like "$" (used by Goggle) and "@", and "#" used
by article.

This list also includes numbers, so while a sequence of numbers e.g. (1, 2, 3) is valid as far as XSLT is concerned (and therefore a JSON array could easily be converted to a valid sequence), it would be invalid to do something like <array><1/><2/><3/></array>, though as per Robert's suggestion, you could do something like <array><i>1</i><i>2</i><i>3</i></array>. Of course, if the entire point is to enabled to traverse a JSON document in the same way you would traverse an XML document (a.k.a XPath), then, once again, it seems to me the real problem to solve here is how do we go about traversing a JSON document with XPath instead of how do we convert JSON to XML and back again.


--
/M:D

M. David Peterson
Co-Founder & Chief Architect, 3rd&Urban, LLC
Email: m.david@xxxxxxxxxxxxxxx | m.david@xxxxxx
Mobile: (206) 999-0588
http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354


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.