thx for ur suggestion, but its not working. this is my original XML
<ENTRY>
<MWORD ID="000000114">
<WORD>abduction</WORD>
<SYL>ab˙duc˙tion</SYL>
<PHON>ab-duk&stress;shun</PHON>
<DEF>the act of abducting; the state of being abducted.
<FIGURE>
<IMAGE TYPE="float" FILE="abduction(1)"/>
<FIG.CAPTION>Abduction of the fingers.</FIG.CAPTION>
</FIGURE>
</DEF>
</MWORD>
</ENTRY>
like this it has lot of <ENTRY> tags...
In this XML i want to get the only text of <DEF> tag ("the act of abducting; the state of being abducted."), i don't want to get the results of sub tags of <DEF> tag. Please advise me.
Quote:
quote:Originally posted by Prem Rajesh Kumar
Hi,
My XML is in the following form
<Employee>Employee details
<name>kumar</name>
<country>india</country>
</Employee>
I want to select only the following data "Employee details" from the <Employee> tag, I don't want to select the child nodes in my XSLT. Does any one have the idea about how to select only the parent tag and ignore the child tag
Thanks & Regards,
Prem Rajesh Kumar.S
|