Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 39656 invoked from network); 27 Apr 2005 12:18:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2005 12:18:57 -0000 Received: (qmail 2335 invoked by uid 500); 27 Apr 2005 12:19:35 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 2093 invoked by uid 500); 27 Apr 2005 12:19:33 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 2080 invoked by uid 99); 27 Apr 2005 12:19:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 27 Apr 2005 05:19:33 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DQlOr-0004sb-Ul for users@cocoon.apache.org; Wed, 27 Apr 2005 14:12:18 +0200 Received: from d51a4ce66.access.telenet.be ([81.164.206.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Apr 2005 14:12:17 +0200 Received: from jh by d51a4ce66.access.telenet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Apr 2005 14:12:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Jorg Heymans Subject: Re: How to read the lastModifiedDate of the original XML file? Date: Wed, 27 Apr 2005 14:17:43 +0200 Lines: 21 Message-ID: References: <329A68716B57D54E8D39FD3F8A4A84DF01AAF57E@um-mail0136.unimaas.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d51a4ce66.access.telenet.be User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: <329A68716B57D54E8D39FD3F8A4A84DF01AAF57E@um-mail0136.unimaas.nl> X-Antivirus: avast! (VPS 0517-1, 26/04/2005), Outbound message X-Antivirus-Status: Clean Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Linden H van der (MI) wrote: > Hi, > > my website consists of several XML pages that are transformed into HTML > using various XSL files. I'd like to add a "last modified" timestamp, > but that means I need the lastModifiedDate of the original XML, because > the javascript I used takes the moment of generation of the HTML page, > which is basically about 1 minute earlier than the current time. > > Does anyone know an elegant way to achieve this? How about a custom transformer that reads the files and adds a meta timestamp tag to your document? Alternatively (but I'm not sure) you could use an action that reads the timestamps and makes them request-local available for the stylesheet. HTH Jorg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org