[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: applying templates to all but ...
On Sep 24, 2004, at 9:59 AM, David Carlisle wrote:
Except the [1] you put near the end is saying to use the first in the list; right? So if I have five in the list, and I want all of the first four that are present in the config file to be applied first, and the last (article) only, well, last (because it is the fallback)? I use the same syntax? Actually, the optional types only get applied from this template if they do not contain an "inherit-from" attribute. Does that change how you'd code it? Here's what you had: <xsl:apply-templates select="$style-biblio/(for $t in ('article-newspaper','article') return cs:reftype[@name=$t])[1]/cs:*"> ... in practice you'd want to put the list into a variable or pull it from a config file or something. ..... and what would, say, the variable actually look like? Bruce
|
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
|