xsl-list
[Top] [All Lists]

Re: [xsl] xsL:with-param, xsl:-param emptiness, Xalan and xsltproc

2006-03-23 08:56:19
Hi,

On Thu, 2006-03-23 at 09:15 -0600, Eric White wrote:
I've tried both xalan (2.7.0) and xsltproc (compiled against libxml 
20623, libxslt 10115 and libexslt 812) and can't get xsl:with-param 
calls to show up in my xsl:param arguments to templates.  The included 
xsl shows the various forms/syntaxes I've tried, to no avail.  Since 
both Xalan and xsltproc exhibit the same behavior, the problem must lie 
in my construct or syntax.  Any help is greatly appreciated.

[...]

<xsl:template match="physInterfaceSupportedAutonegotiation">
  <xsl:param name="SupportedNegotiate"/>
  <xsl:element 
name="physInterfaceSupportedAutonegotiation"><xsl:value-of 
select='$SupportedNegotiate'/></xsl:element>
</xsl:template>

Use curly braces around the param's name:

...
<xsl:with-param name="SupportedNegotiate" select="'true'"/>
...
<xsl:value-of select="{$SupportedNegotiate}/>
...

[...]

Regards,

Kasimier

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--