Subject: [xsl] XSLT function optimization - datetime comparisons? From: Jeffrey Schrab <jschrab@xxxxxxxxxxxx> Date: Wed, 21 Sep 2005 14:53:02 -0500 |
<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>
-- Jeffrey Schrab Internet Application Developer
GS Design 6665 N. Sidney Place Milwaukee, WI 53209
P: 414.228.9666 F: 414.228.9652 E: jschrab@xxxxxxxxxxxx http://www.gsdesign.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] CDATA / UTF-8 / Special C, Michael Kay | Thread | Re: [xsl] XSLT function optimizatio, Christopher R. Maden |
[xsl] CDATA / UTF-8 / Special Chara, Erkkila, Matthew | Date | Re: [xsl] XSLT function optimizatio, Christopher R. Maden |
Month |