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 January 10th, 2012, 09:06 AM
Registered User
 
Join Date: Jan 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Namespace 'http://www.w3.org/2001/XMLSchema' does not contain any functions.

I am using XSLT version "2.0".

Code:
<xsl:variable name="Date_time" select="'1323149823000'"/> 

<xsl:value-of select='xs:dateTime("1970-01-01T00:00:00") + @Date_time 
* xs:dayTimeDuration("PT0.001S")'/>
When i run i am getting "Error during XSLT transformation: An unknown XPath extension function was called.".

Can you help me to solve this problem?

IE says Namespace


Namespace 'http://www.w3.org/2001/XMLSchema' does not contain any functions.


Firefox says "Error during XSLT transformation: An
unknown XPath extension function was called."

Am I missing something ?

-Bhat
 
Old January 10th, 2012, 09:12 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

It sounds as if you are trying an XSLT 2.0 stylesheet with an XSLT 1.0 processor. If you want to use XSLT 2.0 then with e.g. Saxon 9 or AltovaXML or XQSharp or IBM or Intel's XSLT 2.0 processor.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
The Following User Says Thank You to Martin Honnen For This Useful Post:
avinashvbhat (January 10th, 2012)
 
Old January 10th, 2012, 09:22 AM
Registered User
 
Join Date: Jan 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks! But currently i am running locally in my machines browser both in IE and firefox.

I dont know what xsl processor my browser is using?
 
Old January 10th, 2012, 09:28 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

Browsers don't support XSLT 2.0, only 1.0.
So inside the browser you can't use XSLT 2.0, unless you try Saxon's GWT port Saxon-CE http://www.saxonica.com/ce/doc/contents.html.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
The Following User Says Thank You to Martin Honnen For This Useful Post:
avinashvbhat (January 10th, 2012)
 
Old January 10th, 2012, 09:47 AM
Registered User
 
Join Date: Jan 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Ok thanks a lot. This might help me to solve the problem...

Thanks for your help





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web part functionality like http://www.thefreedict kamii47 ASP.NET 2.0 Professional 0 June 10th, 2006 01:36 AM
http://mysite.com or http://www.mysite.com anshul HTML Code Clinic 1 December 27th, 2004 03:50 PM
http://domain or http://www.domain anshul HTML Code Clinic 9 August 11th, 2004 01:09 AM
C++ Books http://www.gotchas3.as.ro inrev C++ Programming 1 January 21st, 2004 03:50 AM
C++ Books http://www.gotchas3.as.ro inrev All Other Wrox Books 0 January 16th, 2004 01:14 PM





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