Re: [xsl] Lookup Table?

Subject: Re: [xsl] Lookup Table?
From: Josh Canfield <joshcanfield@xxxxxxxxx>
Date: Mon, 16 Aug 2004 19:07:38 -0700
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@xxxxxxxxxxx> 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

Current Thread