• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DOMSource Vs Stream Source

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic