All,

I have downloaded the latest Xalan 2.1.0 and try to play with the technology.
I use JDK 1.2.2 on NT4 platform.

I have written a java class containing a static method. If I run the stylesheet
through the XSLT interpreter (java org.apache.xalan.xslt.Process), it works
fine.

However when I try to compile the stylesheet (java
org.apache.xalan.xsltc.compiler.XSLTC), the XSLT compiler is not able to resolve
the call to the static function.
I tried to use different namespace but I cannot get it working.

Could you please help me on that ?

What is the correct namespace ???? Does it come from the invocation or something
else ?


XSLTC compiler trace showing some of the namespaces I tried :

D:\xalan-j_2_1_0\samples\SimpleTransform>java
org.apache.xalan.xsltc.compiler.XSLTC marcext.xsl
Compile errors:
  Unable to resolve call to function
'http://xml.apache.org/xalan/xsltc/java/java:GLCommand.getCommand'.

D:\xalan-j_2_1_0\samples\SimpleTransform>java
org.apache.xalan.xsltc.compiler.XSLTC marcext.xsl
Compile errors:
  Unable to resolve call to function
'http://xml.apache.org/xalan/xsltc/java/java/GLCommand:getCommand'.

D:\xalan-j_2_1_0\samples\SimpleTransform>java
org.apache.xalan.xsltc.compiler.XSLTC marcext.xsl
Compile errors:
  Unable to resolve call to function
'http://xml.apache.org/xalan/xsltc/java/java/GLCommand:GLCommand.getCommand'.

D:\xalan-j_2_1_0\samples\SimpleTransform>java
org.apache.xalan.xsltc.compiler.XSLTC marcext.xsl
Compile errors:
  Unable to resolve call to function 'GLCommand:getCommand'.

Stylesheet :

<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:cmd="GLCommand">
  <xsl:output method="xml"/>
  <xsl:template match="/">
......
  <xsl:variable name="Var.Workflow" select="CreateOrder_FG_LM/Workflow"/>
  <xsl:variable name="Var.Action" select="CreateOrder_FG_LM/Action"/>
      <Command>
    <xsl:value-of select="cmd:getCommand($Var.Workflow,$Var.Action)"/>
  </Command>

Regards,
Marc



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.

Reply via email to