RE: [xsl] xsl:variable and xsl-param ... local and global perspec itve

Subject: RE: [xsl] xsl:variable and xsl-param ... local and global perspec itve
From: Manpreet Singh <singhm@xxxxxxxxxxx>
Date: Mon, 6 Dec 2004 17:20:34 +0530
Thanx

-----Original Message-----
From: Colin Paul Adams [mailto:colin@xxxxxxxxxxxxxxxxxx]
Sent: Monday, December 06, 2004 5:12 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] xsl:variable and xsl-param ... local and global
perspecitve


>>>>> "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