xsl-list
[Top] [All Lists]

Re: [xsl] Multi condition sum [Correction]

2008-12-12 05:32:16
Hello,

Now I want to add all Quantity IF Status = "Available".

All sum is this: sum(books/book[(_at_)name="quantity"])
I think its
sum(books/book/column[(_at_)name = 'quantity'])
but how to add the Status = "Available" condition???
I think it should be
sum(books/book[column[(_at_)name = 'status'] = 'available']/column[(_at_)name = 'quantity'])



Christoph Naber

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>