[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: numbers and XPath
> 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
|
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
|