You can get the old Java URI format using

--allow-old-java-uri-format:on

on the command line (note the double hyphen) without needing a configuration file. This applies to all the options in FeatureKeys

http://www.saxonica.com/documentation/configuration/config-features.xml

The AssertionError looks like a bug. Repro please!

Michael Kay
Saxonica

On 18/01/2011 12:41, Norman Walsh wrote:
Hi Michael,

I've been using a Java class with a couple of single-argument static
methods for years, like this:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:digest="http://nwalsh.com/xslt/ext/com.nwalsh.xslt.Digest"
                version="2.0"
                exclude-result-prefixes="digest">
...
      <xsl:value-of select="digest:md5(concat($f:shared_secret,$sig))"/>

In 9.3.0.4, I get:

  Cannot find a matching 1-argument function named
  {http://nwalsh.com/xslt/ext/com.nwalsh.xslt.Digest}md5()

Looking through the docs, I see that I probably need to set something
in the configuration file about old Java URI formats, but I haven't a
clue where that file is or what format it has, so I keep digging:

It appears that this should work

  xmlns:digest="java:com.nwalsh.xslt.Digest"

but that doesn't work either:

  Exception in thread "main" java.lang.AssertionError: Internal error:
  invalid slot number for local variable (0). Variable reference
  $gg:gg2054478636 at line 39...

Updating the Java class so that the XPathContext argument is explicit
didn't help.

And when I finally craft a configuration file:

  <configuration xmlns="http://saxon.sf.net/ns/configuration"
                 edition="EE">
    <global
      allowOldJavaUriFormat="true"
    />
  </configuration>

I get the same error. User error, or bug?

                                        Be seeing you,
                                          norm

------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help