xsl-list
[Top] [All Lists]

Printing all child bachelor nodes

2006-02-09 08:08:59
 Hi there.

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

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

******** REQUIRED OUTPUT ******
pool: length: 30, max-depth:160, min-depth:30, indoor: false.
DVD.
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.

Dougal.

Douglas F Shearer
dougal(_dot_)s(_at_)gmail(_dot_)com
http://douglasfshearer.dyndns.org



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>