RE: [xsl] Changing colors of eachother line

Subject: RE: [xsl] Changing colors of eachother line
From: Berger Dominik LE CH <dominik.berger@xxxxxxxxxx>
Date: Tue, 14 Aug 2001 16:22:27 +0200
thanks rob

that was it!!

Regards!

dom

-----Original Message-----
From: Rob Lugt [mailto:roblugt@xxxxxxxxx]
Sent: Tuesday, August 14, 2001 3:40 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Changing colors of eachother line 


Berger Dominik wrote
>
> i ve got a problem, i will make out of a xml-file a html-file with xsl. in
> the xml-file there are many fields, some of them have the value 'null'. i
> will display each second field with the same color in the html output.
> but i will not display the fields with the value 'null' so i cannot use
the
> position() function.

You could use the position() function if you changed your template to only
select the appropriate nodes like so:-

<xsl:template match="row">
 <xsl:apply-templates select="field[normalize-space(.) != 'null' and
normalize-space(.)!='']"/>
 ...

Hope this helps.

~Rob

--
Rob Lugt
ElCel Technology
http://www.elcel.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread