[dsdl-comment] Re: Are these two NVDL documents equivalent? (nested mode versus independent modes)

From: George Cristian Bina <george@oxygenxml.com>
Date: Tue May 13 2008 - 18:20:14 UTC

Hi Roger,

They are equivalent.
You can specify the mode to be used further by an action either with the
useMode attribute or with a nested mode element. If no mode usage is
specified the same mode will be used.

Regards,
George

--
George Cristian Bina
http://www.oxygenxml.com
Costello, Roger L. wrote:
> Hi Folks,
> 
> Can you tell me whether or not these two versions are equivalent?
> 
> VERSION #1
> 
> This 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>
> 
> 
> VERSION #2
> 
> This 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>
> 
> /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=subscribe)
> 
--
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 20:20:22 2008

This archive was generated by hypermail 2.1.8 : Tue May 13 2008 - 22:43:02 UTC