This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: compare two values
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] compare two values
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 7 Aug 2001 16:33:14 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> but i have another structure and have to keep it. is there
> another solution
> which corresponds to the following xsl?
I've forgotten the original question, but the answer is something like
test="ArtNr != preceding-sibling::row[1]/ArtNr"
Mike Kay
Software AG
>
> <xsl:template match="row" >
>
> <tr>
>
> <xsl:if test=" ?????">
> ^^^^^^
> <th class="result">
> <xsl:value-of select="Art_nr"/>
> </th>
> </xsl:if>
>
> </tr>
> </xsl:template>
>
> jan
>
>
>
>
>
>
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Michael Kay
> Sent: Dienstag, 7. August 2001 14:49
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] compare two values
>
>
> > i want to compare the value of <Art_nr> in one row with this,
> > which is in
> > the row before. if they are similar, i want to show
> something, if not
> > nothing should happen.
>
> <xsl:if test=". =
> parent::row/preceding-sibling::row[1]/Art_nr">something</xsl:if>
>
> with Art_nr as the context node.
>
> Mike Kay
> Software AG
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list