Subject: [xsl] Value at position() From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx> Date: Tue, 3 Feb 2004 18:01:33 +0100 |
Hi all, A little issue, which I am unable to resolve. I am matching my cat against value A, B and C at position()=last()-2. If it finds it, it displays that positioned value. In the following example, I expect the value of position()=last()-2 only. Any suggestions? Regards, <xsl:variable name="doc_cat"> <xsl:for-each select="cat"> <xsl:choose> <xsl:when test="(position()=last()-2='A') or (position()=last()-2='B') or (position()=last()-2='C')"> <xsl:value-of select="."/> </xsl:when> </xsl:choose> </xsl:for-each> </xsl:variable> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: RE: [xsl] How to strip out a pa, cknell | Thread | RE: [xsl] Value at position(), SHEIKH Sajjad |
RE: RE: [xsl] How to strip out a pa, cknell | Date | Re: [xsl] XSLT vs Perl, David Tolpin |
Month |