[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Number of Templates Exceeded - Xalan

Subject: Number of Templates Exceeded - Xalan
From: Sundararaman S A <sundararaman.sa@xxxxxxxxx>
Date: Wed, 8 Dec 2004 15:48:49 +0530
number templates
Hi,

I have a complex xsl file which has many recursive templates and templates. 

The problem I am facing is this: 
I have a template which is used to find the sorting order for a
particular column
in the list. I have used the recursive template to do this..

The template is given below:

	<xsl:template name="findTheOrdering">
	<xsl:param name="sortCol"/>
	<xsl:param name="orderbylist"/>
		<xsl:variable name="temp">
			<!--<xsl:call-template name="findThePrevOrdering">
			<xsl:with-param name="sortCol" select="$sortCol"/>
			<xsl:with-param name="orderbylist" select="$orderbylist"/>
			</xsl:call-template>-->
			<xsl:call-template name="Summa"/>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="string($temp)='asc'">
				<xsl:value-of select="'desc'"/>
			</xsl:when>
			<xsl:when test="string($temp)='desc'">
				<xsl:value-of select="'asc'"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="'asc'"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

In the above template, I have commented the code for Call-template
"findThePrevOrdering".  Instead I have put an empty template
called "Summa"..

Even with this empty template the Xalan is throwing error
something like:

880 >= 1

See If I remove any template reference here, the xsl is working fine.
Is there any limitation in using
Xsl:when
XSL:Call-template
or XPath functions or xsl functions inside the xsl??

Is there any limitation for number of templates defined in the XSL file??

Thanks and Regards,
sundar

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.