Re: [xsl] Scripting in XSL

Subject: Re: [xsl] Scripting in XSL
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 22 Jul 2004 21:51:56 +0200
Ajit Sawant wrote:
I want to do some scripting in xsl using Java. (and this is my first time!!!)

I don't think you actually "do scripting" using Java in Xalan. Xalan allows calls to static Java methods as extension functions in XPath expressions. See and the following example.

<xalan:script language="javaclass" src="xalan:java.util.Date" />
I doubt this will work, ever.

<xsl:variable name="date" select="Date:toString(Date:new())" xmlns:Date="xalan:java.util.Date" />
Likely another mistake, you probably want
 <DOB><xsl:value-of select="$date"/></DOB>


Current Thread