ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
[exslt] EXSLT: Date/time
by Attila other posts by this author
Aug 2 2007 8:26AM messages near this date
| Re: [exslt] EXSLT: Date/time
& XSLT Hi,
I'm new to extensions, I have the "sets" exslt extensions working without
having to download anything for Apache Xalan-J, however date/time does not
work!

Here is my code for date/time:

<?xml version="1.0"?> 
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times> ">
<xsl:output method="text"/> 

Documentation Generated: <xsl:value-of select="date:date()"/> 
...(truncated)

This produces the error:

XalanXPathException: The function number
'http://exslt.org/dates-and-times> :date'
is not available.
(file:///C:/p4/dev/aaros/devmain_aa/SimTools/SimulatorTools/Generate_ConfigDocumentation_TEX
T.xsl,
line 16, column 62)
1> Error generating TEXT documentation, return code: 65280



Yet when I use "sets", it works fine just like this:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:set="http://exslt.org/sets"> 

...(truncated)

Any ideas why date/time doesn't work out of the box for Xalan-J?

Thanks a lot


-- 
Attila
Software Developer
atteeela@gmail.com
Thread:
Attila
Charles V. Holmes
Florent Georges
Attila
Florent Georges
Attila
Florent Georges
Florent Georges

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved