[dsdl-comment] Re: nrl -> nvdl conversion

From: George Cristian Bina <george@oxygenxml.com>
Date: Wed Feb 28 2007 - 12:04:11 UTC

Yes, see above in the same document:
http://www.thaiopensource.com/relaxng/nrl.html#Built-in_modes

In NVDL you can have a nested mode like below:
<validate schema="edit.rnc" schemaType="application/x-rnc">
  <mode>
   <anyNamespace>
    <allow/>
   </anyNamespace>
  </mode>
</validate>
and so on.
Or you can define a named mode, allowAnything for instance and use that
instead of #allow.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Dave Pawson wrote:
> http://www.thaiopensource.com/relaxng/nrl.html#Transparent_namespaces
>
> last schema in section 14.
>
> I'm trying to see what that would look like in nvdl.
> AFAIK useMode='#allow' is the same
> as
> <anyNamespace>
> <allow/>
> </anyNamespace>
>
> Is that right please?
>
> tia DaveP
>
>
>
> <rules startMode="root"
> xmlns="http://www.thaiopensource.com/validate/nrl">
> <mode name="root">
> <namespace ns="http://www.w3.org/1999/xhtml">
> <validate schema="xhtml.rng"
> useMode="new"/>
> <validate schema="xhtml.rng"
> useMode="old"/>
> </namespace>
> </mode>
> <mode name="new"
> extends="noEdit">
> <namespace ns="http://www.example.org/edit">
> <validate schema="edit.rnc"
> schemaType="application/x-rnc"
> useMode="#allow"/>
> <unwrap useMode="noEdit">
> <context path="deleted"
> useMode="#allow"/>
> </unwrap>
> </namespace>
> </mode>
> <mode name="old"
> extends="noEdit">
> <namespace ns="http://www.example.org/edit">
> <unwrap useMode="noEdit">
> <context path="inserted"
> useMode="#allow"/>
> </unwrap>
> </namespace>
> </mode>
> <mode name="noEdit">
> <namespace ns="http://www.w3.org/1999/xhtml">
> <attach/>
> </namespace>
> </mode>
> </rules>
>
>
>

--
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 Wed Feb 28 13:05:32 2007

This archive was generated by hypermail 2.1.8 : Wed Feb 28 2007 - 12:13:02 UTC