Hi Tim, What's the version of Xalan you're using?
Thanks, Dimitry -----Original Message----- From: Tim Cronin [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 08:29 To: [EMAIL PROTECTED] Subject: xsl behaviour given the following Stylesheet <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <FONT> <xsl:apply-templates select="/Properties/[EMAIL PROTECTED]'Data Properties']/[EMAIL PROTECTED]'Font']/Font"/> <xsl:attribute name="color"><xsl:if test="[EMAIL PROTECTED]'QuantityShort']<0">Red</xsl:if></xsl:attribute> <xsl:value-of select="[EMAIL PROTECTED]'QuantityOnOrder']"/> </FONT> </xsl:template> <xsl:template match="Font"> <xsl:attribute name="face"><xsl:value-of select="@Family"/></xsl:attribute> <xsl:attribute name="color"><xsl:value-of select="@Color"/></xsl:attribute> <xsl:attribute name="style">font-size:<xsl:value-of select="@Size"/>; font-style:<xsl:value-of select="@Style"/>;font-weight:<xsl:value-of select="@Weight"/>;</xsl:attribute> </xsl:template> </xsl:stylesheet> I get a transformation warning saying that "Attribute color is outside of element" refering to this line: <xsl:attribute name="color"><xsl:if test="[EMAIL PROTECTED]'QuantityShort']<0">Red</xsl:if></xsl:attribute> the problem is within the font section <FONT> <xsl:apply-templates select="/Properties/[EMAIL PROTECTED]'Data Properties']/[EMAIL PROTECTED]'Font']/Font"/> <xsl:attribute name="color"><xsl:if test="[EMAIL PROTECTED]'QuantityShort']<0">Red</xsl:if></xsl:attribute> <xsl:value-of select="[EMAIL PROTECTED]'QuantityOnOrder']"/> </FONT> under MS this worked OK... should I be able to do this? _____________________________________________________ Revere Data, LLC, formerly known as Sector Data, LLC, is not affiliated with Sector, Inc., or SIAC.
