[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Antwort: Date problem

Subject: Antwort: Date problem
From: manfred.weigel@xxxxxx
Date: Mon, 9 Dec 2002 17:57:31 +0100
Antwort:  Date problem

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@l... 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:    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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.