You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Bob Egolf <ae...@columbus.rr.com> on 2002/03/01 15:25:38 UTC

DOMSource as input in Transformer

I am having a problem using DOMSource as input in transfomer.
If I take a test.xml file, parse it into a DOM, then use

transformer.transform(new DOMSource(myDOM), new StreamResult(out));

the transformation fails to find the first set of elements and just prints them
out.

However, if I do 

transformer.transform(new StreamSource(test.xml), new StreamResult(out));

everything works fine.

Any Help is appreciated,
I am attaching the xml and xslt file and sample jsp page for review.

Thanks in Advance,
Bob