This is probably a foolish newbie question but I've searched all kinds of
documents and mailing lists to no avail.
I'm using Cocoon 1.7 (my hosting provider has yet to upgrade) to render some
static XML into HTML. Everything worked great until I decided that I need some
random position values so that the rendered web page will look slightly
different each time. I thought I could do it using something similar to this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<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="/">
<html><head></head>
<body>
<h2><xsl:value-of select="java:java.lang.Math.random()"/></h2>
</body>
</html>
</xsl:template>
However it always gives me this error: "java.lang.NoClassDefFoundError:
com.ibm.bsf.BSFManager". Does this mean that my libraries or classpath is
messed up or am I just referencing this wrong? Also, if anyone has any
suggestions of another way to get random values in xsl let me know.
thanks,
-Brendan
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>