R
Robbie Baldock
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:stylesheet
version="1.0"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslaram name="requestContext"/>
<xsl:variable name="site" select="java:$requestContext.getCurrentSite()"/>
</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:stylesheet
version="1.0"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslaram name="requestContext"/>
<xsl:variable name="site" select="java:$requestContext.getCurrentSite()"/>
</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