Hi folks, new to the forum here.
I'm trying to get the hang of useing extensions to XSLT like some of the math setups that are out there and whatnot. My problem is that it seems that no matter what I do, I end up with a "Namespace * does not contain any functions.", with * = whatever namespace I try to use.
I'm playing with the following stylesheet right at the moment, that I snagged from here:
http://xslt.com/html/xsl-list/2001-05/msg00028.html
-------------------------------------------------------------
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java">
<xsl:template match="/">
<xsl:variable name="max" select="10" />
<xsl:variable name="min" select="4" />
<xsl:variable name="R" select="java:java.util.Random.new()" />
<xsl:value-of select="($max -$min) * java:nextDouble($R) + $min" />
</xsl:template>
</xsl:stylesheet>
-------------------------------------------------------------
I won't end up using it as-is, but I'd like to make it work just so that I know that I can make extensions work.
The machine I'm doing the work on... it's Windows 2000 and I
think we're using Xalan, though I'm not sure of the version.
As I said, the error I'm getting is "COM Error: Namespace 'http://xml.apache.org/xslt/java' does not contain any functions."
Type slowly and bear with me if I'm getting my terminology wrong. Thanks :)