Re: Processing modes

Subject: Re: Processing modes
From: Lars Marius Garshol <larsga@xxxxxxxxxx>
Date: 15 Apr 1999 15:29:01 +0200
* Lars Marius Garshol
|
| My understanding of processing modes is that 
| 
|   <xsl:apply-templates modes="by-number"/>
| 
| should only apply template rules that have the by-number mode and
| ignore all template rules that have no mode.

Alistair MacDonald has now kindly solved the problem for me. As James
pointed out, what I posted above is correct, but it turns out that
when I match on "/" I'm still not inside my root element, so I need to
have a rule for the root element that passes on my mode or else the
built-in rules will kick in and remove my mode.

Actually, another solution, which I like better, is to explicitly
match on the root element so that the template rule works 'inside'
that element instead of 'outside' it, which I feel is more natural.

Heartfelt thanks to Alistair for this.
--Lars M.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread