You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Heather Lindsay <he...@Trifolium.com> on 2000/10/23 16:51:06 UTC
error: VariableReference out of context or without definition
> hi,
> I have just started using the new version of xalan and have received
> the following
> error which was not an error in the old version I was using.
>
> XSL Error: pattern = 'substring($SERVLET_PATH,2)'
> VariableReference given for variable out of context or without definition!
> Name =
> SERVLET_PATH, source tree node:
> #document
> Xalan: was not successful
>
> In my XSL file, I have included another XSL file which contains parameter
> definitions. The include XSL file is below:
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:param name = "CP" select = "'undefined'"></xsl:param>
> <xsl:param name = "REVX_NAVIGATION_ROOT" select = "'actionItem'"/>
> <xsl:param name = "SERVLET_PATH" select = "'null'"/>
> <xsl:param name = "CONTEXT_PATH" select = "'null'"/>
> <xsl:param name="USER_NAME" select="'undefined'"/>
> <xsl:variable name="FULL_SERVLET_PATH"
> select="concat($CONTEXT_PATH,$SERVLET_PATH)"/>
> <xsl:variable name = "SERVLET_NAME" select =
> "substring($SERVLET_PATH,2)"/>
> </xsl:stylesheet>
>
> I am testing the XSL by comand line but these parameters will be set on
> the servlet.
>
> Any help would be greatly appreciated,
> Heather