You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/01/31 20:13:17 UTC
[jira] Created: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
XML Serializer serializes some DTD information, but not all
-----------------------------------------------------------
Key: XALANJ-2051
URL: http://issues.apache.org/jira/browse/XALANJ-2051
Project: XalanJ2
Type: Bug
Reporter: Brian Minchau
Attachments: ToStream-patch.txt
It may be questionable about why the XML serializer serializes DTD events, but it does.
However it is inconsistent in which DTD information it serializes, and which information it looses.
When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Closed: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=all ]
Brian Minchau closed XALANJ-2051:
---------------------------------
Closing this issue.
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Fix For: 2.7
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=history ]
Brian Minchau updated XALANJ-2051:
----------------------------------
Attachment: ToStream-patch.txt
Patch to serializer's ToStream.java to consistently handle DTD events.
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Reporter: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Resolved: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=history ]
Brian Minchau resolved XALANJ-2051:
-----------------------------------
Resolution: Duplicate
This issue is a duplicate of XALANJ-2033 and the fix for this issue will be in the patch attached to that issue.
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Updated: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=history ]
Brian Minchau updated XALANJ-2051:
----------------------------------
Xalan info: [PatchAvailable, PatchAvailable] (was: [PatchAvailable])
Component: Serialization
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Updated: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=all ]
Brian Minchau updated XALANJ-2051:
----------------------------------
Fix Version: 2.7
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Fix For: 2.7
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=history ]
Brian Minchau updated XALANJ-2051:
----------------------------------
reviewer: ilene@ca.ibm.com
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Commented: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=comments#action_59277 ]
Brian Minchau commented on XALANJ-2051:
---------------------------------------
The fix in this patch is now included in a new patch that I added into XALANJ-2033. There were some technical difficulties with applying the patch in 2033 followed by this one.
The one super patch, org.apache.xml.serializer.2033.2051.patch.txt in the other issue covers both issues now.
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Updated: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=history ]
Brian Minchau updated XALANJ-2051:
----------------------------------
Xalan-keywords: PatchAvailable
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Commented: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=comments#action_58430 ]
Brian Minchau commented on XALANJ-2051:
---------------------------------------
Ilene Seeleman to review patch
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Reporter: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Commented: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=comments#action_59364 ]
Brian Minchau commented on XALANJ-2051:
---------------------------------------
A serializer (class that extends SerializerBase) serializes copy21.xml as:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE test [
<!ELEMENT test (extEnt)>
<!ELEMENT extEnt (sub2)>
<!ATTLIST extEnt attr CDATA #REQUIRED>
<!ELEMENT sub2 (#PCDATA)>
<!ENTITY extEnt SYSTEM "ent21.xml" >
]>
<test>
z</test>
Notice the 'z' between <test> and </test>. This is because ent21.xml has contents:
<?xml version="1.0" encoding="UTF-8" ?>
<extEnt attr="x"><sub2>z</sub2></extEnt>
and the serializer ignores all startElement() and endElement() calls while expanding such an entity. Is this right? Only the 'z' survives.
I'd like an API on the serializer:
Serializer.expandDTDEntities(false);
The default value would be true.
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Commented: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=comments#action_58413 ]
Brian Minchau commented on XALANJ-2051:
---------------------------------------
If you run copy21.xml through the identity transform:
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE test [
<!ELEMENT test (extEnt)>
<!ELEMENT extEnt (sub2)>
<!ATTLIST extEnt attr CDATA #REQUIRED>
<!ELEMENT sub2 (#PCDATA)>
<!ENTITY extEnt SYSTEM "ent21.xml">
]>
<test>&extEnt;</test>
Some of the DOCTYPE information is lost, but with the fix the information is retained.
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Reporter: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Commented: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Ilene Seelemann (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=comments#action_59463 ]
Ilene Seelemann commented on XALANJ-2051:
-----------------------------------------
I've reviewed the patch in XalanJ-2033 which includes a patch for this bug. See comments there.
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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
[jira] Assigned: (XALANJ-2051) XML Serializer serializes some DTD information, but not all
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2051?page=history ]
Brian Minchau reassigned XALANJ-2051:
-------------------------------------
Assign To: Brian Minchau
> XML Serializer serializes some DTD information, but not all
> -----------------------------------------------------------
>
> Key: XALANJ-2051
> URL: http://issues.apache.org/jira/browse/XALANJ-2051
> Project: XalanJ2
> Type: Bug
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Attachments: ToStream-patch.txt
>
> It may be questionable about why the XML serializer serializes DTD events, but it does.
> However it is inconsistent in which DTD information it serializes, and which information it looses.
> When simply taking an XML document as input and serializing it to an XML document (round tripping) it would be better if the full support was there, rather than partial support as it is now.
--
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