Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 59928 invoked from network); 7 Sep 2006 13:01:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2006 13:01:59 -0000 Received: (qmail 86968 invoked by uid 500); 7 Sep 2006 13:01:58 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 86942 invoked by uid 500); 7 Sep 2006 13:01:58 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 86931 invoked by uid 99); 7 Sep 2006 13:01:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 06:01:58 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 06:01:57 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9DBC5714304 for ; Thu, 7 Sep 2006 12:58:24 +0000 (GMT) Message-ID: <14804970.1157633904643.JavaMail.jira@brutus> Date: Thu, 7 Sep 2006 05:58:24 -0700 (PDT) From: "Miguel Montes (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding In-Reply-To: <16631890.1157570368659.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1395?page=all ] Miguel Montes updated HARMONY-1395: ----------------------------------- Attachment: ASN1_01.patch > Code for reading and writing binary DTDs using ASN.1 encoding > ------------------------------------------------------------- > > Key: HARMONY-1395 > URL: http://issues.apache.org/jira/browse/HARMONY-1395 > Project: Harmony > Issue Type: Improvement > Components: Contributions > Reporter: Miguel Montes > Attachments: ASN1_01.patch, ASN1_01.patch, ASN1_ITC-Contribution_20060905.zip, ASN1_ITC-Contribution_20060905.zip > > > The class javax.swing.text.html.parser.DTD has a method read() for loading a binary DTD. The format of this binary file is not specified, so the current implementation uses serialization. This approach has several problems, so it was suggested in harmony-dev the use of ASN.1 to encode the DTD information. > Attached is a zip file with a set of classes for encoding and decoding a DTD, using the ASN.1 framework already in use in javax.crypto; and two bdtds, one for HTML 3.2 and one for HTML 4.01. Also attached is a patch for DTD.java and DTDUtilities.java. > The proposed format is: > BDTD ::= SEQUENCE { > name UTF8String, > entity SET OF HTMLEntity, > element SET OF HTMLElement > } > HTMLEntity ::= SEQUENCE { > name UTF8String, > value INTEGER, > general [0] IMPLICIT BOOLEAN DEFAULT FALSE, > parameter [1] IMPLICIT BOOLEAN DEFAULT FALSE, > data UTF8String > } > HTMLElement ::= SEQUENCE { > index INTEGER, > name UTF8String, > type INTEGER, > oStart BOOLEAN, > oEnd BOOLEAN, > exclusions [0] IMPLICIT SET OF INTEGER OPTIONAL, > inclusions [1] IMPLICIT SET OF INTEGER OPTIONAL, > attributes SET OF HTMLElementAttributes OPTIONAL, > contentModel HTMLContentModel > } > HTMLContentModel ::= SEQUENCE OF SEQUENCE { > type INTEGER, > index INTEGER > } > HTMLElementAttributes ::= SEQUENCE { > name UTF8String, > type INTEGER, > modifier INTEGER, > defaultValue UTF8String OPTIONAL, > possibleValues SET OF UTF8String OPTIONAL > } -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira