Re: [exslt] RE: date.msxsl.xsl
by Jeni Tennison other posts by this author
Mar 22 2002 12:05PM messages near this date
[exslt] RE: date.msxsl.xsl
|
RE: [exslt] RE: date.msxsl.xsl
Hi Bruce,
> By the way I noticed the EXSLT functions date:hour-in-day,
> date:minute-in-hour and date:second-in-minute are called in
> date.msxsl.xsl date:hourInDay, date:minuteInHour and
> date:secondInMinute. Is this correct or a previous version of the
> functions??
JavaScript doesn't allow hyphens in function names, unlike XPath. In
the XSLT 1.1 WD there was a suggestion that the implementations should
do a mapping so that if you call a function with date:hour-in-day()
then the implementation should detect that you mean the function
date:hourInDay(). MSXML doesn't do that, though, so if you use the
JavaScript versions of the functions then you have to use the
non-hyphenated version (i.e. camelCase version) of the function names.
But they should work in exactly the same way.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
Rindahl, Bruce
Jeni Tennison
Chris Bayes
|