Subject: expression comparing node and variable From: Laura Price <lprice@xxxxxxx> Date: Tue, 20 Jun 2000 16:01:57 -0400 |
I'm probably overlooking something simple here... i hope. I have this variable: <xsl:variable name="currentsection>other stuff</xsl:variable> then I have 3 elements: <section>some stuff</section> <section>more stuff</section> <section>other stuff</section> I want them to appear as <section>some stuff</section> <section>more stuff</section> <highlight><section>other stuff</section></highlight> I've put in my stylesheet: <xsl:for-each select="section"> <xsl:choose> <xsl:when test="section=$currentsection"> <highlight><xsl:value-of select="section"/></highlight> </xsl:when> <xsl:when test="not(section=$currentsection)"> <xsl:value-of select="section"/> </xsl:when> </xsl:choose> </xsl:for each but the first <xsl:when> stuff never gets executed... have i messed up the expressions, or is it something else? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: testing for existence of variab, Jeni Tennison | Thread | Re: expression comparing node and v, Eric van der Vlist |
Re: XSL Question, Warren Hedley | Date | RE: How is this part of the XSLT sp, Paul_Dick |
Month |