2008/5/12 George Cristian Bina <george@oxygenxml.com>:
> You should think of NVDL in terms of XSLT processing, the rules can be
> thought as XSLT templates. In fact, in the XSLT 2.0 implementation of the
> NVDL dispatching from oNVDL they are converted exactly to templates.
>
> Here it is what the oNVDL XSLT 2.0 implementation does if we take the A
> inside B sample:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <b xmlns="http://www.B.org">
> <a xmlns="http://www.A.org"/>
> </b>
>
> It creates the namespace sections putting a section element for each
> namespace:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <n:section xmlns:n="http://www.oxygenxml.com/nvdl" ns="http://www.B.org">
> <b xmlns="http://www.B.org">
> <n:section ns="http://www.A.org">
> <a xmlns="http://www.A.org"/>
> </n:section>
> </b>
> </n:section>
>
> The NVDL script
>
>
> <?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" />
> </namespace>
>
> <namespace ns="http://www.B.org">
> <validate schema="B.rng"/>
> </namespace>
> </mode>
> </rules>
>
> is converted automatically by an XSLT stylesheet into the following
> stylesheet, note the templates matching sections for each namespace:
<snip/>
Which does make it easier for me to understand. Thanks George.
It does make me wonder what purpose the startMode attribute serves?
If it is *not* the 'first' (in document order), then why is it there?
regards
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk -- 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 16:06:19 2008
This archive was generated by hypermail 2.1.8 : Mon May 12 2008 - 14:38:02 UTC