[dsdl-comment] Re: context element.

From: Dave Pawson <dave.pawson@gmail.com>
Date: Fri Aug 10 2007 - 11:45:29 UTC

Hi Jirka.

On 10/08/07, Jirka Kosek <jirka@kosek.cz> wrote:

> Might be the following example could help:
>
> http://jnvdl.sourceforge.net/tutorial.html#d4e288

>From which

The context element is in particular useful when we like to allow a
embedded vocabulary to occur just in a certain context of the parent
vocabulary. Let's consider we have a XHTML document which can contain
some meta-data expressed using RDF. As meta-date are not intended to
be rendered, we don't want them to occur in the document's body.

So rather than despatching on the rdf namespace, it is further constrained
by the context... which is quite similar to Ricks description for
Schematron! Spooky.

 <validate schema="xhtml.rng">
        <context path="head"
                 useMode="rdf"/>
      </validate>

 <mode name="rdf">
....

So the transition will only occur (the mode is constrained to?) when the current
context (as per xslt context) matches local-name() = 'head' in the
'current' namespace.

Certainly makes sense.

Thanks Jirka... and Petr?

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 Fri Aug 10 13:45:46 2007

This archive was generated by hypermail 2.1.8 : Fri Aug 10 2007 - 12:23:03 UTC