|
Subject: [xsl] numbers and XPath From: "Endre, MAGYARI" <endre@xxxxxxxxx> Date: Sun, 24 Nov 2002 20:45:22 +0200 (EET) |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Interesting issue, Mike Brown | Thread | Re: [xsl] numbers and XPath, Joerg Heinicke |
| Re: [xsl] Interesting issue, Mike Brown | Date | [xsl] how can I deal with the xml p, Wang Ning |
| Month |