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

RE: dereferencing count() within comparison test

Subject: RE: dereferencing count() within comparison test
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sun, 25 Jan 2004 16:31:02 -0000
xsl test count
I don't know what you mean by "dereferencing" - the result of count() is
not a reference, it is a number.

Your code looks fine. Though applying number() to the result of count()
is redundant. 

To quote many previous replies on this list: your error is in the part
of the code that you haven't shown us.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Andrew Maclean
> Sent: 23 January 2004 12:57
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  dereferencing count() within comparison test
> 
> 
> Dear all,
> 
> I have a problem dereferencing the value of the count() 
> function.  Testing 
> shows that count() evaluates to 5, and that $paramCount 
> evaluates to 1 in 
> the following code snippet.  The loop is not enetered into, however.
> 
>       <xsl:when test="$paramCount &lt; 
> number(count(exsl:node-set($A)/derivedType)+1) ">
> 
> I can copy and paste the syntax from "(count(exsl" into a 
> select and find 
> out that it is indeed 5, but putting it together with the  
> "&lt;" comparison 
> seems to make it non-numeric.  Could some one please tell me why?
> 
> Thanks a lot,
> 
> Mr Andrew Maclean
> 
> _________________________________________________________________
> Use MSN Messenger to send music and pics to your friends 
> http://www.msn.co.uk/messenger
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.