|
next
|
 Subject: XML / XSL DOM Problem Author: Minollo I. Date: 28 Dec 2005 04:19 PM
|
Two different questions.
If you don't want to escape output, you'll neet to let the XSLT processor know:
<xsl:value-of select="something" disable-output-escaping="yes"/>
About whitespaces/newlines in the XSLT output to the result: XSLT processors will ignore any ignorable whitespace.
So, something like...
<xsl:value-of .../>
<xsl:value-of .../>
...will not output any newline, because the whitespace between the two instructions can be ignored. On the other hand, if you do:
<xsl:value-of .../>,
<xsl:value-of .../>
...will output a comma followed by two newlines, because the whitespaces cannot be ignored. If you don't want to do...
<xsl:value-of .../>,<xsl:value-of .../>
...you could do...
<xsl:value-of .../>
<xsl:text>,<xsl:text/>
<xsl:value-of .../>
In neither case you'll have a newline output to the result.
As a suggestion for the future, a good place for general XSLT-specific questions is the xsl-list at http://www.mulberrytech.com/xsl/xsl-list/index.html
Hope this helps,
Minollo
|
|
|