[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Incrementing a Global variable
> I am not asking to introduce variables as like in > procedural languages.. Oh yes you are. > > and lets assume for e.g. -- this template is being > processed at some point.. > <xsl:template matche="something"> > <xsl:variable2 name="a" select="$a + 1" /> > </xsl:template> > > When the processor encounters the statement -- > <xsl:variable2 name="a" select="$a + 1" /> it will > increment the value of "a" at a global place.. > The key point is the phrase "When the processor". The effect makes the result dependent on the order of execution. >Thanks for your reference about <xsl:for-each >select="20 to 30"> ... but I could not see it on the >XSLT 2.0 site -- http://www.w3.org/TR/xslt20/ The value of the select attribute can be any XPath 2.0 expression. "20 to 30" is an XPath 2.0 expression that returns a sequence of integers. Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|