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}'
--~------------------------------------------------------------------
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>
--~--