Hello,
I have an XML document that I need to create a table from it's data using XSL. The problem is that the document is dynamic, all I know about it is that it's root is always <MappingData> and that it's elements are under <MappingDataElement>, how many elements will be inside <MappingDataElement> is unkown for each file (but of course for a given file the number of elements under <MappingDataElement> is fixed.
So, a file can look for example like this:
<MappingData>
<MappingDataElement>
<A>Data A1</A>
<B>Data B1</B>
</MappingDataElement>
<MappingDataElement>
<A>Data A2</A>
<B>Data B2</B>
</MappingDataElement>
...
</MappingData>
Or like this:
<MappingData>
<MappingDataElement>
<A>Data A1</A>
<B>Data B1</B>
<C>Data C1</C>
</MappingDataElement>
<MappingDataElement>
<A>Data A2</A>
<B>Data B2</B>
<C>Data C2</C>
</MappingDataElement>
...
</MappingData>
ect ect...
Can someone please help me build an XSL file which will create a table for this data?
I have an XML document that I need to create a table from it's data using XSL. The problem is that the document is dynamic, all I know about it is that it's root is always <MappingData> and that it's elements are under <MappingDataElement>, how many elements will be inside <MappingDataElement> is unkown for each file (but of course for a given file the number of elements under <MappingDataElement> is fixed.
So, a file can look for example like this:
<MappingData>
<MappingDataElement>
<A>Data A1</A>
<B>Data B1</B>
</MappingDataElement>
<MappingDataElement>
<A>Data A2</A>
<B>Data B2</B>
</MappingDataElement>
...
</MappingData>
Or like this:
<MappingData>
<MappingDataElement>
<A>Data A1</A>
<B>Data B1</B>
<C>Data C1</C>
</MappingDataElement>
<MappingDataElement>
<A>Data A2</A>
<B>Data B2</B>
<C>Data C2</C>
</MappingDataElement>
...
</MappingData>
ect ect...
Can someone please help me build an XSL file which will create a table for this data?