Yesssss,
You can use for example
<i18n:date-time pattern="short" src-pattern="EEE, d MMM yyyy H:mm:ss z"
src-locale="en_UK" locale="nl_NL">
<xsl:value-of
select="$response/D:propstat/D:prop/D:getlastmodified"/>
</i18n:date-time>
Or
<i18n:date-time pattern="EEEEE d MMMMM yyyy H:mm:ss 'uur'"
src-pattern="EEE, d MMM yyyy H:mm:ss z" src-locale="en_UK"
locale="nl_NL">
<xsl:value-of
select="$response/D:propstat/D:prop/D:getlastmodified"/>
</i18n:date-time>
And do an i18n transformer after the xsl. Make sure you do a simple test
first on for example the string-length of the date field before adding
the <i18n:date-time element>, because you'll get an i18n exception when
the conversion does not succeed.
So wrap the above with:
<xsl:if test="string-length(h:publicationdate) = someInt">
Then i18n:date-time element,
Regards Ard
> Hello all,
>
> Is there an "xsl way" to convert the "h:publicationdate"
> property of a document?
>
> I'm working into hippo-cocoon to render a simple html page
> and i need an xsl:template that converts the value of that
> field into something human readable.
>
> Thanks in advance.
> --
> By MCM.
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html