[dsdl-comment] Can someone check this NVDL quickly?

From: Rick Jelliffe <rjelliffe@allette.com.au>
Date: Wed Jun 04 2008 - 15:04:21 UTC

If someone can quickly check this, it would be great.

For a blog entry, and the possible interest of the ODF people, I want to
show an example NVDL script that declares the ODF requirement that
foreign namespace elements are stripped out before validation: they can
be interleaved etc in the original document. This is a very broad schema
that allows any kind of ODF-defined namespace element.

Even if this is correct, is there a better way to do it?

Cheers
Rick

<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0" startMode="root">

  <mode name="root">
    <!-- Validation for content.xml -->
    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:office:1.0">
      <validate schema="super-odf.rng"
                useMode="odf"/>
    </namespace>
  </mode>

  <mode name="odf">
    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:office:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:meta:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:config:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:table:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:animation:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:chart:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:form:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:script:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:style:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:data style:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0">
      <attach/>
    </namespace>

    <namespace ns="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0">
      <attach/>
    </namespace>

    <namespace ns="http://purl.org/dc/elements/1.1/">
      <attach/>
    </namespace>

    <namespace ns="http://www.w3.org/1999/xlink">
      <attach/>
    </namespace>

    <namespace ns="http://www.w3.org/1998/Math/MathML">
      <attach/>
    </namespace>

    <namespace ns="http://www.w3.org/2002/xforms">
      <attach/>
    </namespace>

    <namespace ns="http://www.w3.org/2001/xml-events">
      <attach/>
    </namespace>

    <namespace ns="http://openoffice.org/2004/office">
      <attach/>
    </namespace>

    <namespace ns="http://openoffice.org/2004/writer">
      <attach/>
    </namespace>

    <namespace ns="http://openoffice.org/2004/calc">
      <attach/>
    </namespace>
 
    <namespace ns="*">
      <unwrap/>
    </namespace>
  </mode>

</rules>

--
DSDL comments
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-comment-request@dsdl.org
(mailto:dsdl-comment-request@dsdl.org?Subject=unsubscribe)
Received on Wed Jun 4 17:03:10 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 04 2008 - 18:53:01 UTC