xsl-list
[Top] [All Lists]

RE: Selecting attribute from previous parent node

2006-01-27 16:46:55
ancestor::flower/@type 

-----Original Message-----
From: Andrea Berman [mailto:andrea(_dot_)berman(_at_)gmail(_dot_)com] 
Sent: 27 January 2006 22:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Selecting attribute from previous parent node

It's Friday!  Please, have pity upon me and save my sanity!

Say I have the following style of XML:

<row>
   <basket>
     <flower type="rose">
       <basket>
         <flower type="tulip">
           <basket>
              ...
           </basket>
         </flower>
       </basket>
     </flower>
   </basket>
</row>

If I'm at node "flower" with type of "tulip", how do I reference the
previous flower's type?


Thanks!

--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--