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

RE: more elegant way to process element with default v

Subject: RE: more elegant way to process element with default value?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 13 Jun 2003 23:11:04 +0100
RE:  more elegant way to process element with default v
> Umm... I just looked this up in the XML 1.0 spec (3.3.3 Attribute-Value
> Normalization) and I don't understand how it is reconciled with what you said...

I think it's fair to assume that if there's a discrepancy between what I
said and what's in the spec, then the spec is right (blame it on my lack
of typing skills:-)

attribute value normalisation goes through a sequence of slightly
bizarre steps which I didn't want to go into so simplified greatly but
the end result most of the time is that newlines in attribute values get
reported as spaces, this is why, in XSLT if you go
<xsl:attribute name="x">
it will get output as

(with & not @ I substitued to avoid some stupid mailers interpretting
the character refs)  This attribute, because the newlines are quoted
has newlines in its value, but

which you might expect to be the result of the xsl:attribute would not
work as the xml parse will report those as spaces not newlines.


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

Current Thread


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.
First Name
Last Name
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.