On 8 October 2012 03:33, Chris Maloney <
vold...@gmail.com> wrote:
> Hi, Demian,
>
> Maybe you can help, I'm just a little bit stuck, but I have the feeling this
> should be very easy, and I'm missing something simple. I was trying to move
> our code to saxon9he.jar instead of saxon.jar (version 6) so that we can use
> XSLT 2, and it is not working.
>
> I tried just switching to the new jar file in CLASSPATH, but it didn't
> change the symptoms at all. When I execute this from the test/split-example
> directory (both with saxon.jar and saxon9he.jar):
> dtdanalyzer -s split-example.dtd -m -x ../../xslt/dtddocumentor.xsl
> I get "Unknown system function: format-date()"
Have you changed the class you call?
net.sf.saxon.Transform
>
> Now, I am confused, because I just discovered that if I delete both
> saxon.jar and saxon9he.jar from the lib directory, that the XSLT 1.0
> transformations are still working.
> So, is the Java using something other than Saxon for the XSLT transform?
If you have a standard Sun java install, then the apache xslt engine
is available,
which won't have the format-date() function, being xslt 1.0
btw, you don't want the function: prefix in place
I use
cp=/myjava/saxon9he.jar:/myjava:/myjava/xercesImpl.jar
java -Xmx1200m -cp ${cp}:. net.sf.saxon.Transform -xi
-x:org.apache.xerces.parsers.SAXParser -o:$3 -s:$1 -xsl:$2 $4 $5 $6
$7
clearly change the classpath to suite your environment
HTH
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk