[xslt] RE: xslt digest, Vol 1 #53 - 2 msgs



Thank you so much, reply to me..
But I still have a problem..
I want to get node value using xsl:param.

xsl)
 ...
 <xsl:param name="tag1"/>
 <xsl:param name="tag2"/>
 
 <xsl:template match="/">
     First Value : <xsl:value-of select="$tag1"/>
    Second Value : <xsl:value-of select="$tag2"/>
 </xsl:template>
 ...

xml)
<test>
   <aaa> You got the node1 </aaa>
   <bbb> You got the node2 </bbb>
   <ccc> You got the node3 </ccc>
   <ddd> You got the node4 </ddd>
</test>

 xsltproc --param tag1 aaa --param tag2 ddd test.xsl test.xml

When executing, I want to ...  
   First Value: You got the node1 
   Second Value: You got the node4 

But,, xsltproc --param tag1 "aaa" --param tag2 "ddd" test.xsl test.xml => First Value : Second Value:
        xsltproc --param tag1 "'aaa'" --param tag2 "'ddd'" test.xsl test.xml => First Value: aaa Second Value: ddd

 I don't know how to use.... 




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