This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Selection based on date comparison


Greetings all,
     I'm having an issue with selection based on a comparison of dates 
contained within two different nodes AND a specific attribute value.

the xml I have to work with looks similar to the following:

<accountelement>
   <Ledger_Element>
      <Ledger_Entry Distribution_Flag="D" Trade_Date="11/08/2001"/>
      <Ledger_Entry Distribution_Flag="D" Trade_Date="05/30/2000"/>
      <Ledger_Entry Distribution_Flag="D" Trade_Date="09/30/2001"/>
      <Ledger_Entry Distribution_Flag="" Trade_Date="06/11/2001"/>
      <Ledger_Entry Distribution_Flag="D" Trade_Date="04/15/1999"/>
      <filtervalues timeframe="06/03/2001"/>
   </Ledger_Element>
</accountelement>

I'm trying to select all <Ledger_Entry>'s whose @Trade_Date is greater than 
the date in <filtervalues/@timeframe> AND whose @Distribution_Flag is not 
equal to ""

Any suggestions?

Thanks in advance,
     Dennis Campillo

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]