Re: [xml] xinclude and entities with same name/different content



At 01:55 PM 3/28/2003 -0500, you wrote:
On Fri, Mar 28, 2003 at 12:58:34PM -0500, Pawel wrote:
> Hello,
>
> I'm trying to use xinclude to include several documents that have
> internal general entities with same name but different content.
> This seemed to work with libxml 2.5.1 but after upgrading to 2.5.5
> it complains: "mismatch in redefinition of entity title" and does
> not include the documents.
>
> Is what I'm trying to do allowed ?

  Hum, it's clearly forbidden for external unparsed entities
    http://www.w3.org/TR/xinclude/#notations
    "It is a fatal error to include notation items with the same name,
     but which are not determined to be duplicates."

Maybe libxml2 check is too strong now. It doesn't seems to be a good idea any
way to reuse entities name for different content if you end up with a single
document.

Daniel


also from http://www.w3.org/TR/xinclude/#notations
"Notation items with the same [name], [system identifier], [public identifier],
and [declaration base URI] are considered to be duplicate. "

Wouldn't the declaration base URI be different for the included documents
and therefore they would not be considered duplicates?

In my case the documents are independent of each other and also rather similar.
Creating them from a template is simply a matter of filling in the
entities and maybe changing several lines. Renaming entities would take
away the independence and make it a pain in general.

Pawel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]