xsl-list
[Top] [All Lists]

Re: Lookup Table?

2004-08-16 19:07:38
How about something like this?
<xsl:value-of select="count(//MOP[number(.)&gt;0])"/>

Josh

On Mon, 16 Aug 2004 22:39:16 +0000, john lee <excel_man(_at_)hotmail(_dot_)com> 
wrote:
Dear All,

This is the situation: I need to get the number of currently open account
(which is indicated by MOP element), If MOP value is a number, not a
2-char-code, then the current account is opened, otherwise it's close. The
MOP number could be 01 - 09. This is the xml:

<Trades>
<Record id="1">
 <MOP>01</MOP>
 <Inquiry_Type>I</Inquiry_Type>
 </Record>
<Record id="2">
 <MOP>02</MOP>
 <Inquiry_Type>I</Inquiry_Type>
 </Record>
<Record id="3">
 <MOP>01</MOP>
 <Inquiry_Type>R</Inquiry_Type>
 </Record>
<Record id="4">
 <MOP>UR</MOP>
 <Inquiry_Type>I</Inquiry_Type>
 </Record>
</Trades>

How do I display how many number of account is currently opened ?
Any help will be very much appreciated.

Cezar

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

--+------------------------------------------------------------------
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>