Return-Path: Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 19887 invoked by uid 500); 12 Oct 2001 11:39:38 -0000 Mailing-List: contact general-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: general@xml.apache.org Delivered-To: mailing list general@xml.apache.org Received: (qmail 19876 invoked from network); 12 Oct 2001 11:39:38 -0000 X-Apparently-From: Message-ID: <06d201c15312$4da9e0a0$9865fea9@spiritsoft.com> From: "James Strachan" To: References: <3BBA7FFF.3BF82CD8@sun.com> <3BBA807F.DE13F2C0@sun.com> <20011003091852.1E49C487F@silbermann.snv.jussieu.fr> <3BBB2263.4F0AF848@sun.com> <3BC4F594.1A1E4C5A@sun.com> Subject: [Crimson] how to determine DTD declarations are internal or external? Date: Fri, 12 Oct 2001 12:37:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The startDTD() method of the SAX LexicalHandler http://dom4j.org/javadoc/org/xml/sax/ext/LexicalHandler.html says on the topic of DTD declarations:- Declarations are assumed to belong to the internal DTD subset unless they appear between startEntity and endEntity events. Now I've tried using this technique to implement internal and external DTD subsets for dom4j, there's details here:- http://dom4j.org/todo.html This all appears to work hunky dory for Xerces but for Crimson all DTD declarations appear to be internal, whether coming from internal or external source. i.e. I never get a startEntity/endEntity events to define the external declarations. I take it this is a bug in Crimson? Or is there another way to know when you are getting internal or external DTD declarations - that works consistently for Crimson and Xerces and can handle mixed subsets (internal and external)? James . _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com --------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org