cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Conover <scono...@groundswell.net>
Subject xsl problem: converting rows to a hierarchy
Date Wed, 30 Aug 2000 22:20:05 GMT
Another recursion problem:

Given a set of rows

<rows>
	<row>apple</row>
	<row>orange</row>
	<row>banana</row>
	<row>grape</row>
</rows>

I'd like to put them in a hierarchy:

<item>
	apple
	<item>
		orange
		<item>
			banana
			<item>
				grape
			</item>
		</item>
	</item>
</item>

Any suggestions?  I haven't dealt with coding my own recursion in xsl yet so
it's kinda hard to know where to start.

Regards,
Steve

Mime
View raw message