RE: [xsl] xsl:variable with hex color values

Subject: RE: [xsl] xsl:variable with hex color values
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 22 May 2005 17:29:13 +0100
> >Another solution to add to the list you've been given: In 
> XSLT 2.0 you can
> >do
> >
> ><td bgcolor="{if (position() mod 2) then 'black' else 'white'}">
> 
> I've tried the solution you've mentioned and got "Error loading 
> stylesheet: Parsing an XPath expression failed".

Were you using an XSLT 2.0 processor?

Michael Kay
http://www.saxonica.com/

Current Thread