Josias Thoeny wrote:
[...]
That is certainly a good idea regarding performance, but maybe it's
not the best way from a SoC point of view. Would an additional i18n
transformation step (i18n:date pattern="" src-pattern="") be an option?
Sounds good, but how can such a transformation be applied when the
parameter is passed to an action as in:
<map:act type="set-header">
<map:parameter name="Last-Modified"
value="{page-envelope:document-lastmodified}" />
</map:act>
Sorry, I didn't read about the context of the question.
I guess your solution is the easiest way.
Another option would be an i18n:date module, source
and target patterns could be configured in cocoon.xconf:
<component-instance name="i18n-iso8601-rfc822>
<pattern in="yyyy-mm-dd ..."
out="ddd, dd mmm ..."/>
</component-instance>
{i18n-iso8601-rfc822:{page-envelope:document-lastmodified}}
Just a random thought.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]