XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Why is < illegal in an attribute value but theequivalent hex and decimal character entities are legal?

In response to my question:

1. Why is it that < is illegal but the equivalent hex
and decimal character entities are legal?

Liam Quin answered:

Because numeric character references are always 
treated as data when they are read, not markup.

Ah!!!!!!!!!!

So this is perfectly well-formed XML:

<Test foo="&#x3C;x>blah&#x3C;/x>"/>

And the numeric character references will be replaced during the parsing process to yield this:

<Test foo="<x>blah</x>"/>

Correct?

/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS