|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Malformed (??) XML and XML 2 SQL XSLT transformati
Excuse me for being lame, but I'm rather new to XSL and I got an error with :
<xsl:template match="/"><xsl:apply-templates mode="columns"/><xsl:apply-templates mode="values"/></xsl:template> <xsl:template match="Customer/Template/Fields"> <xsl:for-each select="item[position() mod group-size = 1]"> <xsl:template match="Orders" mode="columns">INSERT INTO orders(<xsl:for-each select="Customer/Template/Fields">"<xsl:value-of select="@FieldName" />"<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>)</xsl:template> <xsl:template match="Orders" mode="values"> values(<xsl:for-each select="Customer/Template/Fields">"<xsl:value-of select="FieldValue" />"<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>);</xsl:template> </xsl:for-each> </xsl:template> ERROR : Sablotron error on line 10: XSL element 'template' can only be used at the top level :( At 16:17 14/11/2003 +0100, you wrote: > -----Original Message----- > From: Guillaume LECERF > > > Thanks for your answer, but my problem is that I need to generate TWO > different insert instructions, each orders begginng with the <Fields > FieldName="User Login ID"> tag. > -- Guillaume LECERF Ingenieur Systemes d'Information / Responsable Production - Gage Interactive http://www.activprint.com - +33 (0)2.31.06.67.62 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








