This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Travesing back up 'tree'
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Travesing back up 'tree'
- From: Mike Brown <mbrown at corp dot webb dot net>
- Date: Mon, 6 Mar 2000 14:54:25 -0700
- Cc: "'Jeffrey dot Collin at tfn dot com'" <Jeffrey dot Collin at tfn dot com>
- Reply-To: xsl-list at mulberrytech dot com
Jeffrey Colin wrote:
> Before printing out the data at the cells level I need to
> use an <xsl:when test against an attribute at the
> tablecolumns level. How do I get back to that level now
> that I'm dealing with cells data??
starting at the cell element, you can go "up" to the parent
by using the '..' shorthand in an XPath expression:
select="../../../table/tableColumnlist/tablecolumns"
or, if there's only one table and tableColumnlist,
there's no need to start at the cell element;
select="/output/table/tableColumnlist/tablecolumns"
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list