[dsdl-comment] Re: Are these two NVDL documents equivalent? (one uses a mode, the other doesn't use a mode)

From: Dave Pawson <dave.pawson@gmail.com>
Date: Sun May 11 2008 - 14:07:50 UTC

2008/5/11 Costello, Roger L. <costello@mitre.org>:
> Hi Folks,
>
> Consider the following two NVDL documents.
>
>
> This version has a single mode containing rules for namespace A and
> namespace B:
>
> <?xml version="1.0"?>
> <rules startMode="start"
> xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
> <mode name="start">
> <namespace ns="http://www.A.org">
> <validate schema="A.xsd" />
> </namespace>
> <namespace ns="http://www.B.org">
> <validate schema="B.rng"/>
> </namespace>
> </mode>
> </rules>

The outer 'wrapper' must be in the A namespace

>
>
> This version doesn't use modes. It has a rule for namespace A and
> namespace B.
>
> <?xml version="1.0"?>
> <rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
> <namespace ns="http://www.A.org">
> <validate schema="A.xsd" />
> </namespace>
> <namespace ns="http://www.B.org">
> <validate schema="B.rng"/>
> </namespace>
> </rules>

This one could have
 A
  B
or

B
  A

namespaces?

So No, IMHO

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
--
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 Sun May 11 16:07:56 2008

This archive was generated by hypermail 2.1.8 : Sun May 11 2008 - 17:13:02 UTC