OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Function call in XSL using XT

[ Lists Home | Date Index | Thread Index ]
  • From: Mallikarjuna Sangappa <malliks@rocketmail.com>
  • To: xml-dev@ic.ac.uk
  • Date: Fri, 11 Jun 1999 13:35:41 -0700 (PDT)

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@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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS