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

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

From: <rjelliffe@allette.com.au>
Date: Sun, 20 Sep 2009 10:05:18 +1000 (EST)
Message-ID: <2543.124.170.186.187.1253405118.squirrel@intranet.allette.com.au>
To: xml-dev@lists.xml.org
Cc: "'XProc Dev'" <xproc-dev@w3.org>
Probably someone has mentioned this, but one approach might be based on
Michael's attributes:

  http://www.w3.org/2002/04/xmlschema-psvi-in-xml

I also think there is merit in something like the following:

<xdm:typed-document>
   <xdm:type>
      <rdf:bag>
          <xs:string/>
          <xs:unsignedShort length="4" />
      </rdf:bag>
   </xdm:type>
   <xdm:data>
      <address>
        <city>Sydney</city>
        <postcode>2009</city>
      </address>
   </xdm:data>
</xdm:typed-document>

Where the original document can be reconstructed merely by taking the
/*/*[2]/* branch, and there is one element in the type branch for every
element in the data branch.

Cheers
Rick Jelliffe
Received on Sunday, 20 September 2009 00:06:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 20 September 2009 00:06:26 GMT