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

From: Costello, Roger L. <costello@mitre.org>
Date: Mon May 12 2008 - 22:31:15 UTC

Hi Folks,

Another "equivalent NVDL" question.

Consider this NVDL which has a mode for "B" nested within the "A" mode:

<?xml version="1.0"?>
<rules startMode="A"
       xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
     <mode name="A">
         <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>

This NVDL has two separate modes; the "A" mode uses mode "B":

<?xml version="1.0"?>
<rules startMode="A"
       xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">
    <mode name="A">
        <namespace ns="http://www.A.org">
            <validate schema="A.xsd"
                      useMode="B" />
        </namespace>
    </mode>
    <mode name="B">
        <namespace ns="http://www.B.org">
            <validate schema="B.rng"/>
        </namespace>
    </mode>
</rules>

Question: Are the two NVDL scripts equivalent?

/Roger

--
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 Tue May 13 00:31:22 2008

This archive was generated by hypermail 2.1.8 : Tue May 13 2008 - 17:03:03 UTC