Subject: Antwort: [xsl] Date problem From: manfred.weigel@xxxxxx Date: Mon, 9 Dec 2002 17:57:31 +0100 |
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@xxxxxx@lists.mulberrytech.com am 09.12.2002 16:53:23 Bitte antworten an xsl-list@xxxxxxxxxxxxxxxxxxxxxx@inet Gesendet von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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@xxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] ANNOUNCING XSLT Web Services , Gunther Schadow | Thread | [xsl] No more DTM IDs are available, Ming Yu |
Re: [xsl] Date problem, Mike Brown | Date | Re: [xsl] how to find position - pl, Vasu Chakkera |
Month |