|
Subject: [xsl] Re: Extracting Unique Nodes From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Fri, 3 Aug 2001 08:09:28 -0700 (PDT) |
Hi Subramanian,
Use:
/page/data/ASOF_DT[not(.=following-sibling::ASOF_DT)]
and
/page/data1/ASOF_DT[not(.=following-sibling::ASOF_DT)]
respectively.
Hope this helped.
Cheers,
Dimitre Novatchev.
Subramanian, Veera wrote:
Hi,
Iam finding it difficult to extract distinct nodes from XML. Please see the
sample xml below.
<?xml version="1.0"?>
<page>
<data>
<ASOF_DT>1</ASOF_DT>
<ASOF_DT>1</ASOF_DT>
<ASOF_DT>3</ASOF_DT>
<ASOF_DT>5</ASOF_DT>
</data>
<data1>
<ASOF_DT>5</ASOF_DT>
<ASOF_DT>5</ASOF_DT>
<ASOF_DT>7</ASOF_DT>
</data1>
</page>
How can i write an xpath expression to extract distinct asof_dt under <data> &
<data1> seperately.
Picking distinct list under data , should bring 1,3,5
Picking distinct list under data1 , should bring 5,7
Regards
Veera
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Extracting Unique Nodes, Mitchell, Edmund | Thread | [xsl] Interpretation of preceding a, John-Paul Sicotte |
| RE: [xsl] Extracting Unique Nodes, Mitchell, Edmund | Date | Re: [xsl] remove blank xmlns, Paul_B_Grimes |
| Month |