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

EXSLT/XALAN 2.5.1 Current Date not available?

Subject: EXSLT/XALAN 2.5.1 Current Date not available?
From: Bita Jooon <bjooooooo2n@xxxxxxxxx>
Date: Sun, 24 Aug 2003 15:07:14 -0700 (PDT)
xsl current date
Hi, 


I try to get the current date with exslt and
xalan-j_2_5_1. Unfortuately with the message:

(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException):
javax.xml.transform.TransformerException: 
Instance method call to method date-time requires an
Object instance as first argument 


Here are the steps I performed:

1. Create XSL below as foo.xsl

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
extension-element-prefixes="date">
	<xsl:template match="/">
		<html>
			<head>
				<title>Current Date Test</title>
			</head>
			<body>
				<h1>It's now <xsl:value-of
select="date:date-time()"/>.</h1>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>


2. Create an XML of your own choice as foo.xml

3. Run xalan

java org.apache.xalan.xslt.Process -IN foo.xml -XSL
foo.xsl -OUT foo.html


Is that a bug or am I doing anything wrong? 

Any hints are very welcome.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 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.