You want to explain the problem a little bit more? I don't see a problem really. You are including two external entities, each of which defines some entities. Are you saying that you end up with multiple copies of some entities?

--------------
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]

-----Original Message-----
From: Boris Tarasyuk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 10:06 AM
To: [EMAIL PROTECTED]
Subject: multiplication entities/elements in the pools of DTDValidator

Please check, may be this is new bug.
When DTD contains param. entities with System Ids
references to other part of DTD, parser prepares whole
DTD. As result DTDValidator object after parsing will contains
number of the same entities/elements. 
Example:
 
araticle.xml
 
<?xml version="1.0"?>
<!DOCTYPE article SYSTEM "article.dtd">
<article>
</article>
araticle.dtd
 
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin1//EN//HTML" "HTMLlat1.ent">
%HTMLlat1;
<!ENTITY % HTMLsymbol PUBLIC   "-//W3C//ENTITIES Symbols//EN//HTML" "HTMLsymbol.ent">
%HTMLsymbol;
<!-- Root element: article -->
<!ELEMENT article ANY>
 
HTMLlat1.ent
 
<!ENTITY nbsp "&#160;">
<!ENTITY iexcl "&#161;">
HTMLsymbol.ent
 
<!ENTITY sigma    "&#963;">
<!ENTITY tau      "&#964;">
 
After parsing DTDValidator object contains:
elements: article - 3
 
entities:
            sigma   - 2
            tau    - 2
            nbsp - 2
            iexcl - 2
            all built-in XML entities - 3
 
Boris Tarasyuk
I4I
 
 
 

 
   
 
 
Boris Tarasyuk
 

Reply via email to