[xsl] outputting unknown amount of child elements

Subject: [xsl] outputting unknown amount of child elements
From: David Elsmore <delsmore@xxxxxxxxxxxxx>
Date: Thu, 05 Feb 2004 12:09:33 +0000
Given the following consisting of embedded elements with a common name:
   <item>Level 1
         <item>Level 2
                       <item>Level 3
               --- etc.----

How can I process this so all child elements (regardless of the depth) are outputted in a way that mirrors the structure structure of the original document. For example the uoutput may look something like this:

Heading Level 1
   Heading Level 2
      Heading Level  3

I would find this straightforward if there was a fixed number of levels but in this case the amount varies and is unknown.

Thanks for your help

David Elsmore

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

Current Thread