[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Calling functions in XSL

Subject: Calling functions in XSL
From: Mallikarjuna Sangappa <malliks@xxxxxxxxxxx>
Date: Thu, 10 Jun 1999 14:38:26 PDT
xsl functions
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


______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.