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

Re: numbers and XPath

Subject: Re: numbers and XPath
From: "Endre, MAGYARI" <endre@xxxxxxxxx>
Date: Mon, 25 Nov 2002 09:47:57 +0200 (EET)
xslt number 1 000

> 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

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.