[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] numbers and XPath
Dear list, Thank you all for your replies regarding my attribute question. I have an other problem, this is an expression which gives value to an attribute inline, inside the element definition: "{concat('id',string(number($assoc_pos)*number('1000') + number('500000') + number(position())))}" This is inside an <xsl:for-each> loop and we may assume that all the for-each loop will loop exactly two times. The $assoc_pos variable will have different values, it will start from 5 and it will have an incremented value whenever the processor enters this template. So, the output attribute should be stg. like: id5005001, id5005002 id5006001, id5006002 .... id5009001, id5009002 and so on. And this is how it work, but, it's very strange, when the variable $assoc_pos reaches the value 10, the generated attributes will be id51, id51 I have no idea how could this happen. Is this a bug ? Or I have done stg wrong? I'm using XmlSPY 5.2 Thank you, Endre XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|