|
Subject: [xsl] XSLT 2.0 and lazy evaluation From: Jose Emilio Labra <jelabra@xxxxxxxx> Date: Mon, 4 Dec 2006 00:50:12 +0100 (CET) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How do I line up fo:block, Asbjørn Thorsen | Thread | RE: [xsl] XSLT 2.0 and lazy evaluat, Michael Kay |
| Re: [xsl] How do I line up fo:block, G. Ken Holman | Date | RE: [xsl] XSLT 2.0 and lazy evaluat, Michael Kay |
| Month |