xsl prg when using forloop

S

sandy

xsl prg when using forloop
------------------------------
<xsl:template>
<xsl:call-template name="forloop">
<xsl:with-param name="i" select="number(1)" />
</xsl:call-template>
</xsl:template>

<!-- forloop function() emulation -->
<xsl:template name="forloop">
<xsl:param name="i">0</xsl:param>
<xsl:if test="number($i) &lt;= 10">
Printed '<xsl:value-of select="$i"/>' time(s) <br />
<xsl:call-template name="forloop">
<xsl:with-param name="i" select="$i + 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
------------
some exception raised will u plz help me
-------------
org.apache.jasper.JasperException: Process.forloop(Lcom/sun/org/apache/
xalan/internal/xsltc/DOM;Lcom/sun/org/apache/xml/internal/dtm/
DTMAxisIterator;Lcom/sun/org/apache/xml/internal/serializer/
SerializationHandler;I)V

javax.servlet.ServletException: Process.forloop(Lcom/sun/org/apache/
xalan/internal/xsltc/DOM;Lcom/sun/org/apache/xml/internal/dtm/
DTMAxisIterator;Lcom/sun/org/apache/xml/internal/serializer/
SerializationHandler;I)V

java.lang.NoSuchMethodError: Process.forloop(Lcom/sun/org/apache/xalan/
internal/xsltc/DOM;Lcom/sun/org/apache/xml/internal/dtm/
DTMAxisIterator;Lcom/sun/org/apache/xml/internal/serializer/
SerializationHandler;I)V
Process.template$dot$0()
Process.applyTemplates()
Process.applyTemplates()
Process.transform()

com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(Unknown
Source)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top