Subject: Re: [xsl] TOUGH ONE: All Grandmasters - how- iteratable key-value pair/array/lookup table that has only local scope with the xsl template|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Sep 2003 22:16:14 -0400
<xsl:variable name="MatrixColWidths"> <xsl: <xsl:variable name="'1'" select="100"/> <xsl:variable name="'2'" select="200"/> <xsl:variable name="'3'" select="300"/> <xsl:variable name="'4'" select="400"/> </xsl:variable>
Or like this ( as shown on DPawsons FAQ as picked up from ) - http://www.biglist.com/lists/xsl-list/archives/200004/msg00714.html (Also the example test.xsl and class.xsl don't seem to work for me.. to even test it out.. anyone suggest any fixes so I can see how it works)
<xsl:variable name="MatrixColWidths"> <c colno="1" colw="100"/> <c colno="2" colw="75"/> <c codno="3" colw="80"/> <c codno="4" colw="75"/> </xsl:variable>
so that I can pick up the values for the COLUMN WIDTHS for ANY and EVERY "Matrix or Table" in that Section by iterating through that array or whatever other structure/variable I can use (xsl or non-xsl namespace) but LOCAL to the Section.
I don't really care how this is done as I am not sure if I can define any such structure, keep it local as well as be able to ITERATE through it to pull values.
Any genius solve this one ?? :)
I ve been trying to abstract this problem out to the list but have been getting nowhere.
-- Next public European delivery: 3-day XSLT/2-day XSL-FO 2003-09-22 Next public US delivery: 3-day XSLT/2-day XSL-FO 2003-10-13 Instructor-led on-site corporate, government & user group training for XSLT and XSL-FO world-wide: please contact us for the details
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-11-X Practical Formatting Using XSL-FO Member of the XML Guild of Practitioners: http://XMLGuild.info Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc