How do you get the list of elements in an xml
document using xslt?
I am trying to find a generic way to create an html table that also contains column captions (element name) without having to know specifics of the xml file.
(without knowing the element names)
for example:
the attached xml file
(using $ for < because can't seem to send this message so that you can see the file as is, and could not figure out how to send the file as an attachment)
would produce an html table
that looked like this
tool name price
Hammer 9.99
Hammer 14.99
Wrench 11.49
$?xml version="1.0" ?>
$products>
$tool>
$name>Hammer$/name>
$price>9.99$/price>
$/tool>
$tool>
$name>Hammer Deluxe$/name>
$price>14.99$/price>
$/tool>
$tool>
$name>Wrench$/name>
$price>11.49$/price>
$/tool>
$/products>
Thanks,
Ari