Return-Path: Delivered-To: apmail-xml-xalan-dev-archive@www.apache.org Received: (qmail 34786 invoked from network); 1 Feb 2005 21:19:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Feb 2005 21:19:00 -0000 Received: (qmail 64296 invoked by uid 500); 1 Feb 2005 21:18:59 -0000 Delivered-To: apmail-xml-xalan-dev-archive@xml.apache.org Received: (qmail 64253 invoked by uid 500); 1 Feb 2005 21:18:58 -0000 Mailing-List: contact xalan-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: xalan-dev@xml.apache.org Delivered-To: mailing list xalan-dev@xml.apache.org Received: (qmail 64227 invoked by uid 99); 1 Feb 2005 21:18:58 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 13:18:57 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j11KfKwt024929 for ; Tue, 1 Feb 2005 21:41:20 +0100 Message-ID: <1491699768.1107290480741.JavaMail.jira@ajax.apache.org> Date: Tue, 1 Feb 2005 21:41:20 +0100 (CET) From: "Brian Minchau (JIRA)" To: xalan-dev@xml.apache.org Subject: [jira] Commented: (XALANJ-2033) SerializationHandler interface should inlude DTDHandler In-Reply-To: <1104382024.1104081244220.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/XALANJ-2033?page=comments#action_58445 ] Brian Minchau commented on XALANJ-2033: --------------------------------------- To be reviewed by Ilene Seeleman > SerializationHandler interface should inlude DTDHandler > ------------------------------------------------------- > > Key: XALANJ-2033 > URL: http://issues.apache.org/jira/browse/XALANJ-2033 > Project: XalanJ2 > Type: New Feature > Components: Serialization > Reporter: Brian Minchau > Assignee: Brian Minchau > Fix For: CurrentCVS > Attachments: org.apache.xml.serializer-externalentitydecl.patch.txt, org.apache.xml.serializer-patch.txt > > (Note that SerializationHandler is public in the Java sense, but is not a public API, so this issue is marking some internal development work that should be done). > The SerializationHandler interface, which is implemented by Xalan's serializers is a kitchen-sink of other interfaces. It includes these public APIs: > org.xml.sax.ContentHandler > org.xml.sax.ErrorHandler > org.xml.sax.ext.LexicalHandler > org.xml.sax.ext.DeclHandler > It appears that this interface: > org.xml.sax.DTDHandler > which has these two methods: > void notationDecl(String name, String publicId, String systemId); > void unparsedEntityDecl(String name, String publicId, > String systemId, String notationName); > should be added. > DeclHandler, that is already included in SerializationHandler has this method: > void elementDecl(String name, String model); > When an XML document like this one (from Xalan's expression02.xml testcase) is parsed, and serialized: > when parsing the XML input to the transformation: > > > > > ]> > the serializer handles the !ELEMENT just fine, and creates the surrounding !DOCTYPE, bucause the !ELEMENT is handled via the DeclHandler interface. However, there is no way to similarly serialize the !NOTATION or !ENTITY because these are handled via the DTDHandler interface. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-dev-help@xml.apache.org