You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2004/11/12 18:02:24 UTC

[jira] Commented: (XALANJ-1815) Xalan interpretive doesn't produce ContentHandler.startDocument before and LexicalHandler.startComment when stylesheet is written to produce a comment before root element

     [ http://nagoya.apache.org/jira/browse/XALANJ-1815?page=comments#action_55405 ]
     
Henry Zongaro commented on XALANJ-1815:
---------------------------------------

I have reviewed Brian's patch, and it looks correct to me.

> Xalan interpretive doesn't produce ContentHandler.startDocument before and LexicalHandler.startComment when stylesheet is written to produce a comment before root element
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-1815
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1815
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Versions: CurrentCVS
>  Environment: Operating System: Other
> Platform: All
>     Reporter: Ramesh Mandava
>     Assignee: Brian Minchau
>  Attachments: XSLT.tar, apache.bugzilla.27522.serializer.patch.txt
>
> Apparently, when the stylesheet is written to produce a comment before the root 
> element, Xalan interpretive fires off a LexicalHandler.comment callback before
> it calls the  ContentHandler.startDocument callback.
>  This is in violation of the SAX contract. The bug is found by 
>  Kohsuke ( kohsuke.kawaguchi@sun.com ) 
> See the attachment for the test case.  Run it as:
> "java XSLT test.xsl test.xsl"
>  ( You have to extract the attached XSLT.tar and then put bin
>    directory in CLASSPATH )
> Regards
> -Ramesh

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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