Subject: Re: [xsl] generalisation of template From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Fri, 18 Jan 2002 11:11:07 +0000 |
Hi Andrew, > I think I need to test that substring-after really is a number as my > templates that match 'mplhead' and 'mpldata' are no longer being > matched/called. What is the best way of doing this? > > number(substring-after(name(), 'mpl')>=0 Yes, that's probably the best way (I forgot that you need to match mpl0 as well - sorry). Either that, or you have separate templates for mplhead and mpldata, and give them a higher priority (e.g. 1) so that they're matched in preference to the mplN elements. That would probably be cleaner and less work for the processor. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] generalisation of templat, Andrew Welch | Thread | [xsl] Problem with Jaxen, Jakub . Valenta |
[xsl] newbie - problem with sum, Hesselberth, Jan | Date | Re: [xsl] newbie - problem with sum, Joerg . Heinicke |
Month |