Subject: Re: Java extensions are not working (or work differently) with new version of XT
From: James Clark <jjc@xxxxxxxxxx>
Date: Sat, 31 Jul 1999 00:46:44 +0700
|
You forgot to rename the "expr" attribute om xsl:variable to "select"
(yes, it would be nice if XT caught this).
Maxime Levesque wrote:
>
> The following stylesheet works perfectly with version 19990708.
>
> with the new version (19990725),
>
> I get the following error message :
>
> "add: no method with 2 arguments"
>
> <?xml version="1.0"?>
>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
> xmlns:Vector="http://www.jclark.com/xt/java/java.util.Vector"
> xmlns:Object="http://www.jclark.com/xt/java/java.lang.Object">
>
> <xsl:template match="/">
>
> <xsl:variable name='vector' expr='Vector:new()'/>
> <xsl:variable name='o' expr='Object:new()'/>
>
> <xsl:value-of select='Vector:add($vector, $o)'/>
> </xsl:template>
>
> </xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|