[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how to set the pattern to get the node

Subject: how to set the pattern to get the node
From: que Li <queincanada@xxxxxxxx>
Date: Mon, 29 Nov 2004 18:42:56 -0500 (EST)
get a node in xml
Hi:
 I can't figure out this problem for several days.

I just wonder is it possible for me to filter node bu
the select ?

xml:
<Lists>
  <List>
   <List_ID>11</List_ID>
   <Title>A1</Title>
    <Parent_ID>10</Parent_ID>
 </List>
<List>
  <List_ID>10</List_ID>
   <Title>A</Title>
  <Parent_ID>1</Parent_ID>
 </List>
 <List>
   <List_ID>12</List_ID>
   <Title>A2</Title>
   <Parent_ID>10</Parent_ID>
 </List>
<List>
    <List_ID>13</List_ID>
   <Title>C</Title>
  <Parent_ID>16</Parent_ID>
 </List>
  </Lists>


How I can get the node which parent_ID =1 or parent_ID
is not 1 but No other sibling node List_ID equal to
current node parent_ID

I try to use:
   <xsl:template match="List[Parent_ID=1 or
not(../List[List_ID = current()/Parent_ID])] ">

But don't work 

Thanks

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.