[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|