File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
XML and Related Technologies
Author
Retrieve complete XML
Ramesh Hebbar
Greenhorn
Joined: Nov 29, 2000
Posts: 3
posted
Jul 14, 2004 05:33:00
0
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
Joined: Apr 26, 2004
Posts: 33
posted
Jul 14, 2004 21:56:00
0
Use xsl:copy-of instead of xsl:value-of.
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
I like...
posted
Jul 15, 2004 06:43:00
0
Is XSLT based on
XPath
? :roll:
Groovy
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
Jul 19, 2004 08:24:00
0
Originally posted by Pradeep Bhat:
Is XSLT based on
XPath
? :roll:
No, but XSLT
uses
XPath
.
Author of
Test Driven
(2007) and
Effective Unit Testing
(2013) [
Blog
] [
HowToAskQuestionsOnJavaRanch
]
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Retrieve complete XML
Similar Threads
xsl getNext to sort output
XSL 2.0 (looking for ideas)
How to pass string instead of xml in xsl
An Unwanted Part of the XML Input File is Included in the XSL Transformation Result
Get data by Matching ID's from two different XML documents
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter