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

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

From: Michael Kay <mike@saxonica.com>
Date: Sun, 20 Sep 2009 22:29:37 +0100
To: "'Kurt Cagle'" <kurt.cagle@gmail.com>, <rjelliffe@allette.com.au>
Cc: <xml-dev@lists.xml.org>, "'XProc Dev'" <xproc-dev@w3.org>
Message-ID: <354DAFA573DF426587165D722D4E1094@Sealion>


I'm going to ask what may be an obvious question, but wouldn't it make sense
for a serialization of a sequence to correspond on the output to the
serialization on the input? That is to say, if you had a structure:

("foo",5,<bar><bat/></bar>,<!-- foo -->)

The main disadvantage of such a format is that it uses non-XML markup
(parentheses and commas) which makes it difficult to parse using tools that
are specialized to handling XML markup, for example XSLT and XQuery.
Also, it doesn't solve the problem of retaining type annotations, for
example the difference between the integer 5 and the positiveInteger 5.

Michael Kay

Received on Sunday, 20 September 2009 21:30:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:05 UTC