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

Re: casting string as integer or double

Subject: Re: casting string as integer or double
From: Mario Madunic <hajduk@xxxxxxxx>
Date: Mon, 30 Apr 2007 15:37:10 -0700
Re:  casting string as integer or double
David,

Your method worked like a charm. I used it in the variable declaration and not
the with-param.

I'm storing that one away and start using it consistently. I know for a fact it
is not empty and at one point I thought my context was wrong. I tested it by
outputting the value of @cols as an attribute and each time a value appeared.
Then I'd keep the test there and then added the called template and then the
error message would appear.

Alls working fine now and appreciate the help. I guess this is what happens when
you listen to Wreckless Eric while coding.

MM

Quoting David Carlisle <davidc@xxxxxxxxx>:

> 
> > I know that the value is not empty but a whole number.
> 
> well unless given evidence to the contrary I'd suspect that saxon is
> right and @cols is empty. Are you sure the current node is what you
> think is is?
> 
> David
> 
> ________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company registered in England
> and Wales with company number 1249803. The registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
> 
> This e-mail has been scanned for all viruses by Star. The service is
> powered by MessageLabs. 
> ________________________________________________________________________

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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-2007 All Rights Reserved.