Re: [xslt] Different behavior of Key() betwen versions 1.1.7 and 1.1.11 of libxslt
- From: Stephane Mottelet <stephane mottelet utc fr>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Different behavior of Key() betwen versions 1.1.7 and 1.1.11 of libxslt
- Date: Wed, 07 Sep 2005 18:31:45 +0200
Ok I upgraded to 1.1.15, and now I have new xsl bugs. I have
an xsl stylesheet with a global parameter
<xsl:param name="lang"/>
which is fed by a --stringparam lang french in the
xsltproc options
The param is correctly seen there :
<xsl:template match="/">
<xsl:message><xsl:value-of select="$lang"/></xsl:message>
<xsl:apply-templates/>
but not here any more (was ok in 1.1.7) :
<xsl:template match="title[(@lang=$lang) or not(@lang)]">
<comment>
<xsl:value-of select="."/>
</comment>
</xsl:template>
XPath error : Undefined variable
(@lang=$lang) or not(@lang)
^
compilation error: file /home/mottelet/XMLlab//xsl/simulation.xsl line
211 element template
Failed to compile predicate
Did something change in the scope of global parameters ?
S.
Stephane Mottelet wrote:
Daniel Veillard wrote:
On Wed, Sep 07, 2005 at 05:31:35PM +0200, Stephane Mottelet wrote:
Hi !
I have correctly working stylesheets under version 1.1.7 of libxslt
that are broken since I upgraded to 1.1.11. The construct is of the
type
the current version is 1.1.15, I really don't have time to debug past
versions.
And I really need complete examples to look though some issues, if I
need to guess something I just don't try to do it.
Daniel
ok I try with 1.1.15 and if it still fails I will give you
a complete self-contained example.
S.
--
e-mail : Stephane Mottelet utc fr
www : http://www.dma.utc.fr/~mottelet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]