[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: me escape logic escapes me
Aaron Miller wrote: > I've noticed that when I use & entity as part of a value in a > <xsl:attribute name="src"> node, nameley for a dynamic URL with encoded > parameters, the parser By parser I assume you mean an XSLT processor. > refuses to change it to a "&" character. As well it shouldn't, when emitting HTML or XML, since an HTML user agent reading such a document is required to treat & in attribute values and character data as '&', just as an XML parser must also do. Someone pointed to an example of one WML minibrowser that didn't handle this properly, but so far that's the only example I've heard of where you ever really needed to write '&' instead of '&' in an attribute value, even for a URI. HTML was wrong to allow people to ever use '&' for anything other than the beginning of an entity reference. XML fixes that. - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://www.skew.org/xml/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|