473,770 Members | 4,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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($pubDa te,'[FNn] [D] [MNn] [Y]
[h]:[m01] [PN]')" />

how can I get around this?
Nov 12 '05 #1
5 11541
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!P LEASEtkachenko. com> schrieb im
Newsbeitrag news:Ok******** ******@tk2msftn gp13.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
13859
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: '\x00\x00\xb9\x02\x13EXCLUDE_CREDIT_CARD' # the above was printed using repr(xbuffer). # Note that int(0x13) = 19 which is exactly the length of the visible text #
0
1415
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 those keys. The status bar tells me "The key combination (Ctrl+k, Ctrl+D) is not a command." Weird... I then check the Edit menu->Advanced. Format Selection is there, but Format Document isn't. Ok, so I go into Customize... verify that the...
1
8758
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' type='text/javascript'></script> <script language='javascript' type='text/javascript'>
0
25859
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 from a hyperlink column) into a session. the code is as following: Private Sub ibtAddtoCart_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ibtAddtoCart.Click idStr = Session("ids") pid =...
0
1580
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 format". Please help. Thanks a lot, Ray
5
2210
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 2011.0100 or 2387.0000? (simple question I know!)
16
4021
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 date format of "mm/dd/yy" For example the barcode contains "112303" and I want to format it to display "11/23/03" If I use the microsoft.visualbasic.strings.format with a format string of "##/##/##" or "00/00/00" I get the format string in the...
5
2170
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 date from Table 1 into
3
4443
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 places, for example .0397 how do I use the format statement and get this result?
14
15331
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 ValidationExpression="//", but user can write date "31/02/2000" and validator says that it is correct (everybody know that Febuary has 28 or 29 days).
0
9602
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5326
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.