[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Entities in Attribute Values
Because entity references are allowed inside ot attribute values, it is not possible to store an unmodified URL with data in an attribute. For example, the following XML is not valid because the '&''s are not escaped inside of SELF's HREF value. <CHANNEL HREF="http://someserver/comics/"> <TITLE>Daily Comics</TITLE> <!-- HEF's value is invalid in SELF because the &'s aren't escaped as & --> <SELF HREF="http://someserver/scripts/oleisapi2.dll/comics.custom.cdf?comics=o n&dilbert=on&calvin=on&peanuts=on" /> </CHANNEL> This makes it inconvenient to store URL's in XML files. Would it anyone be interested in changing entity processing to fix this? xml-dev: A list for W3C XML Developers Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To unsubscribe, send to majordomo@i... the following message; unsubscribe xml-dev List coordinator, Henry Rzepa (rzepa@i...)
|
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
|