[xslt] xsl:param is not works..

I can't English,, Sorry.. But, I try.... ^^
I have a problem.. 
when I use libxslt-0.9.0, xsl:param is works, using xsltproc --param tag value..
But,, libxslt-0.10.0 and 0.11.0 is not works. 

xsl :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>

<xsl:param name="tag1"/>
<xsl:param name="tag2"/>

<xsl:template match="/">
   <xsl:if test="$tag1">
      tag1: <xsl:value-of select="$tag1"/>
   <xsl:text> and </xsl:text>
   <xsl:if test="$tag2">
   tag2 : <xsl:value-of select="$tag2"/>
   <xsl:text> !! </xsl:text>



xsltproc --param tag1 test1 --param tag2 test2 test.xsl test.xml

result: and  !!

Help Me... 

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