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

Compound Documents? RE: Announcement of the NVDL FCD

  • To: "'XML Developers List'" <xml-dev@l...>
  • Subject: Compound Documents? RE: Announcement of the NVDL FCD
  • From: "Roger L. Costello" <costello@m...>
  • Date: Thu, 27 Jan 2005 16:37:19 -0500
  • In-reply-to: <20050117020353.D956.MURATA@h...>
  • Thread-index: AcT77cQo419LBm+uSFeJtiHQSq3Q1QIuYOwA

svg compound document
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



[1] http://www.asahi-net.or.jp/~eb2m-mrt/svgopen/200409SVGOpen.ppt

-----Original Message-----
From: MURATA Makoto [mailto:murata@h...] 
Sent: Sunday, January 16, 2005 12:05 PM
To: xml-dev@l...
Subject:  Announcement of the NVDL FCD

Dear colleagues,

Let me announce the final committee draft of Namespace-based
Validation Dispatching Language (ISO/IEC FCD 19757-4).  NVDL is a
language for dividing a multi-namespace document into single-namespace
fragments and then invoke validators for these fragments.  The main
target of this language is a composite XML document that combines
multiple formats, such as XHTML, SVG, SMIL and XForms.

This language has several ancestors: RELAX Namespace (JIS TR and
ISO/IEC DTR), Modular Namespaces (James Clark), Namespace Switchboard
(Rick Jelliffe), and Namespace Routing Language (James Clark).  NRL 
is the closest ancestor.

ISO/IEC FCD 19757-4 is available at:
  http://www.jtc1sc34.org/repository/0586.pdf
  http://www.asahi-net.or.jp/~eb2m-mrt/dsdl/

Here are some pointers to talks about NVDL.

- Opening keynote speech for SVG Open 2004 (MURATA Makoto) 
  http://www.asahi-net.or.jp/~eb2m-mrt/svgopen/

- Namespace Routing Language (James Clark)
  http://www.thaiopensource.com/relaxng/nrl.html

- XML 2003 session report: Namespace Routing Language (Uche Ogbuji)
  http://www.xmlhack.com/read.php?item=2125

- Combining multiple vocabularies (MURATA Makoto)
  http://www.idealliance.org/proceedings/xml03/slides/murata/murata.ppt

- XML 2003 session report: Combining multiple vocabularies 
  without tears (Uche Ogbuji)
  http://xmlhack.com/read.php?item=2123

Cheers,
-- 
MURATA Makoto <murata@h...>



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://www.oasis-open.org/mlmanage/index.php>





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.