This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: 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