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

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

From: David A. Lee <dlee@calldei.com>
Date: Mon, 21 Sep 2009 08:14:15 -0400
Message-ID: <4AB76E17.3000002@calldei.com>
To: Michael Kay <mike@saxonica.com>
CC: "'Philippe Poulard'" <philippe.poulard@sophia.inria.fr>, "'Kurt Cagle'" <kurt.cagle@gmail.com>, rjelliffe@allette.com.au, xml-dev@lists.xml.org, "'XProc Dev'" <xproc-dev@w3.org>
Ouch.  If this cant be done in xquery syntax then my goal of 
de-serializing an XML representation using a XQuery example 
implementation is out the door.

Here's my best shot ...

   { fn:QName( "U" , "P:N" ) }
   { my:IdType( "S" ) }    (: wont work will it :( :)

Ok I admit I'm totally stumped.  *IS* there a way to re-animate this 
example using XQuery (or XSLT?)  ?
I have a feeling that my goal of providing a reference implementation in 
XQuery will be impossible.  Not even sure how to get element type 
information re-animated.

David A. Lee

Michael Kay wrote:
>> Why not writing it directly as a native XQuery sequence ?
>> ("foo",xs:positiveInteger(5),<bar><bat/></bar>,<!-- foo -->)
> How would you serialize a parentless attribute node having local name N,
> prefix P, namespace URI U, whose string value is "S", whose isID property is
> true, and whose type annotation is my:idType?
> Regards,
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay 
Received on Monday, 21 September 2009 12:15:21 GMT

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