← Prev in month ← Prev in thread

Re: [xml-dev] Parameter entity references

From
Richard Tobin <>
To
Date
2002-01-17T13:23:04Z
ID
<>
Thread
Re: [xml-dev] Parameter entity references
>>   The replacement text of a parameter entity reference in a DeclSep
>>   must match the production extSubsetDecl.

>So the comment in erratum E14 is wrong: the document below is not
>well-formed as it violates the same constraint.

>    with 001.ent:
>      <!ELEMENT doc EMPTY>
>      <!ENTITY % e "<!--">
>      %e; -->

Um, yes, you are right.  DeclSep was introduced in the second edition,
and I hadn't noticed that it was used in the extSubsetDecl production.
This doesn't really solve the problem, since it doesn't cover this:

  <!ENTITY % e "> <!--">
  <!ELEMENT doc EMPTY %e;
  -->

which appears to be merely invalid.

-- Richard
← Prev in month ← Prev in thread