Subject: Re: [xsl] Simple template matching problem From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 07 May 2007 23:40:49 +0200 |
I have a problem with the below templates. The first template *ideally* displays a bunch of input fields, based on the table's structure as defined by $invTable.
The second template *ideally* creates a single form control (there are several besides 'varchar'/'float')
My problem is that when the top template is "Records/Record" I'm getting infinite recursion loop. When I use match "Records" all is fine. I suspect its because of a template mismatch.
<xsl:template match="Records/Record"> <xsl:apply-templates select="$invTable[COLUMN_NAME='beginDate']"> <xsl:with-param name="value" select="//beginDate" />
</xsl:apply-templates> </xsl:template>
<xsl:template match="Record[DATA_TYPE='varchar' or DATA_TYPE='float']"> <appropriateInputBox /> </xsl:template>
Cheers, -- Abel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Simple template matching , Steve | Thread | Re: [xsl] Simple template matching , Steve |
Re: [xsl] Documentation for Gestalt, Florent Georges | Date | Re: [xsl] How to merge multiple XML, David Carlisle |
Month |