Hi Simon, I'm pretty sure this is a limitation in the design of DTD grammar caching. The component which is responsible for managing entities will only be populated with entity declarations if the DTD is read, so will contain no entity declarations if a DTD grammar is fetched from a grammar pool.
"Westhues, Simon (LNG-MUE)" <[EMAIL PROTECTED]> wrote on 08/24/2005 01:46:19 AM: > Hi, > > nobody has any idea? > > Thanks > Simon > > > -----Ursprüngliche Nachricht----- > > Von: Westhues, Simon (LNG-MUE) [mailto:[EMAIL PROTECTED] > > Gesendet: Donnerstag, 11. August 2005 08:17 > > An: [email protected] > > Betreff: org.apache.xerces.util.XMLGrammarPoolImpl and Entities > > > > Hi, > > > > i have an issue with the above mentioned GrammarPool. > > > > I try to validate several documents (based on the same dtd) > > with a SAXParser > > using a GrammarPool to speed up the whole thing. > > > > If the first document, which is parsed, contains Entities > > (e.g. ü) it > > can be validated successfully and the following documents, > > too. But if the > > first document doesn't contain entities, but the second or > > third one does, > > the error event of the content handler is raised with this message: > > > > The entity "uuml" was referenced, but not declared > > > > I can't see a reason why Xerces behaves like this. > > > > Attached, there are a small Java file, two test documents (one with an > > entity, one without) and the DTD which the sample documents > > conform to. > > > > I tried this with latest Xerces 2.7.1 > > > > Kind regards > > Simon > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
