W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

Re: new line handling (DOMBuilder and DOMSerializer)

From: John Cowan <cowan@mercury.ccil.org>
Date: Mon, 4 Aug 2003 21:20:44 -0400
To: Christian Parpart <cparpart@surakware.net>
Cc: www-dom@w3.org
Message-ID: <20030805012044.GF14299@mercury.ccil.org>

Christian Parpart scripsit:

> we got a serious problem on de.comp.text.xml about newline handling inside 
> XSLT.
> 
> <xsl:text>
> </xsl:text>
> <xsl:text>&#10;</xsl:text>
> <xsl:text>&#10;&#13;</xsl:text>
> <xsl:text>&#13;/>

The first two generate a literal #x10 as the content, the second generates
an #x10 followed by an #x13, and the last generates an #x13 only.
Newline normalization is *not* done when the characters are represented
by character references.

-- 
It was dreary and wearisome.  Cold clammy winter still held way in this
forsaken country.  The only green was the scum of livid weed on the dark
greasy surfaces of the sullen waters.  Dead grasses and rotting reeds loomed
up in the mists like ragged shadows of long-forgotten summers.
        --"The Passage of the Marshes"          http://www.ccil.org/~cowan
Received on Monday, 4 August 2003 21:23:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT