xsl-list
[Top] [All Lists]

Antwort: Date problem

2002-12-09 09:57:31


Hi!

There are some solutions to "learn" xslt some functionallity like random
numbers, date and time ... (http://www.exslt.org/date/index.html)
but that should not be work of your stylesheet.

First of all, if your stylesheet is transformed on the server, think about
a solution to bring the actual date into your input XML
its very easy to do this in Java for example.

If your stylesheet should be transformed clientside (IE) and you do not
want to present the date of the clients machine (could be every date!)
then you also have to include the date inside your XML.

If you are using Cocoon, a very easy way to solve this problem:
Your RequestGenerator class could add date, time and random number to your
XML, and you are able to use it everywhere in your pipeline!

regards
manfred






hsousa(_at_)i2s(_dot_)pt@lists.mulberrytech.com am 09.12.2002 16:53:23

Bitte antworten an xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com@inet

Gesendet von:     owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com


An:      xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Kopie:
Thema:   [xsl] Date problem


Hi :)

I'm doing a xsl that produces a html code that represent a form

<xsl:element name="form">
 <xsl:attribute name="action">page</xsl:attribute>
 <xsl:attribute name="method">post</xsl:attribute>
  <xsl:attribute name="ID">form1</xsl:attribute>
 <xsl:element name="input">
  <xsl:attribute name="type">hidden</xsl:attribute>
  <xsl:attribute name="name">system</xsl:attribute>
  <xsl:attribute name="value"><xsl:value-of select="
  @System"/></xsl:attribute>
 </xsl:element>
 <xsl:element name="input">
  <xsl:attribute name="type">hidden</xsl:attribute>
  <xsl:attribute name="name">todayDate</xsl:attribute>
  <xsl:attribute name="value">????????</xsl:attribute>
 </xsl:element>
</xsl:element>

The question is: how I put the actual date in "????????"? Is there any
function in xsl that returns the actual date?! Or I have to use jscript?!

Tks for the help :)


Hélder Sousa

Departamento de Projectos e-business
I2S Informática - Sistemas e Serviços, S.A.
Telefone: 22 8340400
Fax: 22 8340495
hsousa(_at_)i2s(_dot_)pt
http://www.i2s.pt


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>
  • Antwort: Date problem, manfred . weigel <=