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.
 
 
Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 20 September 2009 21:30:25 GMT