Subject: Re: [xsl] an expression to check if a parameter is a non-zero number - comments From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 30 Oct 2003 14:09:02 -0500 |
<xsl:when test="true(string-length(translate($ImageWidth,'0123456789.','')) = 0 and $ImageWidth != 0)">
I want to check if the incoming parameter ImageWidth is a non-zero number.
I am wondering it the above expression would work?
Is there a better way to do that checking ?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] an expression to check if, Michael Kay | Thread | [xsl] Re: an expression to check if, Dimitre Novatchev |
RE: [xsl] an expression to check if, Michael Kay | Date | Re: [xsl] Conditionally assigning v, Wendell Piez |
Month |