| Subject: Re: [xsl] Scripting in XSL From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Thu, 22 Jul 2004 21:51:56 +0200 | 
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 http://xml.apache.org/xalan-j/extensions.html#java-namespace 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" />
<DOB>$date</DOB>
^^^^^ Likely another mistake, you probably want <DOB><xsl:value-of select="$date"/></DOB>
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] Scripting in XSL, Ajit Sawant | Thread | [xsl] Indent?, Chris Carrier | 
| Re: [xsl] Infinite Loop when param , david_n_bertoni | Date | Re: [xsl] Infinite Loop when param , Wendell Piez | 
| Month |