Subject: Re: [xsl] What's evaluated first: @select or xsl:with-param? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 18 Oct 2010 16:40:58 +0100 |
Michael Kay Saxonica
Hello!
I've seen a code like this: ---------- <xsl:variable name="a" as="element()?" select="..."/> <xsl:variable name="b" as="element()?" select="..."/>
<xsl:apply-templates select="$a"> <xsl:with-param name="b" tunnel="yes" as="element()" select="$b"/> </xsl:apply-templates> ----------
It fails with an error: "An empty sequence is not allowed as the value of parameter $b".
What is interesting is that the value of $a is an empty sequence, so the code could potentially work, provided processor evaluated $a first, and decided not to evaluate xsl:with-param.
Whether the order of evaluation of @select and xsl:with-param is specified
by the standard or it's an implementation defined?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] What's evaluated first: @sele, Vladimir Nesterovsky | Thread | [xsl] testing for existence of cont, Terry Ofner |
[xsl] What's evaluated first: @sele, Vladimir Nesterovsky | Date | [xsl] testing for existence of cont, Terry Ofner |
Month |