cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scherler, Thorsten" <Thorsten.Scher...@weidmueller.de>
Subject AW: date translation
Date Thu, 30 Jan 2003 15:28:54 GMT
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>


Mime
View raw message