[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Selecting entries by date

Subject: Re: Selecting entries by date
From: Charles Muller <acmuller@xxxxxxx>
Date: Sun, 03 Aug 2003 20:15:12 +0900 (JST)
charles muller tokyo gakuen university
While everyone is either sleeping (I am in Tokyo) or just simply
enjoying their weekend, I have still been googling around and looking in
the archives to solve my selection-by-date problem. I may have found a couple of clues under the topic
'compare dates.' First, I have properly converted all my dates to ISO
8601 format (i.e. 2003-07-10) and have added, in my attempt, this sort of
solution, but am still apparently missing something

 <xsl:variable name="entrydate" select="hbuddhism/entry/dateofentry"/>
<xsl:variable name="thismonth" select="20030601"/>
 <xsl:template match="/">
 <xsl:text>From: Charles Muller
Subject: NEW SUBSCRIBERS> , 2003

 </xsl:text>
 <xsl:if test="translate($entrydate, '-', '') <  $thismonth">
 <xsl:for-each select="hbuddhism/entry">
   <xsl:sort select="lastname"/>
   <xsl:value-of select="position()"/>
   <xsl:text>. </xsl:text>
   <xsl:value-of select="firstname"/>
   <xsl:text> </xsl:text>
   <xsl:value-of select="lastname"/>
 <xsl:text>, </xsl:text>
    <xsl:value-of select="affiliation"/>
    <xsl:text>.  Area: </xsl:text>
       <xsl:value-of select="area"/>
        <xsl:text>.  Topic(s): </xsl:text>
       <xsl:value-of select="topic"/>
       <xsl:value-of select="$newline"/>
       <xsl:value-of select="$newline"/>
   </xsl:for-each>

Chuck

---------------------------
Charles Muller  <acmuller@xxxxxxx>
Faculty of Humanities,  Toyo Gakuen University
Digital Dictionary of Buddhism and CJKV-English Dictionary [http://www.acmuller.net]
H-Buddhism List Editor [http://www.h-net.org/~buddhism/]
Mobile Phone: 090-9310-1787

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.