Hi J, Partly you are right, with your test I can tell what image I need for the current level of the tree, but I can't see how to retrieve the required images from lower levels. the test you described needs to be done for every element up to level 0. It's not just the Indent which I want to show, but also some lines and branches, depending from the structure. Like the folder tree in an windows explorer window.
Ciao! Kai > Hi, Kai, > > I don't think you need to call a template for that. You can test for the > characteristics of the node from within the matching template and get the > image you need. > > Several xsl:when statements within an xsl:choose block should let you > figure out which images to use when. For example, <xsl:when > test="generate-id(.)=generate-id(../*[last()])"> will tell you whether the > current node is the last child node of its parent. Also, to indent > properly, you can read the Level attribute and put the appropriate number > of indentation objects (blank table cells, spaces, whatever you use) > before the image. > > J --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]