[xslt] libxslt/tests/general/bug-41-.*



I am using libxslt 1.0.1 with 27-Jul cvs snapshot.

I was looking at the output from bug-41-.xsl
in ./tests/genernal.  It doen't seem quite
right to me.

The input xml is simply <doc/>

The stylesheet is:

  <?xml version='1.0'?>
  <xsl:stylesheet
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version='1.0'>

  <xsl:variable name="foo" select="'FAILURE'"/>

  <xsl:template name="test">
  <xsl:value-of select="$foo"/>
  </xsl:template>

  <xsl:template match="/">
  <xsl:variable name="foo" select="'FAILURE'"/>
  <xsl:call-template name="test">
    <xsl:with-param name="foo" select="'SUCCESS'"/>
  </xsl:call-template>
  </xsl:template>

  </xsl:stylesheet>

The output is "SUCCESS".  What bothers me is that there
is no <xsl:param> inside template "test".  Therefore,
how could parameter foo ever become visible in "test" ?

Tom Moog
Polhode, Inc.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]