Function call in XSL using XT

Mallikarjuna Sangappa malliks at rocketmail.com
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"?> 

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/XSL/Transform/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:template> 

<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> 

</xsl:functions> 

</xsl:stylesheet> 

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

Thanks in advance. 

CU, 

Malliks 






_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


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





More information about the Xml-dev mailing list