|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Boolean XPath Expression and sum
John Wang wrote: > > > <?xml version="1.0"?> > <abuncha> > <thing>1</thing> > <thing>2</thing> > <thing>3</thing> > <thing>5</thing> > <sum>11</sum> > </abuncha> > > my question is: Where does the 11 come from? > Aha. Try ... <count> <xsl:value-of select="count(//thing[.!='N/A'])"/> </count> ... for the value you *do* want. The origin of the 11? Consider the difference between sum() and count() ... Francis. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








