xsl-list
[Top] [All Lists]

Re: [xsl] XSLT functions for JSON

2008-05-18 21:22:18
On Sun, May 18, 2008 at 12:55:42PM -0600, M. David Peterson wrote:
On Sun, 18 May 2008 12:47:12 -0600, Robert Koberg <rob(_at_)koberg(_dot_)com> 
wrote:

Again, the best that could be done is to follow the rules laid out by
org.json

Right, but is the conversion itself even necessary to be enabled to  
traverse the array/sequence via XPath 2.0/XSLT 2.0?

In principle, an XPath 2.0 implementation (including XQuery or
XSLT) could present a JSON file as an instance of the XPath etc etc
Data Model and it could be queried directly.

I don't know if there are systems that do this in practice;
it doesn't sound terribly useful to me, since I see JSON as for
Web server -> Web Browser communication over HTTP, primarily for
use with JavaScript, and if you wanted interoperability with
XSLT you'd send XML instead.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>