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

Subject: Re: [xsl] xsL:with-param, xsl:-param emptiness, Xalan and xsltproc
From: Eric White <eric.white@xxxxxxxxxxx>
Date: Thu, 23 Mar 2006 10:04:42 -0600
Kasimier Buchcik wrote:

Use curly braces around the param's name:

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



No joy.... I'm still working through the template priority logic... Michael's suggestion about template defaults sounds encouraging.

Changed to:

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



Xalan:


java -cp ~/src/livecd/thirdparty/java/xalan/2.7.0/xalan.jar org.apache.xalan.xslt.Process -XSL test.xsl -IN default.xml

SystemId Unknown; Line #66; Column #107; XSLT Error (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: A location path was expected, but the following token was encountered: {

xsltproc:

/xsltproc test.xsl default.xml XPath error : Invalid expression
{$SupportedNegotiate}
^
compilation error: file test.xsl line 66 element value-of
xsl:value-of : could not compile select expression '{$SupportedNegotiate}'

Current Thread