xsl-list
[Top] [All Lists]

RE: Malformed (??) XML and XML 2 SQL XSLT transformation

2003-11-14 08:51:06
-----Original Message-----
From: Guillaume LECERF

Excuse me for being lame, but I'm rather new to XSL and I got an
error with :

No worries, and certainly no reason to apologize ;) (don't we all get a bit
lame from time to time?)


Root template
         <xsl:template match="/"><xsl:apply-templates

ended on the following line
mode="columns"/><xsl:apply-templates mode="values"/></xsl:template>

Customer/Template/Fields template
         <xsl:template match="Customer/Template/Fields">
         <xsl:for-each select="item[position() mod group-size = 1]">

should be ended here, before starting Orders template (column mode)

<snip/>

Orders Template (value mode)
                 <xsl:template match="Orders" mode="values">
values(<xsl:for-each select="Customer/Template/Fields">"<xsl:value-of
select="FieldValue" />"<xsl:if test="position() !=

ended on the following line
last()">,</xsl:if></xsl:for-each>);</xsl:template>

and the two lines below should be deleted
         </xsl:for-each>
         </xsl:template>


Cheerz,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list