Hi Dave,
First take care with the usage of the trigger term as trigger is a also
a one of the features of NVDL.
The context element does not participate in the creation of sections, it
just allows more control in specifying what mode should be used for
processing a section depending on the context that section appears in
the parent section.
Your schema fragment below says that if you have a rdf section inside an
xhtml section then the mode that will be used to process that section is
computed as follows:
*if* the last element from the xhtml section is head (that is the
context matches) then it will be used the rdf mode
*else* the current mode will be used
Note that the current mode will have the anyNamespace default rule that
will reject rdf, so rdf inside other elements than head will be rejected.
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Dave Pawson wrote:
> Given
>
> <namespace ns="http://www.w3.org/1999/xhtml">
> <validate schema="xhtml.rng">
> <context path="head"
> useMode="rdf"/>
> </validate>
> </namespace>
>
> does the useMode trigger take effect 'at' the head element,
> or before it, i.e. where is the section boundary?
>
> TIA
>
-- 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 Feb 27 15:23:09 2007
This archive was generated by hypermail 2.1.8 : Tue Feb 27 2007 - 14:33:04 UTC