Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Michael Kay <mike@sa...> - 2006-07-28 21:36:16
|
> Same problem in 8.7.3. > > Just a remark: the stylesheet in question has no global > variables or params, at least not explicitly. > This really surprises me. Saxon only creates a GlobalParam object in two situations: (a) in XSLT, for an xsl:param element appearing as a child of an xsl:stylesheet element, and (b) in XQuery, for "declare variable ... external". So there's something pretty strange going on! One reason this might happen when tracing is that when tracing is on, Saxon evaluates all global variables eagerly, rather than waiting until the variable is first referenced. This might cause variables to be evaluated even if they are never referenced. One thing I will want to look at is whether it's possibly causing a param to be evaluated even though it is masked by a higher-precedence variable or param with the same name. Michael Kay http://www.saxonica.com/ |