This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Changing colors of eachother line
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Changing colors of eachother line
- From: Berger Dominik LE CH <dominik dot berger at cibasc dot com>
- Date: Tue, 14 Aug 2001 16:22:27 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
thanks rob
that was it!!
Regards!
dom
-----Original Message-----
From: Rob Lugt [mailto:roblugt@elcel.com]
Sent: Tuesday, August 14, 2001 3:40 PM
To: xsl-list@lists.mulberrytech.com
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