Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] XSLT 2.0 and lazy evaluation

From: Jose Emilio Labra <jelabra@-------->
To:
Date: 12/3/2006 11:51:00 PM
Does XSLT 2.0 implement lazy evaluation?

I ask this because the following example returned 4 in
XSLT 1.0 but generates an error in XSLT 2.0
processors.

<xsl:stylesheet
       
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="2.0">

<xsl:template match="/">
 <xsl:call-template name="f">
  <xsl:with-param name="x" select="2" />
  <xsl:with-param name="y" select="3 div 0" />
 </xsl:call-template>
</xsl:template>

<xsl:template name="f">
 <xsl:param name="x" />
 <xsl:param name="y" />
 <xsl:value-of select="$x + $x" />
</xsl:template>

</xsl:stylesheet> 


	
	
		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y msviles desde 1 cintimo por minuto. 
http://es.voice.yahoo.com


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent