[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

numbers and XPath

Subject: numbers and XPath
From: "Endre, MAGYARI" <endre@xxxxxxxxx>
Date: Sun, 24 Nov 2002 20:45:22 +0200 (EET)
 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.