Re: [xsl] XSL Browser Integration? Spacing Within Attributes?

Subject: Re: [xsl] XSL Browser Integration? Spacing Within Attributes?
From: Alice Ju-Hsuan Wei <ajwei@xxxxxxxxxxx>
Date: Fri, 14 Sep 2007 18:09:42 -0400

Just as this discsussion is heatedly going on, I have a different question also relevant to browsers.

I have been using a lot of <xsl:attribute name="something"> in my XSLT when I am calling different templates with various output consequences. For example, I would be using something like

<xsl:attribute name="color">
<xsl:value-of select="substring-after($font,'bold')"/>
<xsl:attribute name="weight">750 </xsl:attribute>
<xsl:attribute name="size">3</xsl:attribute>


This works, of course.

However, there is a problem. When I am opening up the "Transformed into HTML" content with Internet Explorer, the color gets a little "dis-oriented." For example, red would become green, navy becomes black, etc. I noticed that the transformed output from the XSLT generates a space between each of the attributes. So the output of <font color="red"> would display something like <font color=" red "> This only occurs with some of the 16 basic colors, and only on the IE. The HTML code shows the same spacing in between the attributes, but it does not affect the output. Anyone knows how I can solve this issue?


Current Thread