Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 6119 invoked by uid 500); 12 Sep 2002 17:21:42 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 6100 invoked from network); 12 Sep 2002 17:21:41 -0000 Date: Thu, 12 Sep 2002 19:21:42 +0200 Subject: Re: esql:get-timestamp | how to add a locale to the format attribute? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: leo leonid To: cocoon-users@xml.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: <1B0EDC93-C674-11D6-A8A6-003065A89D34@leonid.de> X-Mailer: Apple Mail (2.482) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Monday, September 9, 2002, at 11:41 Uhr, leo leonid wrote: > hi, > I've got this > > and now I want to add a locale just like in > SimpleDateFormat("EEEE, d. MMMM yyyy, h:mm a", Locale.US) > > If it is possible to do this in XML, does anyone know the right syntax? > Thanks. > /Leo to answer my own question I looked at esql.xsl(lines 777-787) and now I know that it is *not* possible. I now use the i18n transformer to do the job: ok, this works, but this is probably not the fastest way if you have a page with a lot of dates and you have to override the server locale. Wouldn't it be better to have a possibility to define a global format+locale in esql? /Leo --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: