W3C home > Mailing lists > Public > public-i18n-its@w3.org > October to December 2006

Re: What is possible in XSLT patterns

From: Sebastian Rahtz <sebastian.rahtz@oucs.ox.ac.uk>
Date: Wed, 13 Dec 2006 10:13:44 +0000
Message-ID: <457FD258.7070806@oucs.ox.ac.uk>
To: Martin Duerst <duerst@it.aoyama.ac.jp>
CC: fsasaki@w3.org, Yves Savourel <yves@opentag.com>, public-i18n-its@w3.org

Martin Duerst wrote:
> If you want a template to be selected with a particular,
> complicated nodeset expression (whatever can go into a
> apply-templates@select, http://www.w3.org/TR/xslt#element-apply-templates),
> I think it should always work (except for namespace nodes) by
> having
> <xsl:apply-templates select="complicate expression" mode="unique value"/>
> <xsl:template match="simplified pattern" mode="unique value">
>   ...whatever
> </xsl:template>
>   
The way I apply ITS is to take each rule
and turn it into an XSL "match" template.
Then process the document with that template,
so each element is processed in document order.
If I change this to turn each ITS rule into

 <apply-templates select="">

expressions, I would stop processing in document
order, surely?

If XSLT had an in memory tree which you could
manipulate, it would work. but unfortunately....

Sebastian
Received on Wednesday, 13 December 2006 10:13:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:12:48 GMT