Re: [xsl] xsl:variable and xsl-param ... local and global perspecitve

Subject: Re: [xsl] xsl:variable and xsl-param ... local and global perspecitve
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 06 Dec 2004 11:42:13 +0000
>>>>> "Manpreet" == Manpreet Singh <singhm@xxxxxxxxxxx> writes:

    Manpreet> Hi, The following statment appears in the xslt specs. I
    Manpreet> want to know that in the second sentence below, are we
    Manpreet> talking of 2 different perspectives when we declare a
    Manpreet> variable or parameter, or is there a difference in the
    Manpreet> their written form in xslt also?
	
    Manpreet>   "Note that the xsl:variable and xsl:param elements can
    Manpreet> act either as declarations or as instructions. A global
    Manpreet> variable or parameter is defined using a declaration; a
    Manpreet> local variable or parameter using an instruction."

No - it's just the location of the instruction or declaration.

If it's an immediate child of the stylesheet element (xsl:stylesheet
or xsl:transform), then it's a declaration, and a global parameter or
variable.

Otherwise it's an instruction / local variable or parameter.
-- 
Colin Paul Adams
Preston Lancashire

Current Thread