[jdom-interest] Using TraX
Jasmeet.Singh at eontec.com
Jasmeet.Singh at eontec.com
Wed Apr 17 03:26:58 PDT 2002
HI All
I am trying to use JDOM TraX for transforming the source JDOM document into
another
i use the following as in javadoc for the classes
try {
Transformer transformer = TransformerFactory.newInstance
().newTransformer(new StreamSource(stylesheet));
JDOMResult out = new JDOMResult();
transformer.transform(new JDOMSource(in), out);
return (MyDocument) out.getDocument();
} catch (Exception e) {
throw new MyException("XSLT Trandformation failed :: " +
e.getMessage());
}
I get a class cast exception while casting out.getDocument() to
MyDocument..
MyDocument is a subclass of org.jdom.Document.. I have using JDOMFactory as
a subclass of DefaultJDOMFactory to get my own version of Docments and
Elements
Am i missing anything in this transformation ni particular
thanks
jasmeet
More information about the jdom-interest
mailing list