cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <kpiroum...@apache.org>
Subject Re: date translation
Date Thu, 30 Jan 2003 15:33:56 GMT
Please tell us what is the final target of your date translation and we'll
try to advice something.
In XSP you do it just the same way as in pure Java:
<xsp:logic>
   // perform your date translation using any method you like, e.g.
SimpleDateFormat.parse(), etc.
</xsp:logic>

--
  Konstantin

----- Original Message -----
From: "Scherler, Thorsten" <Thorsten.Scherler@weidmueller.de>
To: <cocoon-users@xml.apache.org>
Sent: Thursday, January 30, 2003 18:28
Subject: AW: date translation


it is me again.

How can I do it with xsp?

-----Ursprüngliche Nachricht-----
Von: Scherler, Thorsten
Gesendet: Donnerstag, 30. Januar 2003 16:22
An: Cocoon-Users (E-Mail)
Betreff: date translation


Hello group,

if anybody need a date translation, here it is:

e.g. test.html?date=29.1.2003 (like we write in Germany) will be 1/29/2003.

<xsl:param name="date"/>
<xsl:param name="GETday"><xsl:value-of
select="substring-before($date,'.')"/> </xsl:param>
<xsl:param name="GETmonth_year"><xsl:value-of
select="substring-after($date,'.')"/></xsl:param>
<xsl:param name="GETmonth"><xsl:value-of
select="substring-before($GETmonth_year,'.')"/> </xsl:param>
<xsl:param name="GETyear"><xsl:value-of
select="substring-after($GETmonth_year,'.')"/> </xsl:param>
...
<xsl:value-of select="$GETmonth"/>/<xsl:value-of
select="$GETday"/>/<xsl:value-of select="$GETyear"/>

King regards

> Mit freundlichem Gruss,
>
> Thorsten Scherler
> Marketing / Telefonmarketing
>
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: thorsten.scherler@weidmueller.de
> http://www.weidmueller.de
>
>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message