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>
Best Regards,
George
-- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Dave Pawson wrote: > 2008/5/11 Costello, Roger L. <costello@mitre.org>: >> Hi Dave, >> >> I tested both versions using oNVDL and both permit: >> >> <A> >> <B/> >> </A> >> >> and >> >> <B> >> <A/> >> </B> >> >> >> /Roger > > > Which seems wrong to me, since the first mode is the A ns wrapper. > Why doesn't that fail with the second example? > > regards > > > -- 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 09:12:41 2008
This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 22:33:02 UTC