menardmam
02-04-2008, 05:18 AM
here is my little code
<?xml version="1.0" encoding="ISO-8859-1"?><!-- DWXMLSource="listedeprix.xml" -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
<xsl:template match="/">
<xsl:param name="myOrder" />
<table cellspacing="0" class="tableclass">
<xsl:for-each select="pricelist/item">
<tr>
<td width="162"><div align="left"><strong><xsl:value-of select="desc[@lang='fra']"/></strong></div></td>
</tr>
</xsl:for-each>
</table>
at this line :
<td width="162"><div align="left"><strong><xsl:value-of select="desc[@lang='fra']"/></strong></div></td>
it work fine
when i substitute 'fra' (that mean french) for the value i send with the param.... nothing... yep , just nothing come.. it lie passing null
that line did not work!
<td width="162"><div align="left"><strong><xsl:value-of select="desc[@lang=$myOrder]"/></strong></div></td>
<?xml version="1.0" encoding="ISO-8859-1"?><!-- DWXMLSource="listedeprix.xml" -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
<xsl:template match="/">
<xsl:param name="myOrder" />
<table cellspacing="0" class="tableclass">
<xsl:for-each select="pricelist/item">
<tr>
<td width="162"><div align="left"><strong><xsl:value-of select="desc[@lang='fra']"/></strong></div></td>
</tr>
</xsl:for-each>
</table>
at this line :
<td width="162"><div align="left"><strong><xsl:value-of select="desc[@lang='fra']"/></strong></div></td>
it work fine
when i substitute 'fra' (that mean french) for the value i send with the param.... nothing... yep , just nothing come.. it lie passing null
that line did not work!
<td width="162"><div align="left"><strong><xsl:value-of select="desc[@lang=$myOrder]"/></strong></div></td>