sedj
Programmer
- Aug 6, 2002
- 5,610
Hi, is there any way to tell the <xsl:text> directive not to output any whitespace.
I am try to generate an HTML <img> tag ...
When I use :
the output is :
and in order to have it appear on one line, I use this :
... which produces the desired output, but this is not very readable - is there a better way ?
Cheers
Ben
I am try to generate an HTML <img> tag ...
When I use :
Code:
<xsl:text disable-output-escaping="yes">
<img src="
</xsl:text>
<xsl:value-of select="."/>
<xsl:text disable-output-escaping="yes">
"/>
</xsl:text>
the output is :
Code:
<img src="
file://C:\java\xslt\px_logo.gif
"/>
and in order to have it appear on one line, I use this :
Code:
<xsl:text disable-output-escaping="yes">
<img src="</xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes">"/>
</xsl:text>
... which produces the desired output, but this is not very readable - is there a better way ?
Cheers
Ben