[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Weird variable scoping rules
Graham Ashton wrote:
I tried to iterate over the cells and store the number of labels in a "variable" (i.e. a param), keeping track of the maximum number seen for any cell, but my attempts to keep track of the maximum value seen so far aren't working. You have a wron understanding of XSLT variables and parameters. Variables aren't actually variable, they can be assigned and that's it. Parameters are passed to templates or (in case of global parameters) from the outside into the style sheet. <xsl:if test="$vgroup_size > $max_vgroup_size"> <xsl:param name="max_vgroup_size" select="$vgroup_size"/>
How should I be approaching this? Thanks....
J.Pietschmann 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
|