This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Determining the level of the XML node?
- To: <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Determining the level of the XML node?
- From: "David M. Goudreau" <david_goudreau at crosscommerce dot com>
- Date: Tue, 16 Jan 2001 14:00:03 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
Does anyone know how to determine what "level" the current node is at in the
XML using XSL? At every level I need to indent my output successively, like
Windows Explorer, for example:
folder
folder
file
file
file
file
file
folder
folder
folder
file
Or if anyone has a better approach (as I'm sure I'm not the first one to try
ouputting this relationship) I'd love to hear it. Thanks in advance!
-dmg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list