xsl-list
[Top] [All Lists]

RE: Tricky White Spaces being ignored

2004-03-01 23:32:00
Hi,

That works!
I don't get the difference between:
&#xA

Unicode character point U+000A, i.e. LINE FEED

&#10

Again, U+000A

&#13

U+000D, CARRIAGE RETURN

Has to do with how the client interprets these.  Correct?

If you haven't already, read 
<http://www.w3.org/TR/2004/REC-xml-20040204/#sec-line-ends>.

Cheers,

Jarno - Chric C: The Zurich Mix <http://hardnrg.com/music.php>




-----Original Message-----

The white space is stripped, see 
<http://www.w3.org/TR/xslt#strip>. Wrap the
LINE FEED character into xsl:text:

  <xsl:template match="br">
    <xsl:text>&#xA;</xsl:text>
  </xsl:template>

Cheers,

Jarno




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>