I have an XSLT file for transforming data from table to INSERT statements.
So the output looks like
INSERT INTO some_table VALUES (Voda, Šenov);
INSERT INTO some_table VALUES (Vorba, Vlčnov);
which is fine to me.
My XSLT contains this three lines
<xsl:for-each select="PAGE/ROWSET/ROW">
INSERT INTO some_table VALUES (<xsl:value-of select="SURNAME"/>, <xsl:value-of select="CITY"/>);
</xsl:for-each>
And here is the question, I really dont want to put so many values on the same line(my table has like 20 columns) in order to maintain the formatting in output, so is there a way how to keep output the same and have my columns in INSERT on multiple lines in for-each?
Thanks a lot for answers
EDIT
I would like to have the for-each loop like this
<xsl:for-each select="PAGE/ROWSET/ROW">
INSERT INTO some_table VALUES va1 ,val2 (
<xsl:value-of select="SURNAME"/>,
<xsl:value-of select="CITY"/>);
</xsl:for-each>
Try
In XML Spy, with input
I get