Function call in XSL using XT

Mallikarjuna Sangappa malliks at
Fri Jun 11 22:40:19 BST 1999

Hi All, 

I'm new to XSL. How do I call the function in the
XSL? My XSL file looks 
like this. 

<?xml version="1.0"?> 

indent-result="no" default-space="strip"> 
<xsl:template match="/booklist"> 
<xsl:value-of select="book/code"/> 
<xsl:value-of select="book/code/@codevalue"/> 
<xsl:value-of select="book/category"/> 
<xsl:value-of select="jjc:currentDate()"/> 

<xsl:functions ns="jjc" type="text/javascript"> 

function currentDate() { 
return Date().toString() 

<p>When multiple alternative implementations are
provided, it is up to 
the XSLT processor to determine which to use.</p> 



When I compile this using XT I'm getting the
following error 
file:/C:/Mallik/XSLSamples/booklist.xsl:9: undefined

Thanks in advance. 



Get your free address at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list