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/04/11 16:31:18 UTC
[jira] Commented: (XALANJ-2098) ToHTMLStream: no space between PUBLIC and SYSTEM identifiers if both present
[ http://issues.apache.org/jira/browse/XALANJ-2098?page=comments#action_62561 ]
Brian Minchau commented on XALANJ-2098:
---------------------------------------
Sergey, the current code in CVS in ToHTMLStream.startDocumentInternal(), is more or less this:
writer.write("<!DOCTYPE HTML");
if (null != doctypePublic)
{
writer.write(" PUBLIC \"");
writer.write(doctypePublic);
writer.write('"');
}
if (null != doctypeSystem)
{
if (null == doctypePublic)
writer.write(" SYSTEM \"");
else
writer.write(" \""); // - - - THE LINE - - -
writer.write(doctypeSystem);
writer.write('"');
}
writer.write('>');
I think that the line you are refereing to, is the one I've marked
as "- - - THE LINE - - -". So you can confirm that the problem that
you report is already fixed in CVS, though not in a release yet.
Thanks,
Brian
> ToHTMLStream: no space between PUBLIC and SYSTEM identifiers if both present
> ----------------------------------------------------------------------------
>
> Key: XALANJ-2098
> URL: http://issues.apache.org/jira/browse/XALANJ-2098
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Versions: 2.6
> Environment: n/a
> Reporter: Sergey Ushakov
>
> The org.apache.xml.serializer.ToHTMLStream class produces invalid DOCTYPE declaration with no space between PUBLIC and SYSTEM identifiers if both are provided.
> Fix:
> line 607: change
> writer.write('"');
> to
> writer.write(" \"");
--
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