Re: [xsl] Changing colors of eachother line

Subject: Re: [xsl] Changing colors of eachother line
From: "Rob Lugt" <roblugt@xxxxxxxxx>
Date: Tue, 14 Aug 2001 14:40:21 +0100
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


Current Thread