xsl-list
[Top] [All Lists]

[xsl] to get the descendants at only one level - xpath

2008-02-06 10:02:17
hi,
what is the xpath query to get the descendants only at one level.

i tried /root/level1/descendants. but couldnt get that.
i need to select only child1, 2, 3.

suppose the xml is,
<root>
  <level1>
      <child1/>
      <child2/>
      <child3>
            <child31/>
             <child32/>
       </child3>
   </level1>
</root>

thanks
senthil

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--