bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug xml/28589] New: XSLT transform throws TransformerException with SAX


From: dpirkle at symyx dot com
Subject: [Bug xml/28589] New: XSLT transform throws TransformerException with SAXSource
Date: 3 Aug 2006 20:30:38 -0000

Transforming a SAXSource to a DOMResult can fail if the SAXSource is
constructed from an InputStream.  This is because the resolveDOM() method of
gnu.xml.transform.XSLURIResolver ends up calling resolveURL() on the Source
that is passed to it, but a Source will not always resolve to a URL. 
StreamSources built on InputStreams do not trigger a call to resolveURL() and
are handled OK.

I've attached a source example that reproduces the exception, and a new version
of XSLURIResolver.java that fixes the problem.  The fix tries to extract an
InputStream from the SAXSource, and only goes on to attempt a resolution to a
URL if it can't get the InputStream directly.


-- 
           Summary: XSLT transform throws TransformerException with
                    SAXSource
           Product: classpath
           Version: 0.91
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: xml
        AssignedTo: dog at gnu dot org
        ReportedBy: dpirkle at symyx dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28589





reply via email to

[Prev in Thread] Current Thread [Next in Thread]