Subject: Re: [xsl] applying templates to all but ... From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 24 Sep 2004 14:03:00 +0100 |
This <xsl:when test="$issuance = 'continuing'"> <xsl:choose> <xsl:when test="$style-biblio/cs:reftype[@name='article-newspaper']"> <xsl:apply-templates select="$style-biblio/cs:reftype[@name='article-newspaper']/cs:*"> <xsl:with-param name="source" select="."/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="$style-biblio/cs:reftype[@name='article']/cs:*"> <xsl:with-param name="source" select="."/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:when> could be written as <xsl:when test="$issuance = 'continuing'"> <xsl:apply-templates select="$style-biblio/(for $t in ('article-newspaper','article') return cs:reftype[@name=$t])[1]/cs:*"> </xsl:when> and I suspect the outer choose could be simplified as well although I haven't follwed all your logic. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] applying templates to all, Bruce D'Arcus | Thread | Re: [xsl] applying templates to all, Bruce D'Arcus |
[xsl] RE: xsl-list Digest 24 Sep 20, Paria Heidari | Date | [xsl] Re: xsl-list Digest 24 Sep 20, David Carlisle |
Month |