Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 26th, 2008, 03:06 PM
Registered User
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT - xs:dateTime error mess.

Hi,
I am trying to convert a dateTime value to Australian dateTime format.
While doing so, I get the following error message:
(Location of error unknown)java.lang.NoSuchMethodException: For extension function, could not find method java.lang.String.dateTime([ExpressionContext,] ).
Some parts of my .xsl file:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"
xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/02/xpath-functions" version="1.0" >
.
.
.
<xsl:value-of select="fn:adjust-dateTime-to-timezone(xs:dateTime('2006-02-15T17:00:00-03:00'), xs:dayTimeDuration('-PT7H'))"/>
.
.
Any help/advise would be greatly appreciated.
Thanks and regards,
---AJ


 
Old August 26th, 2008, 03:14 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Your code needs an XSLT 2.0 processor and it looks to me as if you are using an XSLT processor that only supports XSLT 1.0.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old August 26th, 2008, 03:25 PM
Registered User
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Kay,
Thanks a lot for your prompt reply. I am new to XSLT and not quite sure what this means.Do you mean I need a different jar? Where could I get the XSLT processor 2.0? Appreciate your help.
Regards,
--- AJ

 
Old August 26th, 2008, 03:39 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

There are three XSLT 2.0 processors currently available: Altova, Gestalt, and my own Saxon product. If you want a jar, then you must be using Java, so you should download Saxon from http://saxon.sf.net/.

The XSLT processor that comes bundled with the Java JDK is Xalan, and it only supports XSLT 1.0.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error converting datetime from character st vinod_yadav1919 SQL Server 2000 2 September 10th, 2010 10:11 AM
Help me get out of this mess gymahz ASP.NET 1.0 and 1.1 Professional 2 September 11th, 2007 08:14 PM
7 datagrid mess! Raif ASP.NET 1.0 and 1.1 Professional 3 August 30th, 2004 01:05 PM
Error converting data type nvarchar to datetime. Andreas ADO.NET 2 August 18th, 2004 03:03 AM
image I/O to write methods to mess w/ pxls jfancy Pro VB.NET 2002/2003 2 June 5th, 2004 01:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.