[GeoNetwork-devel] [GeoNetwork-commit] Date format in xsl/metadata-iso19139.xsl

Hi Andrea,
I have a question about this change. In the stylesheet we have two templates for the calendar setup. One creates calendars for fields that need the Data format, the other for those that need the DateTime format. You change now makes that both use the DataTime format. I think this is not correct.
Are you saying that ALL date fields in ISO19139 now have the format DateTime? I didn't read that from the schema, but than I'm only human :slight_smile:
If not all have to be DateTime, but some are indeed only Date, I think the fields that require the change should be matched in the first template (moved from the second one). What do you think?
Ciao,
Jeroen

On May 10, 2007, at 11:57 PM, acarboni@anonymised.com wrote:

Revision: 422
          http://geonetwork.svn.sourceforge.net/geonetwork/?rev=422&view=rev
Author: acarboni
Date: 2007-05-10 14:57:27 -0700 (Thu, 10 May 2007)

Log Message:
-----------
Changed dateTime formatting to date+time to allow validation

Modified Paths:
--------------
    trunk/web/xsl/metadata-iso19139.xsl

Modified: trunk/web/xsl/metadata-iso19139.xsl

--- trunk/web/xsl/metadata-iso19139.xsl 2007-05-10 21:56:55 UTC (rev 421)
+++ trunk/web/xsl/metadata-iso19139.xsl 2007-05-10 21:57:27 UTC (rev 422)
@@ -627,7 +627,7 @@
                   Calendar.setup(
                     {
                       inputField : &quot;_<xsl:value-of select="$ref"/>_cal&quot;, // ID of the input field
- ifFormat : "%Y-%m-%d", // the date format
+ ifFormat : "%Y-%m-%dT%H:%M:00", // the date format
                       showsTime : false, // Do not show the time
                       button : &quot;_<xsl:value-of select="$ref"/>_trigger&quot; // ID of the button
                     }
@@ -635,7 +635,7 @@
                   Calendar.setup(
                     {
                       inputField : &quot;_<xsl:value-of select="$ref"/>_cal&quot;, // ID of the input field
- ifFormat : "%Y-%m-%d", // the date format
+ ifFormat : "%Y-%m-%dT%H:%M:00", // the date format
                       showsTime : false, // Do not show the time
                       button : &quot;_<xsl:value-of select="$ref"/>_cal&quot; // ID of the button
                     }

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
GeoNetwork-commit mailing list
GeoNetwork-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-commit