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

From: Dave Pawson <dave.pawson@gmail.com>
Date: Mon May 12 2008 - 12:30:31 UTC

Hi George.

2008/5/12 George Cristian Bina <george@oxygenxml.com>:
> Hi Dave,
>
> No, any namespace can appear first, any of the two namespace rules can
> match the initial section. To have B allowed only inside A then you need
> something like below:
>
>
> <?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" >
> <mode>
>
> <namespace ns="http://www.B.org">
> <validate schema="B.rng"/>
> </namespace>
> </mode>
> </validate>
> </namespace>
> </mode>
> </rules>

Doh!

Obvious... when I'm told about it :-(

I was thinking procedurally, that the mode indicated from the
startMode *must* come first for validity.

I find my reasoning here 'intuitively' right (even if wrong!!!)

Thanks George.

-- 
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 Mon May 12 14:30:37 2008

This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 14:23:01 UTC