[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Compound Documents - necessary for success?

  • From: costello@m... (Roger L. Costello)
  • To: xml-dev@i...
  • Date: Fri, 29 Jan 99 13:17:55 -0500

why create a compound document
Marcus Carr wrote:

>Sorry, maybe I didn't make myself clear - given the following DTD:
>
><!DOCTYPE doc [
><!ELEMENT doc      (a?, b?, c?)>
><!ELEMENT a        (#PCDATA)>
><!ELEMENT b        (#PCDATA)>
><!ELEMENT c        (#PCDATA)>
>]>
>
>If a user wants to create a compound document, they might do something
like:
>
><doc>
>  <c xmlns="http://MyDTD">This is c</c>
>  <b xmlns="http://MyDTD">This is b</b>
>  <a xmlns="http://MyDTD">This is a</a>
></doc>
>

This presupposes that (a) we know apriori what documents we want to nest
within <doc>, and (b) what order the nested documents are to be in, etc. 
It assumes everything is static.  I was thinking along the lines of a much
more dynamic system in which a document is generated from assembling
together data from a number of different data sources dynamically.  For
example, suppose that you have a number of different meteorological sensors
that generate periodic, transient data.  Each sensor transmits its data in
accordance to its sensor.dtd.  Each sensor has a different DTD.  We would
like to collect together data from some (or all) of the sensors and create
a single (composite) document from this dynamic, transient data.

So, here are the features that I see a composite XML document may have:

(1) The sources of the data may be transient.  The composite document
itself may be transient.
(2) The data is assembled "on the fly".  Which data is selected, the order
of the selected documents is entirely dynamic.
(3) Each data source may conform to a different DTD (grammar).

Consequences:

(1) There can be no DTD for the composite document, unless it is
dynamically created.

>
>> Is it not enough to verify that the fragments are valid and that the
>> document as a whole is well-formed?
>
>No, you also want to respect the original intention of the DTD, unless a
really
>good reason exists not to.
 
What does it buy you to validate the document as a whole when each piece
(fragment) has been validated? 

/Roger


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.