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

Re: String match

Subject: Re: String match
From: Mark Nahabedian <naha@xxxxxxxxxx>
Date: Mon, 7 May 2001 08:57:20 -0400 (Eastern Daylight Time)
xsl string match eg
Peter Flynn writes:
 > >                 <start>
 > >                       <day>12</day>
 > >                       <month>January</month>
 > >                       <year>2002</year>
 > >                 </start>
 > 
 > You may find it easier to work with numeric dates if you want to sort
 > them or otherwise discriminate between them (eg months). The ISO date
 > format is dd-mm-yyyyThh:mm:ss.ss (capital T in the middle) which will
 > sort easily.

ISO format has the year first so that a "dictionary" sort will also
sort chronologically (for dates with the same timezone),
e.g. "2002-02-05" for 5 February, 2002.


 > 
 > <eventRecord start="05-02-2002T" end="14-02-2002T">
 >   <title>Bla bla</title>
 > </eventsCalendar>
 > 
 > (BTW Does anyone know if truncated ISO dates are valid, or must they
 > be padded with a [possibly misleading] "...00:00:00.00" when no time
 > is specified?)
 > 
 > > Hence a mechanism to check that: If the 'start month' is the same -
 > > to apply eventRecord template but as soon as the 'start month'
 > > differs then to apply ViewEvents template
 > 
 > You can byte-slice the string values of attribute CDATA using
 > the substring-before and substring-after functions.
 > 
 > ///Peter
 > 
 >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
 > 
 > 


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


Current Thread
  • String match
    • tanz - Mon, 7 May 2001 08:04:07 -0400 (EDT)
      • Peter Flynn - Mon, 7 May 2001 08:31:29 -0400 (EDT)
        • Julian Reschke - Mon, 7 May 2001 08:52:34 -0400 (EDT)
        • Mark Nahabedian - Mon, 7 May 2001 09:02:46 -0400 (EDT) <=
      • tanz - Mon, 7 May 2001 10:36:08 -0400 (EDT)
      • Michael Kay - Mon, 7 May 2001 12:20:50 -0400 (EDT)

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.