• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to output an xml block using xslt?

 
monojit choudhury
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Is there any way by which i can output an xml block, which I am processing using xslt, as a string?
eg
<Element>
<element1></element1>
<element1></element1>
<element1></element1>
<element1></element1>
</Element>
Using xslt the output I should get is
<element1></element1>
<element1></element1>
<element1></element1>
<element1></element1>
I am using xalan as the processor.
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using the following
<xsl:copy-of select="Element/*"/>
Leena
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic