XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Serialization of XDM - Use cases / Proposal

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 -->)

internally, wouldn't that also be the serialization format? Admittedly, there's a little more complexity in dealing with fragments and the like, but at least with the sequence case, the delimiters would presumably be those used for XQuery on input.

Kurt Cagle
Managing Editor
http://xmlToday.org


On Sat, Sep 19, 2009 at 5:05 PM, <rjelliffe@allette.com.au> wrote:
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

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS