I'm trying to find a way to display the current date. I found this code on this site and have tried it:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('yyyy.MM.dd'), java:java.util.Date.new())" />
I'm using xslt 1 and stylesheet version 1 and translating to a pdf. I think it will work but my FO processor "can't find the script or external object that implements the prefix 'http://xml.apache.org/xslt/java'. I also tried the date-and-times extender and got similar results. What am I doing wrong? I also read something about third party extenders where you put in a line like <xsl:import href='date.xsl'> Hope someone can help.
Thank you, Paula