Fwd: Crazy jsonSLT and jsonGRDDL idea.

Me, five minutes ago, on json-schema@googlegroups.com...

Begin forwarded message:

> From: tobyink <mail@tobyinkster.co.uk>
> Date: 15 December 2008 15:41:08 GMT
> To: JSON Schema <json-schema@googlegroups.com>
> Subject: Crazy jsonSLT and jsonGRDDL idea.
> Reply-To: json-schema@googlegroups.com
>
>
> Hello, the following is crazy...
>
> jsonSLT = JSON equivalent of XSLT. Obvious syntax is to use
> ECMAScript, but to avoid tying this to client-side use it should be
> ECMAScript which doesn't have to run inside a browser instance (i.e.
> no references to "document" or "window". jsonSLT is an ECMAScript file
> containing a function called "transform" that takes an object (not a
> string, but an object) as input, does some kind of transformation on
> it and returns either another object, or a [MIME-type, string] pair.
> That is, while XSLT transforms XML into anything (but usually into
> XML), jsonSLT transforms JSON into anything (but usually into JSON).
>
> jsonGRDDL = JSON equivalent of GRDDL. A JSON object includes a "$ref"
> link to a JSON schema. The schema in turn contains a "$transform" link
> to a jsonSLT file. The jsonSLT file takes the original JSON object as
> input and returns an RDF/JSON object.
>
> ... but it just might work.
>
> I'm thinking about implementing it in Cognition <http://
> buzzword.org.uk/cognition/>. Anyone interested in helping?
>
> -Toby

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Monday, 15 December 2008 15:47:18 UTC