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

RE: RE: variable binding

Subject: RE: RE: variable binding
From: Shipra Dingare <sdingar1@xxxxxxxxxxxx>
Date: Thu, 6 Nov 2003 14:52:20 +0000 (GMT)
shipra means
Charles Knell,

Thank you, that was very helpful. I thought it meant siblings of the 
element being processed. 

I figured out a workaround to do "leftmost daughter". It means the 
daughter which is a leaf (has no children) and whose parents are only first 
children of their parent. So in the example below the first word 
element "the" is the leftmost daughter of ng. 

Thanks a lot again. -Shipra

> >           <ng of='proteins' role='h'>
> >                 <nx head='targeting' role='h'>
> >                      <W index='92'>the</W>
> >                      <W role='h' index='93'>targeting</W>
> >                 </nx>
> >                      <W index='94'>of</W>
> >                 <nx head='proteins' role='k'>
> >                      <W index='95'>the</W>
> >                      <W index='96'>myosin</W>
> >                      <W role='h' index='97'>proteins</W>
> >                 </nx>
> >     </ng>





> 
> I am confused by " ... I am trying to find the leftmost daughter of the element ng." XPath has no concept of left or right. 
It has three (if we ignore the attribute axis) broad categories of axes: sibling axis, ancestor axis and descendant axis. 
> 
> Are you saying that you want to find an element that is a child of <ng>? XPath has a "child axis" 
that is a kind of descendant axis that includes only those elements that are one level down from the parent element. 
> 
> Please try to re-state your requirement using XPath terminology, or tell us which specific element in you example fits your requirement so we can figure out the correct XPath expression to select it.
> 




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.