[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: generalisation of template
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|