Subject: RE: Carriage returns within attribute values
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Fri, 24 Sep 1999 13:07:27 -0600
|
Sébastien Bouchet wrote:
> I tried to change the XML file : <elt att="firstword
> secondword">
> But it doesn't help : the \n is processed like a white space.
> Is there a standard way to achive this goal, a kind of
> <elt att="firstword\nsecondword"> ?
No, because whitespace in attribute values is collapsed to a single space,
and leading & trailing whitespace is removed, according to section 3.3.3 of
the XML 1.0 spec.
See http://www.w3.org/TR/1998/REC-xml-19980210.html#AVNormalize
Yet another one for the "when to use elements instead of attributes" FAQ...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|