No, the two forms of URL that Saxon accepts are or anything/, where "anything" is any string of 0 or more characters.
Mike Kay
-----Original Message-----
From: Clapham, Paul []
Sent: 16 November 2001 16:52
To:; 'Luke Studley';
Subject: RE: [saxon] Loading a Java class Errors

Perhaps it would help to put a non-empty string before the "/" in this:
 ... xmlns:mytest="/"/java.util.Date">

-----Original Message-----
From: Michael Kay []
Sent: November 16, 2001 06:44
To: 'Luke Studley';
Subject: RE: [saxon] Loading a Java class Errors

I can't see what's going wrong here, but it's almost certainly a load failure of some kind. Unfortunately the actual loader error message is masked.
You might try doing
<xsl:variable name="debug"
This reproduces the call Saxon is making to load your class. If it fails, you should get the text of the loading exception.
Mike Kay
 -----Original Message-----
From: []On Behalf Of Luke Studley
Sent: 16 November 2001 12:11
To: ''
Subject: [saxon] Loading a Java class Errors



Trying to call a java class method from XSL. Have done this loads of times in the past, but some of our old stylesheets have stopped working since saxon 622. Have created a simple test case. Feel like I'm going mad - this is really basic!! Have checked and triple checked the classpath settings - and am convinced the class is in the class path - in the trace saxon says that it is loading the class but says: (Have also tried this with 622,63,643 and 65)


SAXON 6.5 from Michael Kay

Java version 1.3.1

Loading java.util.Date

Loading java.util.Date


Preparation time: 390 milliseconds

Processing file:/C:/Development/Perforce/frost/oracle/src/middleware/java/com/ce


Building tree for file:/C:/Development/Perforce/frost/oracle/src/middleware/java

/com/cerillion/tools/entity_generator/xsl/WebCareConfig.xml using class com.icl.


Tree built in 150 milliseconds

Error at xsl:value-of on line 8 of file:/C:/Development/Perforce/frost/oracle/sr



  The URI / does not identify an external Java cl


Transformation failed: Run-time errors were reported


Here is the stylesheet:


<?xml version="1.0"?>

<xsl:stylesheet version="1.1" xmlns:xsl=""




<xsl:template match="/">

    <xsl:value-of select="date:to-string(date:new())"/>

    <xsl:value-of select="mytest:getMessage()"/>





And here is the java class


public class MyTest {


    public static String getMessage() {

        return "Hello World";





Can anyone point out my - probably elementary - mistake?