Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieve complete XML

 
Ramesh Hebbar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to retrive the complete data of an XML associated with an XSL. The data should include node names along with values. This data must be accessible through an XSL variable.

I tried the following statements:

<xsl:variable name="all">
<xsl:value-of select="."/>
</xsl:variable>
<xsl:value-of select="$all"/>

But it displayed only node values. But I also need node names along with the "<" and ">" delimiters.

Can anybody please tell, how do I go about retrieving the XML through XSL?
[ July 14, 2004: Message edited by: Ramesh Hebbar ]
 
Dmitry Kirsanov
Author
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use xsl:copy-of instead of xsl:value-of.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is XSLT based on XPath? :roll:
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
Is XSLT based on XPath? :roll:

No, but XSLT uses XPath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic