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 2007/12/12 08:15:43 UTC

[jira] Closed: (XALANJ-1706) [PATCH] DocumentFragment returned by extension element causes multiple SAX endDocument() events

     [ https://issues.apache.org/jira/browse/XALANJ-1706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Minchau closed XALANJ-1706.
---------------------------------


Closing this issue.
Jeremias: I'm impressed, 4 years later and you are still watching this issue!

> [PATCH] DocumentFragment returned by extension element causes multiple SAX endDocument() events
> -----------------------------------------------------------------------------------------------
>
>                 Key: XALANJ-1706
>                 URL: https://issues.apache.org/jira/browse/XALANJ-1706
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.7
>         Environment: Operating System: All
> Platform: All
>            Reporter: Jeremias Maerki
>            Assignee: Brian Minchau
>             Fix For: 2.7.1
>
>         Attachments: BugzillaExtElemSAXendDocumentCheck.zip, BugzillaExtElemSAXendDocumentCheck.zip, endDocumentPatch.diff, XALANJ-1706-patch.diff
>
>
> At Krysalis Barcode (http://www.krysalis.org/barcode) I have a Xalan extension 
> which creates barcodes in SVG format [1]. Until recently I've used an 
> extension function for that. As I was able to create an extension element for 
> SAXON I wanted to do the same for the Xalan-extension. But here's the problem:
> The extension element (like the extension function where it works correctly) 
> returns a DocumentFragment containing the generated barcode in SVG format. In 
> the case of the extension element the DocumentFragment is processed by a 
> TreeWalker which issues start/endDocument() SAX events although it shouldn't 
> IMO. This behaviour causes Apache FOP to crash with an NPE because more than 
> one endDocument() SAX event is sent to FOP by Xalan.
> I will attach a test case for the bugzilla test directory. Current CVS (HEAD) 
> and 2.5.1 fail in this test. I will try to find a bugfix but if someone more 
> intimate with the code beats me to it, so much better.
> [1] http://cvs.sourceforge.net/viewcvs.py/krysalis/krysalis-
> barcode/src/java/org/krysalis/barcode/xalan/BarcodeExt.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org