OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Entities in Attribute Values

[ Lists Home | Date Index | Thread Index ]
  • From: David Schach <davidsch@microsoft.com>
  • To: xml-dev@ic.ac.uk
  • Date: Thu, 12 Jun 1997 18:25:07 -0700

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 &amp; -->

	<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@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS