File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DOMSource Vs Stream Source

 
mohamed zafer
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a html file using XML and XSL, following are the steps I do.

1. Parse and create a document object say D1, from the XML.
3. Create a Transformer with the XSL.
2. get a Child Node say CN, from the D1,
4. Invoke transform with the DOMSource created using the node CN.

The output I get is some unexpected xml. In the above steps ifI convert the node CN to a string and use streamsource instead of DOMSource, then I get the expected html output.

Any idea about this wierd behaviour

Thanks
Zafer
 
pradeep jaladi
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Go Through this Links. you can get the idea of

DOMSource, StreamSource, SAXSource

[EMAIL]http://www.xalan-xsl.com/msg/2296.html[/EMAIL]
Relpy to this thread follows.

Another one .
[EMAIL]http://www.stylusstudio.com/xsllist/200311/post20010.html[/EMAIL]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic