xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "luis" <l...@fuegolabs.com>
Subject Simple problem using Transformer
Date Wed, 07 May 2003 15:25:32 GMT
Hi,

I'm using:

				TransformerFactory tFactory =
TransformerFactory.newInstance();
                        Transformer transformer =
tFactory.newTransformer();
                        DOMSource source = new DOMSource(element);
                        StreamResult result = new
StreamResult(System.out);
                        transformer.transform(source, result);

Where element is a DomElement

I'm getting:

org.apache.xml.utils.WrappedRuntimeException: The output format must
have a '{ht
tp://xml.apache.org/xalan}content-handler' property!
        at
org.apache.xalan.serialize.SerializerFactory.getSerializer(Serializer
Factory.java:142)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont
entHandler(TransformerIdentityImpl.java:232)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:296)

Any ideas?

---
Luis Argerich                        ( ) ASCII Ribbon Campaign
http://tikiwiki.sourceforge.net       X  against HTML on email
"There's no spoon"                   / \      and Usenet posts 
 


Mime
View raw message