This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Travesing back up 'tree'


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]