-----Original Message-----
From: dsdl-comment-bounce@dsdl.org [mailto:dsdl-comment-bounce@dsdl.org]
On Behalf Of Dave Pawson
Sent: 10 August 2007 13:01
To: dsdl-comment@dsdl.org
Subject: [dsdl-comment] Re: context element.[Scanned]
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) -- 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 Aug 13 22:45:29 2007
This archive was generated by hypermail 2.1.8 : Tue Aug 14 2007 - 00:03:05 UTC