westerdaled 0 Newbie Poster

Hi

I wanted to add some some date comparison functions to some xslt. I thought since I have a
custom myjs.js library loaded with a DoDebug function that simply returns a boolean True

I could use the following but I get an "Unknown XSLT function Error". Is there a way of
doing this. Do I need to define a namespace for my JavaScript

<script language="javascript">
             
                     <xsl:if test="DoDebug()">
                           <xsl:value-of select="ddwrt:FormatDateTime(string($TodayDate), 1033,'dd/MM/yyyy')" />

                       </xsl:if>
              

  
                       
               
            </script>