[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Param value not getting value passed
My guess is that your stylesheet is going through the built-in
template rules, which do not pass simply-passed parameter values
down. What you have coded only works if the template being invoked
is invoked without the built-in template rules having been invoked in-between.
Note, however, that XSLT 2 supports tunnel parameters, which can be considered to be automatically passed through every <xsl:apply-templates> and every <xsl:call-template>, including built-in template rules, without having to say so explicitly. So, if you are running XSLT 2, try: <xsl:with-param name="group-value" tunnel="yes" select="16"/> ... and the corresponding: <xsl:param name="group-value" tunnel="yes" select="0"/> BTW, you should note that: select="number(16)" ... is redundant because just "16" is also interpreted as a number, and that <xsl:param name="group-value">0</xsl:param> ... creates a variable of the type document tree with a root node and a text node with the character 0, whereas my use of the select attribute has the data type of number, which is what I think you are trying to use. I hope this helps. . . . . . . Ken At 2011-01-30 15:05 -0700, Karl Stubsjoen wrote: I'm perplexed. I have a template match routine and param value that is not receiving the param value passed. I am passing the param value like this: -- Contact us for world-wide XML consulting & instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
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
|