473,382 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

unknown xslt function "format-dateTime"

Iam using Beta2 of VS2005 and getting the error "Error 4 'format-dateTime()'
is an unknown XSLT function" at the following line:

<xsl:value-of select="format-dateTime($pubDate,'[FNn] [D] [MNn] [Y]
[h]:[m01] [PN]')" />

how can I get around this?
Nov 12 '05 #1
5 11501
cody wrote:
Iam using Beta2 of VS2005 and getting the error "Error 4 'format-dateTime()'
is an unknown XSLT function" at the following line:


format-dateTime() is XPath2.0/XSLT2.0/XQuery1.0 function. VS2005 only
supports XPath1.0/XSLT 1.0. Use ms:format-date() extention function
instead, it's supported by MSXML4 and VS2005.

--
Oleg Tkachenko [XML MVP, MCAD]
http://www.xmllab.net
http://blog.tkachenko.com
Nov 12 '05 #2
> > Iam using Beta2 of VS2005 and getting the error "Error 4
'format-dateTime()'
is an unknown XSLT function" at the following line:


format-dateTime() is XPath2.0/XSLT2.0/XQuery1.0 function. VS2005 only
supports XPath1.0/XSLT 1.0. Use ms:format-date() extention function
instead, it's supported by MSXML4 and VS2005.


Oh my gosh, is MS sh*tting me? VS2005 is in its beta phase and already
obsolete?
This is so funny that it hurts..

Is your proposed function windows specific or do I have chances that my code
will run with MONO .NET or my XSL file will render correctly in non-internet
explorer browsers?

Iam very new to XML and impressed by the unbelievable complexity of this
field..
Nov 12 '05 #3
cody wrote:
Oh my gosh, is MS sh*tting me? VS2005 is in its beta phase and already
obsolete?
Well, in some sense any modern software is obsolete WRT technologies to
be released sometimes next year.
Is your proposed function windows specific or do I have chances that my code
will run with MONO .NET or my XSL file will render correctly in non-internet
explorer browsers?
That's Microsoft specific extension function. Probably Mono will
implement this function too, you better ask in Mono user list.
For a portable server side solution I'd recommend using EXSLT extentions
[1], but EXSLT.NET isn't ported to .NET 2.0 yet. And for browsers using
extenstion functions is even more troublesome. For IE you can use EXSLT
functions implemented in Javascipt -
http://exslt.org/date/functions/format-date/index.html, and AFAIK
Firefox doesn't support XSLT extension functions yet.
Iam very new to XML and impressed by the unbelievable complexity of this
field..

That's not different from any other field. Any technology with such high
level of adoption becomes complex in several years. Till something
simpler is born, just like XML was born in attempt to get rid of SGML
complexity.

[1] http://msdn.microsoft.com/library/en...practexslt.asp
--
Oleg Tkachenko [XML MVP, MCAD]
http://www.xmllab.net
http://blog.tkachenko.com
Nov 12 '05 #4
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> schrieb im
Newsbeitrag news:Ok**************@tk2msftngp13.phx.gbl...
cody wrote:
Oh my gosh, is MS sh*tting me? VS2005 is in its beta phase and already
obsolete?


Well, in some sense any modern software is obsolete WRT technologies to be
released sometimes next year.
Is your proposed function windows specific or do I have chances that my
code
will run with MONO .NET or my XSL file will render correctly in
non-internet
explorer browsers?


That's Microsoft specific extension function. Probably Mono will implement
this function too, you better ask in Mono user list.
For a portable server side solution I'd recommend using EXSLT extentions
[1], but EXSLT.NET isn't ported to .NET 2.0 yet. And for browsers using
extenstion functions is even more troublesome. For IE you can use EXSLT
functions implemented in Javascipt -
http://exslt.org/date/functions/format-date/index.html, and AFAIK Firefox
doesn't support XSLT extension functions yet.


So what shall I do if EXSLT.NET isn't ported to .NET and I can't use IE in
my application?
Is there another way which actually works?
Nov 12 '05 #5
cody wrote:
So what shall I do if EXSLT.NET isn't ported to .NET and I can't use IE in
my application?
Is there another way which actually works?


Lots of. Custom extension function, XSLTSL
(http://xsltsl.sourceforge.net/), ms:format-date() etc.

--
Oleg Tkachenko [XML MVP, MCAD]
http://www.xmllab.net
http://blog.tkachenko.com
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Geoffrey | last post by:
Hope someone can help. I am trying to read data from a file binary file and then unpack the data into python variables. Some of the data is store like this; xbuffer:...
0
by: JD | last post by:
While reading through the "shortcuts" topic in the help, I saw that there's a "Format Document" option - CTRL+K, CTRL+D. Cool... so I go into a .cs source file (this is a winforms project) and hit...
1
by: The Crow | last post by:
if the reason for error is simple, excuse me. but i cant find what the reason is. Here is the snippet : string script = String.Format(@"<script src='common.js'...
0
by: phmyhn | last post by:
I have two web pages, one is viewlarger.aspx, another one is shoppingcart.aspx. On the viewlarger.aspx, when clicking "add to cart" image button, the sub appends the id (passed from another page...
0
by: Ray | last post by:
Dear all, I successfully deploy a window application with crystal report. However, while using exporting function of the CrystalReportViewer, there is an error "Invalid export DLL. or export...
5
by: Robin Tucker | last post by:
My database has a column for numeric data items. How can I use this number in the "format" command, such that for, say precision 2, I get numbers like 2011.01 or 2387.00 and for 4 I would get...
16
by: Al Reid | last post by:
First, I'm using vb2005. I have a string that is read from a barcode reader into a TextBox. The string is 6 characters long and represents a date (mmddyy). I want to display it to the user in a...
5
by: veaux | last post by:
I'm thinking this is easy but can't get it. I have a table with following: Table1 Date 1/1/2007 Table2 Type 0107 (This is MMYY of above) So I'm having trouble using a query to turn the...
3
by: shill57957 | last post by:
I have a query: SELECT .AH_TICKNO, Format((.AH_AMOUNT-.AH_TRNAMT)/.AH_AMOUNT,"Percent") AS DIF INTO FROM ; I dont want to format as a percent, I want it to go into the table with 4 decimal...
14
by: | last post by:
Hi, I program in asp.net. I have a date in TextBox in format "dd/MM/yyyy". I would like to validate if the date is realy correct. I used RegularExpressionValidator with...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.