OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XML MULTI-Fragment Interchange?

[ Lists Home | Date Index | Thread Index ]
  • From: "Don Park" <donpark@quake.net>
  • To: <xml-dev@ic.ac.uk>
  • Date: Thu, 4 Mar 1999 14:06:12 -0800

The first draft of the XML Fragment spec allows only one Fragbody.  Could
someone from the WG shed some light on why this constraint is important?

Multi-fragment packages are useful in many situations such as query result
representation.  Although it is possible to define a packaging mechanism
that handles multiple fragments, a fragment context information (FCI) must
be provided for each fragment because the spec does not allow FCI to be
shared by multiple fragments.

A possible example of a multi-fragment package follows:

<?xml version="1.0"?>
<p:package xmlns:p="http://www.w3.org/XML/Package/1.0"
           xmlns:f="http://www.w3.org/XML/Fragment/1.0"
           xmlns="">
  <f:fcs>
    <transaction>
      <purchase>
        <book/>
        <f:fragbody idref="frag1"

fragbodyref="http://sales.acme.com/trans/19990207-1234#root().child
(1,purchase).child(2,book)"/>
        <f:fragbody idref="frag2"

fragbodyref="http://sales.acme.com/trans/19990207-1234#root().child
(1,purchase).child(5,book)"/>
      </purchase>
    </transaction>
  </p:fcs>

  <p:body id="frag1">
    <book>
      <Author>J. R. R. Tolkien</Author>
      <Title>The Book of Lost Tales (The History of Middle-Earth)</Title>
      <Edition>Mass Market Paperback Reprint edition (June 1992)</Edition>
      <ISBN>0345375211</ISBN>
      <Price currency="USD">4.79</Price>
      <Quantity>1</Quantity>
    </book>
  </p:body>
  <p:body id="frag2">
    <book>
      <Author>J. R. R. Tolkien</Author>
      <Title>The Book of Lost Tales (The History of Middle-Earth)</Title>
      <Edition>Mass Market Paperback Reprint edition (June 1992)</Edition>
      <ISBN>0345375211</ISBN>
      <Price currency="USD">4.79</Price>
      <Quantity>1</Quantity>
    </book>
  </p:body>
</p:package>

Comments?

Don Park
Docuverse



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

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

Copyright 2001 XML.org. This site is hosted by OASIS