I have XML files in the following format
<FormData>
<fieldgroup1>
<field1>data</field1>
<field2>data<field2>
</fielggroup1>
<fieldgroupXX>
<field1>data</field1>
<field2>data<field2>
</fielggroupXX>
...
</FormData>
I dont know the names of the fieldgroups or fields beforehand, but these child nodes are alway in parent FormData
I want to create the HTML output
<h1>fieldgroup</h1>
<table>
<tr><td>field</td><td>data</td></tr>
</table>
... etc (for each fieldgroup)
I'm sure this will be very straightforward but I am very new to XSLT and can't find an examplr equivalent to waht I'm attempting. Only examples with for-each and template mathes where the nodes can be referenced directly.
Thanks
<FormData>
<fieldgroup1>
<field1>data</field1>
<field2>data<field2>
</fielggroup1>
<fieldgroupXX>
<field1>data</field1>
<field2>data<field2>
</fielggroupXX>
...
</FormData>
I dont know the names of the fieldgroups or fields beforehand, but these child nodes are alway in parent FormData
I want to create the HTML output
<h1>fieldgroup</h1>
<table>
<tr><td>field</td><td>data</td></tr>
</table>
... etc (for each fieldgroup)
I'm sure this will be very straightforward but I am very new to XSLT and can't find an examplr equivalent to waht I'm attempting. Only examples with for-each and template mathes where the nodes can be referenced directly.
Thanks