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

Re: Using xpath fn: functions in XSL stylesheets

Subject: Re: Using xpath fn: functions in XSL stylesheets
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Mar 2008 06:36:58 +0000
Re:  Using xpath fn: functions in XSL stylesheets
>>>>> "Jefferson" == Jefferson Thomas <foramuyou@xxxxxxxxx> writes:

    Jefferson> Ive been trying to use that with Firefox 2.0, Internet
    Jefferson> Explorer, and XML Notepad. No success.  My system is
    Jefferson> Windows Vista. The "string(34)" works fine but when I
    Jefferson> use the "fn:current-dateTime()" function Im getting
    Jefferson> errors like "the function current-dateTime() not
    Jefferson> found". The same thing happens when I try to use the
    Jefferson> other fn: functions. I think Im not specifying the
    Jefferson> "http://www.w3.org/2005/02/xpath-functions" namespace
    Jefferson> the right way but I cant find on the internet any
    Jefferson> working example of its usage.  Could somebody tell me
    Jefferson> please what is the right way to use those fn: functions
    Jefferson> ? The ones I want the mose are fn:current-dateTime()
    Jefferson> and fn:base-uri().

You don't need the namespace declaration at all, nor the prefix.

What you do need is an XSLT 2.0 processor. These are all 1.0
processors.

Publicly available XSLT 2.0 processors for Windows are Gestalt (my
choice - http://gestalt.sourceforge.net), Saxon (http://www.saxonica.com) 
and Altova (http://www.altova.com/altovaxml.html).
-- 
Colin Adams
Preston Lancashire

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.