Fragment Interchange Question
Pavel Velikhov
pvelikho at cs.ucsd.edu
Thu Mar 18 23:13:38 GMT 1999
Hi,
I have tried to "parse" the Fragment Interchange spec, but failed.
So I have this question: I would like to use the Fragement Interchange
to
ship small pieces of XML documents. So far it fits with the spec.
But I also want these fragments to be incomplete, and to be able to
explicitly state that and to recover the incomplete pieces if needed.
Here is an example, suppose my initial XML document is:
<dealers_db>
<dealer>
<address>
<street> 1102 Main St. </street>
<city> San Diego </city>
<state> CA </state>
<zip> 99119 <zip>
</address>
<ads>
<ad>
<make> Honda </make>
<model> Civic </model>
<year> 95 </year>
</ad>
<ad>
<make> Jeep </make>
<model> Wrangler </model>
<year> 93 </year>
</ad>
... (lots of other ads)
</ads>
</dealer>
<dealer>
...
</dealer>
</dealers_db>
And suppose I want to ship the first dealer, but not the full dealer
element with all subobjects. Instead, I want only the City from the
address,
and the first ad. However I need to know what information is incomplete.
Do
you know if this is doable with Fragment Interchange Spec? I.e. could I
have
"unresolved" fragbodies within a fragbody?
Here is (approximately) what I need to do: (in_e is a short of
incomplete
element and in_l is a short of incomplete list)
<?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 fragbodyref="http://dealer.com#root().child(1,dealer)">
<dealer_db>
<f:fragbody/>
</dealer_db>
</p:fcs>
<p:body>
<dealer>
<address>
<in_e
at="http://dealer.com#root().child(1,dealer).child(1,address).child(1,street)"
/>
<city> San Diego </city>
<in_l
at="http://dealer.com#root().child(1,dealer).child(1,address).child(3)"
/>
</address>
<ads>
<ad>
<make> Honda </make>
<model> Civic </model>
<year> 95 </year>
</ad>
<in_l
at="http://dealer.com#root().child(1,dealer).child(1,ads).child(2,ad)"
/>
</ads>
</dealer>
</p:body>
</p:package>
Thank you,
Pavel Velikhov
UCSD Database Laboratory
http://www.db.ucsd.edu
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