|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Whitespace problem in IE5
FYI:
I managed to work around the problem in IE5 with some help from MSDN (see
Controlling Whitespace :
http://msdn.microsoft.com/xml/xslguide/xsl-whitespace.asp ).
If you want to preserve the whitespace in your source document you have to
specify the following attribute for those source document elements with
whitespace, for example:
<sourceline xml:space="preserve">
This passes the whitespace through to the stylesheet.
However, it seems that in IE5 the <xsl:value-of> element strips the leading
whitespace. When I looked at the text value of the <sourceline> node using
Jscript and the DOM I found a workaround.
<xsl:template match="sourceline">
<xsl:eval> getText(this) </xsl:eval>
</xsl:template>
<xsl:script><
Cart








