This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[Slides] XSLT-Error
- From: Gisbert Amm <gia at webde-ag dot de>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 25 Nov 2002 16:57:26 +0100
- Subject: DOCBOOK-APPS: [Slides] XSLT-Error
Hi,
I'm using Xalan C++ 1.4, Docbook XSL 1.57.0 and Slides 3.0.0 on a SuSE
Linux 7.0 machine.
I got the following error:
XSLT error: A variable with this name has already been declared in this
template (<path>/../common/table.xsl, line 293, column 41)
Changing
<xsl:variable name="namest.value">
<xsl:if test="$entry/@namest">
<xsl:variable name="namest" select="$entry/@namest"/>
<xsl:variable name="colspec"
select="$tgroup/colspec[@colname=$namest]"/>
<xsl:variable name="namest.value"> <!-- wrong second declaration
of namest.value (seems local within namest.value) -->
<xsl:call-template name="get-attribute">
<xsl:with-param name="element" select="$colspec"/>
<xsl:with-param name="attribute" select="$attribute"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$namest.value">
<xsl:value-of select="$namest.value"/>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:variable>
into something like
<xsl:variable name="namest.value">
<xsl:if test="$entry/@namest">
<xsl:variable name="namest" select="$entry/@namest"/>
<xsl:variable name="colspec"
select="$tgroup/colspec[@colname=$namest]"/>
<xsl:variable name="namest.value1">
<xsl:call-template name="get-attribute">
<xsl:with-param name="element" select="$colspec"/>
<xsl:with-param name="attribute" select="$attribute"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$namest.value1">
<xsl:value-of select="$namest.value1"/>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:variable>
seems to fix the problem.
Anyway, I'm not sure.
Regards
Gisbert Amm