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

RE: date and time

Subject: RE: date and time
From: "Khan, Amir" <amkhan@xxxxxxxxxx>
Date: Wed, 11 Jul 2001 17:23:09 +0100
system time xsl
why dont you pass it into the XSL as a param from the calling transform
engine?, its obviously imlpementation specific but with Xalan-J I'd do
something like (this is a quick example, you'd be advised to tailor it a
little)..... 

	 TransformerFactory tFactory = TransformerFactory.newInstance();
            
            // open the XSL file and create a reducing transformer on it.
            Transformer theTransformer  = 
                tFactory.newTransformer(new StreamSource(someXSLFile));

	theTransformer.setParameter("dateTime", new Date().toString());


then in XSL land you can...


<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes"/>  

<xsl:param name="dateTime"/>

.
.
.
.
<xsl:value-of select="$dateTime"/>


> -----Original Message-----
> From:	Michael Schäfer [SMTP:MSchaefer@xxxxxxxxxxxx]
> Sent:	Wednesday, July 11, 2001 2:12 PM
> To:	XSL-Liste (E-Mail)
> Subject:	 date and time
> 
> Hello,
> 
> is there a way to obtain recent system time and system date to put it in
> the result tree?
> 
> 
> Mit freundlichen Grüßen
> Michael Schäfer
> 
> ---------------------------------------------------------------
> Dipl.-Ing. Michael Schäfer
> e-business
> 
> Pfeil GmbH
> Obertorstr. 4-6
> 66111 Saarbrücken 
> 
> Tel.: 06 81/3 79 85-30
> Fax: 06 81/3 79 85-13
> 
> e-Mail: mschaefer@xxxxxxxxxxxx
> Internet: www.pfeilgmbh.de
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.



 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.