On Wed, 2006-01-04 at 09:44 +0100, Andreas Hartmann wrote:
> Josias Thoeny wrote:
> > On Fri, 2005-12-30 at 02:18 -0500, Doug Chestnut wrote:
> >
> >>Is there any reason why we can't change the date_format in the
> >>pageEnvelopeModule (used to produce the document-lastmodified string) to
> >> this format:
> >>Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
> >
> >
> > Hi Doug,
> >
> > The date format used by lenya ("2005-12-30 04:43:11") follows the ISO
> > 8601 standard, see e.g. [1].
> > Therefore I'd rather not change the format of the document-lastmodified
> > attribute provided by the page-envelope.
> > Maybe we could add another attribute document-lastmodified-rfc822 which
> > converts the date format s.t. it may be used for the reponse header?
> > Or write a date-converting input-module?
> > Or add the format as an additional parameter:
> > {page-envelope:document-lastmodified:iso8601}
> > {page-envelope:document-lastmodified:rfc822}?
>
> 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>
?
Josias
>
> -- Andreas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]