Subject: Choosing specific XML node with XSL
From: "Hiral Parikh" <hparikh@xxxxxxxxxxxxxxxx>
Date: Wed, 9 Feb 2005 17:21:02 -0500
|
Hi,
I am dealing with some dynamically generated XML and ran into some XSL
parsing issues.
The XML is something like this:
<parent>this is parent text
<child1><child2>this is child text</child2></child1> </parent>
I want the text of <parent> only, but
<xsl:value-of select = "//parent/"/> returns 'this is parent text this is
child text'.
How can I get only the text of <parent> tag and not the <child1><child2>
tag.
Thanks in advance,
Hiral
|