|
Subject: Re: [xsl] applying templates to all but ... From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Fri, 24 Sep 2004 11:42:28 -0400 |
Except the [1] you put near the end is saying to use the first in the list; right?
yes or no (depending on what you mean) It doesn't take the first in
_that_ list there would be no point in doing ('article-newspaper','article')[1]
as that's just a long way of writing 'article-newspaper' it takes teh
first element in the sequence of cs:reftype nodes obtained by selecting
the cs:reftypes with name attribute equal to an item in the list.
<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.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] applying templates to all, Michael Kay | Thread | Re: [xsl] applying templates to all, David Carlisle |
| [xsl] fop table processing error, James Steven | Date | Re: [xsl] applying templates to all, David Carlisle |
| Month |