XML MULTI-Fragment Interchange?

Don Park donpark at quake.net
Thu Mar 4 22:06:46 GMT 1999


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 at 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 at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list