I would assume that it's easier to do this in perl, provided you know 
both?
simon
On Thursday, January 23, 2003, at 06:21  PM, Wendell Piez wrote:
While what Simon says is generally true, it's not *completely* true 
that XSLT can't be used to interpolate a hierarchy. See the XSL FAQ at 
http://www.dpawson.co.uk/xsl/sect2/flatfile.html for an approach 
treating your step 2 as a grouping problem, and leveraging your 
hierarchy that way (the trick is to use a key to associate each node 
with its most recently preceding break, then create a new paragraph 
every time you process a break with any associated nodes, pulling them 
into it).
---
www.simonwoodside.com
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list