Subject: Re: [xsl] Locating Things Relative to Location of Style Sheet From: Jeff Kenton <jkenton@xxxxxxxxxxxxx> Date: Fri, 06 Dec 2002 11:15:25 -0500 |
"XPath needed functions that operate on dates, but does it really need all of the following types? xs:duration, xs:dateTime, xs:time, xs:date, xs:gYearMonth, xs:gYear, xs:gMonthDay, xs:gDay, xs:gMonth and the mess of casting and conversion functions that are the result of this ad hoc collection."
Agreed. This is surely overkill. All the functionality we need could be provided by one date type and one duration type, with some functions to deal with the year, month, day, ... parts of them. And, do we really need seconds to be an arbitrary precision Decimal? (Even Double would make more sense.) This is XSLT, not Fortran. We need to pay attention to the real uses of our language.
In fact, all of the new types are badly thought out. Decimals are poorly specified as soon as you realize that real implementations won't be infinite precision. How are they going to round? Why does division automatically revert from Decimal to Double? (Answer: Decimals don't really make sense the way they're defined.) This is especially important, since every literal with a decimal point in it in XPath 1.0 will become a Decimal now. This changes old behavior without warning. Don't make Decimal the default for old literals. (Make Decimal require an xf:Decimal() constructor if it needs to be part of the language.)
...
Those are xml schema types, if I can just say "remove the xml schema" which I am liking less and less the more and more I am forced to use it,
In fact any place where I would be likely to comment in this document it is the parts applying to xml schema, xml schema dependency, PSVI requirements no, no, no by god I swear now that if this follows through I will, I will; I'll have my mid-life crisis early that's what I'll do
Schemas! What a mess. Leave them out of XSLT. For people who use them, there are separate tools and specifications. Most people don't care, and there's no need to clutter XSLT with them.
-- -------------------------- Jeff Kenton DataPower Technology, Inc.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Locating Things Relative , bryan | Thread | RE: [xsl] Locating Things Relative , bryan |
Re: [xsl] Re: applying templates to, Dimitre Novatchev | Date | the joy of breaking out from proced, Gunther Schadow |
Month |