<xsl:for-each select="ConsumptionData">
<xsl:variable name="conToubucket" select="ConsumptionData/ConsumptionSpec/@TouBucket"/>
xsl:for-each changes the context node. Within the for-each, your path expressions need to select relative to the context node. You're positioned at a ConsumptionData element, so get rid of that first step in the path expression.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|