[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: applying templates to all but ...
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 ________________________________________________________________________
|
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
|