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

RE: Compound Documents? RE: Announcement of the NVDL

  • To: "'Roger L. Costello'" <costello@m...>, 'XML Developers List' <xml-dev@l...>
  • Subject: RE: Compound Documents? RE: Announcement of the NVDL FCD
  • From: "Bullard, Claude L (Len)" <len.bullard@i...>
  • Date: Thu, 27 Jan 2005 16:23:07 -0600

naming compound video
Think about the problems of putting valid SVG or VML inside 
an HTML document.  Or even the example you provided.  Declared 
namespaces should make it possible to validate these easily. 
That's actually a very nice capability to have.  Consider that 
even in messaging, compounds are becoming a fact of life, 
eg, a header type with a payload type.   This should be the 
common practice approach, ie, compounding, over the fetish 
of building huge elaborate baroque and often broken schemas 
from hell that do too much for too few and evolve like a 
snail darter in a pool of porpoise puss (is that over the top?)

http://lamammals.blogspot.com/2005/01/beginners-mind.html

A compound document for this is a document composed of 
productions from multiple namespaces.   In olden days, 
it meant a document with multiple media.  In SGML, notations 
were provided for declaring these.  In other formats, 
different if similar means were enabled.  See Compound 
Document Architecture (originally, a set of standards 
from Digital Equipment Corporation (DEC)).

http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?Compound+Document+Architecture

len


From: Roger L. Costello [mailto:costello@m...]

Hi Folks,

Has anyone looked at this Namespace-based Validation Dispatching Language?
I am not sure that I understand what problem it is solving.  In one of
Murata's Powerpoint documents[1] on NVDL he has these two slides:

--------------------------------
Requirements on validation#1

- It should be possible to combine schemas representing vocabularies easily.

- It should be possible to divide non-monolithic documents into pieces and
then validate each piece against one of the schemas. (divide-and-validate)

Do existing schema languages meet these requirements?

- No, you have to understand all  schemas very well and change them.

- No, you have to validate the entire document against the combination of
all schemas.
--------------------------------

How do you interpret these 2 slides?  

Suppose that an XML Schema declares this Book element:

targetNamespace="http://www.books.org"

<element name="Book">
   <complexType>
      <sequence>
         <element name="Title" type="string"/>
         <element name="Author" type="string"/>
         <element name="Date" type="string"/>
         <element name="ISBN" type="string"/>
         <element name="Publisher" type="string"/>
      </sequence>
   </complexType>
</element>

Then, an instance document would look like this:

<Book xmlns="http://www.books.org">
   <Title>The First and Last Freedom</Title>
   <Author>J. Krishnamurti</Author>
   <Date>1954</Date>
   <ISBN>0-06-064831-7</ISBN>
   <Publisher>Harper &amp; Row</Publisher>
</Book>

I interpret Murata's slides as saying that with NVDL you can insert elements
from another namespace into the <Book>...</Book> element.  For example, here
I insert some XHTML elements:

<Book xmlns="http://www.books.org">
   <Title>The First and Last Freedom</Title>
   <HTML xmlns="http://www.w3.org/TR/REC-xhtml">
       <BODY>Hello World</BODY>
   </HTML>
   <Author>J. Krishnamurti</Author>
   <Date>1954</Date>
   <ISBN>0-06-064831-7</ISBN>
   <Publisher>Harper &amp; Row</Publisher>
</Book>

And the NVDL Processor will sort out the two components (the Book component
and the HTML component) and validate each individually.

Normally, with the above instance document a schema validator would
complain, saying that "the HTML element is unexpected, Expecting the Author
element".

So, what does this "component insertion" capability buy me?  Murata calls
this a "compound document".  What exactly is a "compound document"?  /Roger

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-2007 All Rights Reserved.