You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Tim McCune <ti...@channelpoint.com> on 2001/02/12 20:36:19 UTC

DOMSource bug?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to construct a Transformer using a DOMSource, and I just
can't get it to work.  Every time I try, I get a huge stack trace,
with the following message:
 
file:///D:\javax.xml.transform.dom.DOMSource; Line 0; Column 0;
javax.xml.transform.TransformerConfigurationException: stylesheet
requires attribute: version
 
I am also seeing the following line mixed into the stack trace:
 
; SystemID: file:///D:\javax.xml.transform.dom.DOMSource
 
My code is pretty simple:
 
TransformerFactory.newInstance().newTransformer(new
DOMSource(DocumentBuilderFactory.newInstance().newDocumentBuilder().pa
rse(new FileInputStream(args[0]))));
 
I'm attaching the full stack trace.
 
I'm using the Xalan 2.0.0 distribution, and I've tried using Xerces
1.2, 1.3, and 2.0, and get the same error every time.
 
I'm about to start digging through the Xalan source, but before I do,
I thought I'd see if anyone here had any ideas.  Thanks.
 
Tim McCune
Software Architect, ChannelPoint
"Aw, Gilligan screwed it up.  He always screws it up.  Why don't they
just kill him?" -- Red Foreman
 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOog619UPOr8a7vy5EQJ2nACfSGDBdjIuBLCdUeqnDrjP49l2XYkAoMB/
A7eg3ZoorJ4MS6mvGFt5bvOr
=ExHA
-----END PGP SIGNATURE-----