OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Compound Documents? RE: [xml-dev] Announcement of the NVDL FCD

[ Lists Home | Date Index | Thread Index ]

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@hokkaido.email.ne.jp] 
Sent: Sunday, January 16, 2005 12:05 PM
To: xml-dev@lists.xml.org
Subject: [xml-dev] 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@hokkaido.email.ne.jp>



-----------------------------------------------------------------
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>








 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS