Java Extensions with Saxon
Posted: Mon Nov 05, 2012 12:58 pm
Hello,
I am trying to create an XSLT transformer that gets some of its data from a Java object. I am using and inside my template I am using but I get told "Saxon-PE 9.4.0.4 cannot find a matching 0-argument function named {java:you.RM.Definition}new()". However the only constructor for this Class is parameterless.
Viewing the jar file added to the transformer's extensions I can plainly see the class in question so I am a little confused here. I have tried both PE and SE to no avail.
Any help with this would be appreciated.
P.S. I also get this: For diagnostics on calls to Java methods, use the -TJ command line option or set the Configuration property FeatureKeys.TRACE_EXTERNAL_FUNCTIONS but passing -TJ via the start up shell script doesn't work and I see no other obvious way to do this.
--
William
I am trying to create an XSLT transformer that gets some of its data from a Java object. I am using
Code: Select all
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:RM="java:you.RM.Definition" exclude-result-prefixes="xs RM">
Code: Select all
<xsl:variable name="Def" select="RM:new()" />
Viewing the jar file added to the transformer's extensions I can plainly see the class in question so I am a little confused here. I have tried both PE and SE to no avail.
Any help with this would be appreciated.
P.S. I also get this: For diagnostics on calls to Java methods, use the -TJ command line option or set the Configuration property FeatureKeys.TRACE_EXTERNAL_FUNCTIONS but passing -TJ via the start up shell script doesn't work and I see no other obvious way to do this.
--
William