cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/forms/samples/resources forms-calendar-styling.xsl
Date Sat, 10 Apr 2004 13:42:44 GMT
bruno       2004/04/10 06:42:44

  Modified:    src/blocks/forms/samples/resources
                        forms-calendar-styling.xsl
  Log:
  don't use fi:styling type="date", but use the newly available fi:datatype
  information.
  
  Revision  Changes    Path
  1.5       +2 -2      cocoon-2.1/src/blocks/forms/samples/resources/forms-calendar-styling.xsl
  
  Index: forms-calendar-styling.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/samples/resources/forms-calendar-styling.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- forms-calendar-styling.xsl	6 Apr 2004 21:34:07 -0000	1.4
  +++ forms-calendar-styling.xsl	10 Apr 2004 13:42:44 -0000	1.5
  @@ -46,13 +46,13 @@
     <!--+
         | fi:field with @type 'date' : use CalendarPopup
         +-->
  -  <xsl:template match="fi:field[fi:styling/@type='date']">
  +  <xsl:template match="fi:field[fi:datatype/@type='date']">
       <xsl:variable name="id" select="generate-id()"/>
       
       <!-- FIXME: should use the format used by the convertor -->
       <xsl:variable name="format">
         <xsl:choose>
  -        <xsl:when test="fi:styling/@format"><xsl:value-of select="fi:styling/@format"/></xsl:when>
  +        <xsl:when test="fi:datatype/fi:convertor/@pattern"><xsl:value-of select="fi:datatype/fi:convertor/@pattern"/></xsl:when>
           <xsl:otherwise>yyyy-MM-dd</xsl:otherwise>
         </xsl:choose>
       </xsl:variable>
  
  
  

Mime
View raw message