How to transform xml data into rows and columns?



Here is my input XML:



<data>
<node>1</node>
<node>2</node>
<node>3</node>
<node>4</node>
<node>5</node>
<node>6</node>
<node>7</node>
<node>8</node>
</data>


Required HTML output table:


row = 2



1 | 3 | 5 | 7
2 | 4 | 6 | 8


row = 3



1 | 4 | 7
2 | 5 | 8
3 | 6 |


XSLT-1.0: ??


How do i transform the above xml to the above structure in html. The number of rows is not predefined and will be provided as a parameter.


No comments:

Post a Comment