Subject: RE: [xsl] XSLT function optimization - datetime comparisons? From: cknell@xxxxxxxxxx Date: Wed, 21 Sep 2005 16:38:25 -0400 |
=================================================================== I'm using Saxon - I found that Xalan (2.7) just couldn't do this sort of thing for reasons I don't understand to this day.
<xsl:function name="my:compDate" as="xs:boolean"> <xsl:param name="dt_a" as="xs:string" /> <xsl:param name="dt_b" as="xs:string" /> <xsl:choose> <xsl:when test=" xs:integer(translate(translate(translate($dt_a,'-',''),'T',''),':','')) gt xs:integer(translate(translate(translate($dt_b,'-',''),'T',''),':',''))"> <xsl:copy-of select="true()"/> </xsl:when> <xsl:otherwise> <xsl:copy-of select="false()"/> </xsl:otherwise> </xsl:choose> </xsl:function>
-- Charles Knell cknell@xxxxxxxxxx - email
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT function optimizatio, Michael Kay | Thread | [xsl] getting argument from msxsl.e, stuart arnold |
Re: [xsl] Adding elements to unknow, Joris Gillis | Date | Re: [xsl] Strict sequential identit, Dimitre Novatchev |
Month |