DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6072>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6072 XSLTC treats 'select' attribute incorrect if used in <xsl:variable> element [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|Other |High ------- Additional Comments From [EMAIL PROTECTED] 2002-01-29 21:02 ------- I verified the problem, which is that the value assigned to the variable is incorrect when it gets its value from the Expression in the 'select' attribute of the xsl:variable statement, but correct when it gets its value from its template body content. I.E. <xsl:variable name="foo" select="preceding-sibling::*[position() =1]/@x" /> versus <xsl:variable> <xsl:value-of select="preceding-sibling::*[position() =1]/@x"/> </xsl:variable> The problem goes away if you take out "position()=1" from the Expression. I.E. <xsl:variable name="foo" select="preceding-sibling::*/@x"></xsl:variable> works, returning the expected value of "1".
