[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Selecting entries by date


Subject: Re: [xsl] Selecting entries by date
From: Charles Muller <acmuller@xxxxxxx>
Date: Sun, 03 Aug 2003 20:15:12 +0900 (JST)

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