generalizing the tabular display of xml data
-
Hello everyone, I'm back again with another problem!! well I'm trying to display data from an Xml file in the form of a table. for that I'm using XSL and the problem is that now I wanna make the xsl able to display different number of columns in the table. the data can be in any form such as BiPhenyl 0.000000005 BiPhenyl 0.000000005 BiPhenyl 0.000000005 BiPhenyl 0.000000005 BiPhenyl 0.000000005 H2O 0.703552320 or... 0.000018075 and the headiings of the columns shoulbe the heading nodes. as you can see in teh previous example that the node name 'compound' and 'value' are reapeated every time for each value but i just need them once. So the point is that there can be different number of columns to display. How can I make such an arrangement that the xsl should pick up the unique names of the columns and then I can easily go thru the data using foreach and display it. Thanks in advance Rocky You can't climb up a ladder with your hands in your pockets.