With XML a digit is not allowed as the first letter in a name so the output you describe is not even XML.
Other than that you can of course create elements dynamically with computed named using xsl: element.
And you can group the input you have in chunks of four elements, how you do that easily depends on the XSLT version you use. Do you use XSLT 2.0 or 1.0?
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|