[xsl] Printing all child bachelor nodes

Subject: [xsl] Printing all child bachelor nodes
From: Douglas F Shearer <dougal.s@xxxxxxxxx>
Date: Thu, 9 Feb 2006 15:08:59 +0000
Hi there.

I have the following snippet of XML and would like to extract the data given below using XSL...

********** XML ************
	<pool length="30" max-depth="160" min-depth="30" indoor="false"/>
	<beds twin="2" sofa-bed="1"/>

******** REQUIRED OUTPUT ******
pool: length: 30, max-depth:160, min-depth:30, indoor: false.
beds: twin:2, sofa-bed:1


The main issue I am having is that the nodes themselves change (microwave instead of DVD etc). Basically I want to print out all of the elements within the features element, and their associated attributes.

Help much appreciated.


Douglas F Shearer

Current Thread