format-date and date-time
Sebastian Rogers <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <26B39E1664DDD311A1010008C7DB51FD01FA84DF@TIKITNT4> |
I've been trying to use the date:date-time() function with msxml 4.0 but
even if I include date.xsl and fix up all the errors (see below) I get the
following message:-
msxml4.dll error '80004005'
Namespace 'http://exslt.org/dates-and-times' does not contain any functions.
/tkp193/xml.inc, line 78
The line that causes the issue is:-
<input id="{id}" name="{id}" value="{date:date-time()}">
Any ideas?
In order to get the date.xsl to work I had to do the following:-
1. in date\functions\format-date\date.format-date.xsl I had to change the
order of the import and func statements so it now reads:-
<?xml version="1.0" encoding="utf-8"?>
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:func="http://exslt.org/functions" xmlns:date="http://exslt.org/dates
and times" version="1.0" extension-element-prefixes="date"
date:doc="http://www.exslt.org/date">
<import href="date.format-date.function.xsl"/>
<import href="date.format-date.template.xsl"/>
<func:script language="exslt:javascript" implements-prefix="date"
src="date.js"/>
<func:script language="exslt:msxsl" implements-prefix="date"
src="date.msxsl.xsl"/>
</stylesheet>
2. in date\functions\format-date\date.format-date.function.xsl I had to
change the reference for the str.padding.function.xsl to:-
<xsl:import href="../../../str/functions/padding/str.padding.function.xsl"
/>
Sebastian Rogers
Technical Architect
Tikit Limited
**********************************************************************
Tikit have been shortlisted for several categories at this year's
Loties and E-Loties. To vote, please visit:
http://www.inbrief.co.uk/loties2003/lotiesinformation.asp
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
If delivered to incorrect address please inform
[email protected]
**********************************************************************