Hi! I seem to have found a strange behaviour in Xerces-J 2.5.0 while experimenting with the xni-sample XmlGrammarBuilder. Here is my simple test data:
1. the DTD: <!ENTITY copy "©" > <!ELEMENT deliverable (#PCDATA) > 2. a sample instance document: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE deliverable SYSTEM "test.dtd"> <deliverable>©</deliverable> When I call XmlGrammarBuilder like this: C:\>java -cp s:\rossi\xerces-2_5_0\xercesImpl.jar;s:\rossi\xerces-2_5_0\xercesSamples.jar xni.XMLGrammarBuilder -d c:/test.dtd -i c:/test.xml I get the following result: [Error] test.xml:3:20: The entity "copy" was referenced, but not declared. Looks like Xerces does not "store" information about the © entity in its preparsed grammar pool. After browsing the mailing lists it appears as if this "feature" comes up from time to time with no satisfying answer. The latest thread "XMLGrammarPreparser question" seems to be related somewhat, but my test case is much simpler and I have trouble to understand how grammar caching could possibly be useful if such a simple test case won't work. Maybe I'm misunderstanding something important here? Best regards, Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
