Subject: RE: [xsl] Selecting attribute from previous parent node From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 27 Jan 2006 23:46:55 -0000 |
ancestor::flower/@type > -----Original Message----- > From: Andrea Berman [mailto:andrea.berman@xxxxxxxxx] > Sent: 27 January 2006 22:29 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Selecting attribute from prev, Andrea Berman | Thread | Re: [xsl] Selecting attribute from , David Carlisle |
RE: [xsl] Shallow copy and base URI, Florent Georges | Date | RE: [xsl] Shallow copy and base URI, Michael Kay |
Month |