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? 5 11502
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
> > 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..
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
"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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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:...
|
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...
|
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'...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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$) {
}
...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |