[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: generalisation of template

Subject: Re: generalisation of template
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 18 Jan 2002 11:11:07 +0000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.