On 3/21/07, Stefan Shoeman <[EMAIL PROTECTED]> wrote:

...I tried it with xsl (xs:date-time), but then I get a error, that the
java-date class isn't available for Coocon...

You could use a the SimpleDateFormat as a java extension, example:

<xsl:transform
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   version="1.0"
   xmlns:dateFormat="java:java.text.SimpleDateFormat"
   >
   <xsl:variable name="outputDateFormat" select="'yyyyMMddHHmm'"/>
...
 <xsl:variable name="formatter" select="dateFormat:new($outputDateFormat)"/>
 <xsl:value-of select="dateFormat:format($formatter,$yourDateValue)"/>

HTH,
-Bertrand

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to