View Single Post
  #3 (permalink)  
Old July 9th, 2009, 08:17 PM
navik_pathak navik_pathak is offline
Authorized User
Points: 75, Level: 1
Points: 75, Level: 1 Points: 75, Level: 1 Points: 75, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2009
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mhkay View Post
Well, each ROW has one element child, so the for-each select="*" selects one node, and the position of that node is always 1. So $pos is always 1. $ItemIndex is a sequence of integers of length 1 (specifically, a singleton integer whose value is zero), so $ItemIndex[$pos] is the first integer in this sequence, which is zero. I've no idea what you had in mind when you wrote this code.

Try:

Code:
<xsl:template match="ROW">
  <xsl:number/>
  <xsl:value-of select="ERROR_MESSAGE"/>
</xsl:template>
Thanks mhkay..newbie to coming to begginer level...overthinking ....so i did that mistake....your solution worked perfactly...
Reply With Quote