Hi List,

I've been using a xslt, which worked fine until I have upgraded to version
libxslt-1.1.23.win32/libxml2-2.6.32.win32 It complains about the highlighted
line.

*XSLT Code*

<xsl:template name="generate-params">
  <xsl:param name="direction"/>
  <xsl:variable name="containername">
    <xsl:choose>
      <xsl:when test="$direction = '#in'">params</xsl:when>
      <xsl:otherwise>returns</xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  *<xsl:element name="{$containername}">*   <!-- I am getting an error here,
line *535* -->
    <!-- more stuff here -->
  </xsl:element>
</xsl:template>

*Error

*runtime error: file wsdl2sig.xslt line 535 element element Variable
'containername' has not been declared.
xmlXPathCompiledEval: evaluation failed

above code worked with libxslt-1.1.22.win32 / libxml2-2.6.30.win32.

any help would be appreciated.

regards,

Ruwan Janapriya.
http://www.janapriya.net
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to