W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2009

Re: [xml-dev] Serialization of XDM - Use cases / Proposal

From: Andrew Welch <andrew.j.welch@gmail.com>
Date: Mon, 21 Sep 2009 10:31:31 +0100
Message-ID: <74a894af0909210231t6bc8a9e5nff078bdcfc0e854b@mail.gmail.com>
To: "David A. Lee" <dlee@calldei.com>
Cc: Kurt Cagle <kurt.cagle@gmail.com>, Michael Kay <mike@saxonica.com>, rjelliffe@allette.com.au, xml-dev@lists.xml.org, XProc Dev <xproc-dev@w3.org>
> My opinion is that if I'm going to have to parse "(" and "," I'd rather be
> parsing "<wrapper> ... </wrapper>" at least I wouldn't have to write a new
> (if even simple) parser and can simply read it as XML.

With brackets and commas you can just parse out the values, at least
with XML you can take advantage of dynamic dispatch and import
precedence of XSLT, for example to easily modify any standard
parser/serialiser stylesheets you come up with...  Basically XML seems
ideal for this.

> For example I would
> like to provide a 'sample implementation' of the serialize and parser
> written in pure XQuery as an additional way of describing the format besides
> prose.

XQuery, oh well :)  at least it will be simple enough to also have an
XSLT equivalent...






-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
Received on Monday, 21 September 2009 09:32:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 21 September 2009 09:32:12 GMT