[Xsltforms-support] xalan infinite loop
Brought to you by:
alain-couthures
|
From: Christian M. <chr...@mu...> - 2010-03-04 19:45:10
|
Hi, I have a very large xform I want to render with xsltforms in exist db. I can render it in the browser allthought it takes a minute also xsltproc and saxon 6.5.5 does the job xalan however fails because the recursion in <xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="getName"> <xsl:param name="s"/> <xsl:param name="r"/> <xsl:choose> <xsl:when test="$s = ''"><xsl:value-of select="$r"/></xsl:when> <xsl:otherwise> <xsl:variable name="c" select="substring($s,1,1)"/> <xsl:choose> <xsl:when test="contains('_.-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',$c) or ($c=':' and not(contains($r,$c)))"> <xsl:call-template name="getName"> <xsl:with-param name="s" select="substring($s,2)"/> <xsl:with-param name="r" select="concat($r,$c)"/> </xsl:call-template> </xsl:when> <xsl:otherwise><xsl:value-of select="$r"/></xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> never exits. This at least shows in the oxigen xslt debugger. maybe it is a problem of xalan but I thought you might want to know. cheers |