Hi -
I'm a bit of a newbie to the world of XSLTs but am trying to call a Java method on a parameter passed into an XSLT but
am having problems.
I've stripped the XSLT down to its bare bones:
<xsl:styleshe et
version="1.0"
xmlns:java="htt p://xml.apache.org/xslt/java"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:param name="requestCo ntext"/>
<xsl:variable name="site" select="java:$r equestContext.g etCurrentSite() "/>
</xsl:stylesheet>
But xsl:variable line produces the error:
"A node test that matches either NCName:* or QName was expected."
Can anyone spot where I'm going wrong?
Thanks for any suggestions.
Robbie
I'm a bit of a newbie to the world of XSLTs but am trying to call a Java method on a parameter passed into an XSLT but
am having problems.
I've stripped the XSLT down to its bare bones:
<xsl:styleshe et
version="1.0"
xmlns:java="htt p://xml.apache.org/xslt/java"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:param name="requestCo ntext"/>
<xsl:variable name="site" select="java:$r equestContext.g etCurrentSite() "/>
</xsl:stylesheet>
But xsl:variable line produces the error:
"A node test that matches either NCName:* or QName was expected."
Can anyone spot where I'm going wrong?
Thanks for any suggestions.
Robbie
Comment