I do not have the code I had written, now(as i converted it to use solely JAXP
based on xalan).


But I had done something like this:
DocumentSource  sourceDoc = saxReader.read(xmlStream);
DocumentSource  styleSheetDoc = saxReader.read(styleSheetStream);

DocumentResult result = new DocumentResult();

Transformer transformer = TransformerFactory.newInstance().newTransformer(styleSheetDoc);
transformer.transform(sourceDoc, result);


XMLWriter writer = new XMLWriter(System.out);
writer.write(result);

I know that the TransformerFactory being used in the dom4j approach is also xalan's but it
didn't do it. Is this the right way to do transformation using dom4j?


Thanks,
Gurdev

David Hooker wrote:

Dom4J does not do transformation itself... it is simply an alternative
DOM implementation, providing an in-memory tree structure and APIs.  How
are you doing the transformation?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gurdev
Parmar
Sent: Tuesday, September 23, 2003 1:41 AM
To: [EMAIL PROTECTED]
Subject: [dom4j-user] Is XSLT an issue in dom4j


Hi, Just wanted to know if there are any known issue with dom4j handling XSLT? I ask this because I found that dom4j was not able to handle a transformation fine which xalan did very nicely.

Thanks,
Gurdev



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user


------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user






------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to