Re: Implementation details for date:date-time ()
Mike Brown <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Colin Paul Adams wrote: > The implementation page doesn't define the meaning of "now". > I.e. should this function return a different date-time every time it > is called, or should it always return the same time throughout a > transformation, as in XPath 2.0? > If the latter is acceptable, then presumably I can reuse my code for > implementing fn:current-dateTime unchanged? If referential transparency is not explicitly required by the function, then assume it is implementation dependent. EXSLT functions/elements in general have different versions with different behaviors, but you can't refer to specific versions in a function call. So it is possible that your implementation will change which version of a particular EXSLT function or element definition it supports, and then the answer could very well be "no, you can't reuse your code unchanged".