Re: [xsl] date calculations

Subject: Re: [xsl] date calculations
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 26 Mar 2007 09:34:22 +0100
On 3/24/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
If you had a schema that defined the data types of your elements, it would
be even simpler:

StartTime + Duration

This feels a bit wrong to me, along the lines of augmenting the xml with defaulted attributes - by doing this aren't you then relying on the input being validating every time the transform runs, even if the xml hasn't changed?

You don't seem to be gaining much over being explicit with the types
in the stylesheet...

(SA transforms involving typed input are still very new - the benefits
of result validation are clear, but input "typing" isn't... (what is
the correct terminology here?  "input validation" doesn't do it
justice))

Current Thread