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

RE: How to "quo" without "quo"

Subject: RE: How to "quo" without "quo"
From: "Michael Fitzgerald" <mike@xxxxxxxxxx>
Date: Thu, 8 Mar 2001 14:56:13 -0800
calculate median xsl
Lindy,

I think you want the div operator. See section 3.2 of the XPath spec for
more details (http://www.w3.org/TR/xpath#numbers).

gl,

-Mike

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Lindy Quick
> Sent: Thursday, March 08, 2001 2:29 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  How to "quo" without "quo"
>
>
> That returns the remainder.  I am in need of the quotient.
> Lindy
>
> -- Original Message --
>
> >Every time I've seen an example like that it's been "... mod 2".
> >
> >PC2
> >
> >-----Original Message-----
> >From: Lindy Quick [mailto:lindyq@xxxxxxxx]
> >Sent: March 8, 2001 14:07
> >To: XSL List
> >Subject:  How to "quo" without "quo"
> >
> >
> >Hello,
> >
> >I have found previous examples of the "quo" operator, but I realize that
> >it is no longer in the standard.  Can anyone tell me why it was removed
> >and how to perform its functionality another way?
> >
> >I am trying to calculate the median, and am having problems.  I think the
> >way it will have to be done is to sort the list, count the list, divide
> >the count by 2 returning a whole number, and then select the position of
> >the divided count.  This is what I am attempting to do below, but it is
> >not working.
> >
> ><xsl:for-each select="profile-table/row/Whole-request">
> >  <xsl:sort data-type="number" order="descending"/>
> >  <xsl:if test="position()=count(profile-table/row) quo 2">
> >    <xsl:value-of select="."/>
> >  </xsl:if>
> ></xsl:for-each>
> >
> >If I set the position to a static number it is fine.  I have also tried
> >checking just the count(profile-table/row) quo 2 and that is how I found
> >out that quo no longer exists in the standard.
> >
> >I look forward to any help you can provide.
> >Thanks in advance
> >Lindy Quick
> >
> >
> >
> >
> >--
> >iWon <http://www.iwon.com/> - Voted the #1 portal on the Web!
> >
> >
> >
> >
> > XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> > XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> >
>
>
>
>
> --
> iWon <http://www.iwon.com/> - Voted the #1 portal on the Web!
>
>
>
>
>  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.