Accessing the element stack generically

Subject: Accessing the element stack generically
From: "Clark C. Evans" <clark.evans@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Oct 1999 12:30:03 -0400 (EDT)
Hello.  I have an xml document:

<a><b><c/></b><c/></a>

I'd like to, when match="c" is invoked, print
the current element stack.  Any generic way to do this?

 /a/b/c and /a/c are what I'm after...

Harder version:

 <a><b x="y"><c/></b><b x="z"><c/></b></a>

Print the element stack including parameters to get:

 /a/b[@x='y']/c  and /a/b[@x='z']/c

Thanks for any suggestions.

clark


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


Current Thread