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]
XML Quiz

Hi Folks,

In a previous post I asked: 

What stage should the entity & be converted to &?
(a)	Lexical analysis stage
(b)	Syntax analysis stage
(c)	Semantic analysis stage

One person suggested that entities can be converted even before the lexical analysis stage, in a preprocessor stage -- analogous to the way a C preprocessor replaces macro definitions.

Question: Are there any problems with converting all entities in a preprocessor stage?

See answer below .........














Answer: If you were to convert all entities, then that would result in converting this:

	<![CDATA[&amp;]]>

to this:

	<![CDATA[&]]>

And that would be incorrect.

Thanks to Matt Timmermans for pointing this out to me.

/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