[dsdl-discuss] Re: Namespace Routing Langua

From: MURATA Makoto <murata@hokkaido.email.ne.jp>
Date: Tue Oct 07 2003 - 15:13:32 UTC

On 3 Oct 2003 14:03:05 +0900
EB2M-MRT@asahi-net.or.jp (Murata Makoto) wrote:

> Then, we need
>
> html validate#2 (invoking unwrap#2)
> xform validate#1 (invoking unwrap#1_1)
> and unwrap#2 (invoking attach#2_1)
> html attach#2_i (invoking unwrap#2_i))
> and unwrap#1_i (invoking attach#1_i)
> xform attach#1_i (invoking unwrap#1_(i+1) )
> and unwrap#2_i (invoking attach#2_(i+1))
>
>
> This can be captured by NRL

No, it cannot. I tried the following schema, but it is incorrect since
the schema for NRL does not allow more than one <attach> or <unwrap>
element within a single <namespace> element.

<?xml version="1.0" encoding="UTF-8"?>
<rules startMode="root" xmlns="http://www.thaiopensource.com/validate/nrl">
    <mode name="root">
        <namespace ns="http://www.w3.org/2002/06/xhtml2">
           <validate schema="xhtml2.rng"
                useMode="nested"/>
        </namespace>
        <namespace ns="http://www.w3.org/2002/xforms">
            <validate schema="XForms-Schema.xsd" useMode="nested"/>
            <unwrap useMode="nested"/>
        </namespace>
    </mode>
    <mode name="nested">
        <namespace ns="http://www.w3.org/2002/06/xhtml2">
           <attach/>
           <unwrap/>
        </namespace>
        <namespace ns="http://www.w3.org/2002/xforms">
           <attach/>
           <unwrap/>
        </namespace>
    </mode>
</rules>

-- 
MURATA Makoto <murata@hokkaido.email.ne.jp>
--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Tue Oct 7 17:18:11 2003

This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 14:00:27 UTC