Subject: [xsl] help with an 'or' From: Jennifer Pollard <jp337@xxxxxxxxx> Date: Tue, 25 Nov 2008 13:02:11 +0000 |
<xsl:attribute name="value"><xsl:value-of select="$loop-variable"/></xsl:attribute> <xsl:if test="$loop-variable = $curpage"> <xsl:attribute name="selected">true</xsl:attribute> </xsl:if>
<xsl:choose> <xsl:when test="$loop-variable = 1"> <xsl:value-of select="translate(translate(substring-after (//facsimile/surface[@n=$loop-variable]/@xml:id, 'f_'),'_',' '),'_',' ')"/> </xsl:when>
<xsl:when test="($loop-variable = $loop-limit) and ((($loop-variable * 2) - 2) mod 2 = 0)"> <xsl:value-of select="translate(substring-after (//facsimile/surface[@n=(($loop-variable * 2) - 2)]/@xml:id, 'f_'),'_',' ')"/> </xsl:when>
<xsl:otherwise> <xsl:value-of select="translate(substring-after (//facsimile/surface[@n=(($loop-variable * 2) - 2)]/@xml:id, 'f_'),'_',' ')"/> - <xsl:value-of select="translate(substring-after (//facsimile/surface[@n=(($loop-variable * 2) - 1)]/@xml:id, 'f_'),'_',' ')"/> </xsl:otherwise> </xsl:choose>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Calling all XSLT developers: , Diane Mueller | Thread | re: [xsl] help with an 'or', Vladimir Nesterovsky |
[xsl] layered lists, Szabo, Patrick (LNG- | Date | [xsl] Grouping based on element con, Ganesh Babu N |
Month |