Re: XT win32 extension functions

Subject: Re: XT win32 extension functions
From: James Clark <jjc@xxxxxxxxxx>
Date: Fri, 06 Aug 1999 17:59:34 +0700
The example is out of date.  It should use
"extension-function-available" rather than "function-available".

Linda van den Brink wrote:
> 
> Hi,
> 
> I'm using the win32 executable of XT and have been trying to use one of the
> extension functions. I copied the example James Clark has on his website to
> test if this will work, it appears it doesn't. I get the message "no such
> functions".
> 
> Does anyone know if it's supposed to be possible to use James' extension
> functions with XT.exe, or should I use XT proper?
> 
> Here's the stylesheet that produces the 'no such function' message:
> 
> <xsl:stylesheet  xmlns:xsl="http://www.w3.org/XSL/Transform/1.0";
>   xmlns:date="http://www.jclark.com/xt/java/java.util.Date";
>   xmlns="http://www.w3.org/TR/REC-html40";  result-ns="">
> 
> <xsl:template match="/">
>   <html>
>     <xsl:if test="function-available('date:to-string') and
> function-available('date:new')">
>       <p><xsl:value-of select="date:to-string(date:new())"/></p>
>     </xsl:if>
>   </html>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> Linda
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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


Current Thread