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

From: Costello, Roger L. <costello@mitre.org>
Date: Sun May 11 2008 - 17:10:00 UTC

Hi Dave,

I tested both versions using oNVDL and both permit:

<A>
   <B/>
</A>

and

<B>
   <A/>
</B>

/Roger

> -----Original Message-----
> From: dsdl-comment-bounce@dsdl.org
> [mailto:dsdl-comment-bounce@dsdl.org] On Behalf Of Dave Pawson
> Sent: Sunday, May 11, 2008 10:08 AM
> To: dsdl-comment@dsdl.org
> Subject: [dsdl-comment] Re: Are these two NVDL documents
> equivalent? (one usesa mode, the other doesn't use a mode)
>
> 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)
>
>

--
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 19:11:08 2008

This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 06:43:02 UTC