Subject: Re: [xsl] numbers and XPath From: "Endre, MAGYARI" <endre@xxxxxxxxx> Date: Mon, 25 Nov 2002 09:47:57 +0200 (EET) |
> It looks extremely like a bug, I even had to laugh about the processor's > logic ;-) I don't know how to solve it, maybe reduce the number 5000000. > Why do you use the 5000000 in general? The numbers are also unique > without it. Because I'm using this expression in different for-ech loops which run through the same input tree more than once, and in this loops I'm using 100000, 200000... and so on to have unique ids ion the output tree. > > Furthermore you can shorten the expression and remove some conversions: > number('1000') is a conversion from the string '1000' to a number. If > you remove '' or completely number the result shell be the same. > position() also returns a number. So removing all useless number()s and > conversions will result in: > > concat('id', string(number($assoc_pos) * 1000 + 500000 + position())) > > And removing the implicite conversions: > > concat('id', $assoc_pos * 1000 + 500000 + position()) > > Maybe this solves the problem with the processor too. Which processor is > used in XMLSpy 5.2? I assume it's MSXML by default - but in which version? It did not solve the problem. Is there a command line tool or stg. which uses Xalan ? I'm using XMLSpy because I have no other option, but my final application will use Xalan to process the XSLT files. Thank you, Endre XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] numbers and XPath, Joerg Heinicke | Thread | Re: [xsl] numbers and XPath, Joerg Heinicke |
Re: [xsl] xsl:key on variable conta, Grainne Reilly | Date | [xsl] Re: xsl:key on variable conta, Dimitre Novatchev |
Month |