A nice propeller head XML question :-)

Dean Roddey (roddey@us.ibm.com)
Fri, 11 Sep 1998 19:56:52 -0400


If the expansion of an entity reference is required to have a space on =
either
side of the expanded text, correct? If so, then something like this mus=
t be
invalid?

<!ENTITY % Foo 'ENTITY'>
<!%Foo; Bar 'Baz'>

right? Because the expansion of Foo requires that spaces be placed on e=
ither
side, creating this:

<! ENTITY Bar 'Baz'>

and the production for a PE declaration is:

PEDecl ::=3D '<!ENTITY' S '%' S Name S PEDef S? '>'

which does not allow any space between the ! and ENTITY.

Is this correct? Basically what I'm looking for here is a more general =
rule
which says that I can consider any %blah; occurance at some place in th=
e
grammar that does not allow spaces at that point to be in error without=
even
checking any further?

----------------------------------------
Dean Roddey
Software Weenie
IBM Center for Java Technology - Silicon Valley
roddey@us.ibm.com
=