I have a problem with transforming xml - what I need to do is to insert a group of tags number of which depends on some other tags. For instance I need to add table-column tags to a table which equal to the number of cells in the first row. So the starting code would look something like
<table><tr><td/><td/></tr></table>
and the ending like
<table><tc/><tc/><tr><td/><td/></tr></table>
How do I do that?
<table><tr><td/><td/></tr></table>
and the ending like
<table><tc/><tc/><tr><td/><td/></tr></table>
How do I do that?