Re: Fwd: Regarding the "Mixed" production of both XML 1.0 and 1.1 specifications

Paul Grosso scripsit:

> And the following mixed element declaration examples are given:
> 1) <!ELEMENT p (#PCDATA|a|ul|b|i|em)*>
> 2) <!ELEMENT p (#PCDATA | %font; | %phrase; | %special; | %form;)* >
> 3) <!ELEMENT b (#PCDATA)>
> It is clear to me how examples 1) and 3) are parsed, but I do not
> understand the 2nd case.
> "%font;", "%phrase;" etc... look like the PEReference production,
> and not like Name one.

The answer is that the production rules are applied *after* parameter
entity references have been expanded.  This is true throughout the
XML Recommendations.

However, it is not clear to me that this is explicitly said anywhere.
Maybe we need an erratum for that.

-- 
John Cowan  http://ccil.org/~cowan  cowan@ccil.org
All "isms" should be "wasms".   --Abbie

Received on Tuesday, 5 February 2013 17:01:53 UTC