Subject: Re: [xsl] Recursive walk up tree From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 25 Nov 2003 16:56:56 -0500 |
<xsl:for-each select="ancestor::*"> <td>spacer</td> </xsl:for-each> <td><xsl:value-of select="@name"/></td>
Good luck, Wendell
Hi folks,
Can somebody please let me know of an XPATH expression on how to recursively walk up a tree.
I have a tree of directories in an XML <directories> <directory name=blah> <directory name="blee"> ... to arbitrary depth </directory> </directory> </directories>
I need to put each element into a <tr> and a <td> for each level. <table> <tr><td>blah</td></tr> <tr><td>spacer</td><td>blee</td></tr> <tr><td>spacer</td><td>spacer</td><td>...</td></tr>
</table> TIA, Dinesh
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Recursive walk up tree, dinesh | Thread | Re: [xsl] Recursive walk up tree, dinesh |
Re: [xsl] Creating a Place index, Kaarle Kaila | Date | Re: [xsl] Strings Position, J.Pietschmann |
Month |