Re: [jira] Created: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding
Hi Miguel Thanks for your patches! Could you please grant ASF license to them? Thanks, Mikhail 2006/9/7, Miguel Montes (JIRA) [EMAIL PROTECTED]: 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_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 - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [jira] Created: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding
Hi Mikhail: The attach button in the JIRA form doesn't have the checkbox to grant the license. Now I notice the button is there when you try to attach files to an already created issue, so i understand I have to create the issue first, and attach the files later. What should i do now to grant the license? Re-attach the files granting the license? Sorry if this was explained before, but i didn't read it Miguel On 9/7/06, Mikhail Loenko [EMAIL PROTECTED] wrote: Hi Miguel Thanks for your patches! Could you please grant ASF license to them? Thanks, Mikhail 2006/9/7, Miguel Montes (JIRA) [EMAIL PROTECTED]: 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_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 - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Miguel Montes
RE: [jira] Created: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding
-Original Message- From: Miguel Montes [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 4:26 PM To: harmony-dev@incubator.apache.org Subject: Re: [jira] Created: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding Hi Mikhail: The attach button in the JIRA form doesn't have the checkbox to grant the license. Now I notice the button is there when you try to attach files to an already created issue, so i understand I have to create the issue first, and attach the files later. What should i do now to grant the license? Re-attach the files granting the license? Sorry if this was explained before, but i didn't read IT Miguel, Yes, just re-attach the files granting the license. It was discussed several weeks ago [1]. There were also several other threads about this issue. Regards, Alexey. [1] http://thread.gmane.org/gmane.comp.java.harmony.devel/11975/focus=11991 Miguel On 9/7/06, Mikhail Loenko [EMAIL PROTECTED] wrote: Hi Miguel Thanks for your patches! Could you please grant ASF license to them? Thanks, Mikhail 2006/9/7, Miguel Montes (JIRA) [EMAIL PROTECTED]: 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_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 - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Miguel Montes -- Alexey A. Ivanov Intel Middleware Product Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [jira] Created: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding
Done On 9/7/06, Ivanov, Alexey A [EMAIL PROTECTED] wrote: -Original Message- From: Miguel Montes [mailto:[EMAIL PROTECTED] Sent: Thursday, September 07, 2006 4:26 PM To: harmony-dev@incubator.apache.org Subject: Re: [jira] Created: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding Hi Mikhail: The attach button in the JIRA form doesn't have the checkbox to grant the license. Now I notice the button is there when you try to attach files to an already created issue, so i understand I have to create the issue first, and attach the files later. What should i do now to grant the license? Re-attach the files granting the license? Sorry if this was explained before, but i didn't read IT Miguel, Yes, just re-attach the files granting the license. It was discussed several weeks ago [1]. There were also several other threads about this issue. Regards, Alexey. [1] http://thread.gmane.org/gmane.comp.java.harmony.devel/11975/focus=11991 Miguel On 9/7/06, Mikhail Loenko [EMAIL PROTECTED] wrote: Hi Miguel Thanks for your patches! Could you please grant ASF license to them? Thanks, Mikhail 2006/9/7, Miguel Montes (JIRA) [EMAIL PROTECTED]: 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_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 - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Miguel Montes -- Alexey A. Ivanov Intel Middleware Product Division - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Miguel Montes
Re: [jira] Created: (HARMONY-1395) Code for reading and writing binary DTDs using ASN.1 encoding
Just add a comment saying I grant the attached materials under the terms of the Apache License v2.0 Miguel Montes wrote: Hi Mikhail: The attach button in the JIRA form doesn't have the checkbox to grant the license. Now I notice the button is there when you try to attach files to an already created issue, so i understand I have to create the issue first, and attach the files later. What should i do now to grant the license? Re-attach the files granting the license? Sorry if this was explained before, but i didn't read it Miguel On 9/7/06, Mikhail Loenko [EMAIL PROTECTED] wrote: Hi Miguel Thanks for your patches! Could you please grant ASF license to them? Thanks, Mikhail 2006/9/7, Miguel Montes (JIRA) [EMAIL PROTECTED]: 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_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 - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]