[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Carriage returns within attribute values

Subject: RE: Carriage returns within attribute values
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Fri, 24 Sep 1999 13:07:27 -0600
carriage returns xml attribute
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.