[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Increment a variable
> How can I achieve following c++ code in XSLT. use an extension function that allows you to call out to an external program writen in C++. XSL variables, like variables in other declarative languages, and in mathematics, denote values not memory locations, so you can't "increment" a variable, as that really means "change the value stored in the memory location denoted by the variable". Typically you do for(int i=0;i<1000;i++) in C to iterate over the 1000 elements of some array. In XSL you don't need to go to such contortions: If you want to iterate over all the nodes in a node set, you just say that explictly, xsl:for-each select="... David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
|
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
|