You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by michael gruber <gr...@msg.de> on 2000/01/26 21:03:35 UTC

passing parameters to java-classes

Hi!
Is there any way to pass variables to Java-classes?
Having some xml:

<x>
      <n>1</n>
     <s>hai</>
</x>


I tried - using the extension-ns:
xmlns:java="http://xsl.lotus.com/java"
and
    <xsl:variable select="n" name="n"/>
    <xsl:variable select="s" name="s"/>
<xsl:value-of select="java:de.msg.Myclass.mymethod( $n, $s)"/>

- to pass these parameters.
SAXON and oracle did it.
It`s even possible (with SAXON and ORA) to pass the values in a direct
fashion:

    <xsl:value-of select="java:de.msg.Myclass.mymethod( x/n, x/s)"/>

Is something equal possible with xalan? [other syntax,...]

merci,
michael