Include this namespace: xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"
See use of java in select atttributes : <xsl:template name="todayis" xml:space="preserve"> <xsl:variable name="fmt" select="java:java.text.SimpleDateFormat.new('yyyy-MMM-dd')"/> <xsl:variable name="now" select="java:java.util.Date.new()"/> <xsl:value-of select="java:format($fmt,$now)"/>. </xsl:template> ----- Original Message ----- From: Marina Pérel To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 10:36 AM Subject: xsl:script and FOP Hi! I would like to know if FOP implements the tag <xsl:script> because i 'd like to insert into my XSL steelsheet some javascript's code. My stylesheet looks like : <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:script language="javascript" implements-prefix="js"> function impresion(i){return i;}; </xsl:script> ..... </xsl:stylesheet> When i launch FOP i have this error => ERROR : null Does anybody have ideas ? Thanks a lot in advance for your answers Marina