Subject: Re: [xsl] testing for numbers of nodes From: Charles Muller <cmuller-lst@xxxxxxxxxxxxxxx> Date: Sun, 11 May 2008 00:32:18 +0900 |
Charles Muller wrote:Can someone perhaps see what is wrong with this?
I think you need to move the count check outside of the for-each e.g. <xsl:choose> <xsl:when test="count(sense) > 1"> <xsl:for-each select="sense"> (<xsl:number format="I"/>)<xsl:apply-templates /> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose>
Toyo Gakuen University Faculty of Humanities 1-26-3 Hongo, Bunkyo-ku Tokyo 113-0033 JAPAN Mobile Phone: 090-9310-1787
Web Site: Resources for East Asian Language and Thought http://www.acmuller.net
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] testing for numbers of no, Martin Honnen | Thread | RE: [xsl] testing for numbers of no, Michael Kay |
Re: [xsl] InnerElement attribute ne, Mukul Gandhi | Date | RE: [xsl] testing for numbers of no, Michael Kay |
Month |