The following issue has been updated:

    Updater: Brian Minchau (mailto:[EMAIL PROTECTED])
       Date: Fri, 24 Sep 2004 7:51 AM
    Changes:
             Component changed to parse or compile
             Component changed to XSLTC
             Component changed from XSLTC parse/compile
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XALANJ-1485?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XALANJ-1485

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XALANJ-1485
    Summary: Dynamic params (<xsl:param..> as argument in java call)
       Type: Bug

     Status: Open
   Priority: Blocker

    Project: XalanJ2
 Components: 
             parse or compile
             XSLTC
   Versions:
             2.5Dx

   Assignee: Santiago Pericas-Geertsen
   Reporter: Jose A. Illescas

    Created: Tue, 15 Apr 2003 4:42 PM
    Updated: Fri, 24 Sep 2004 7:51 AM
Environment: Operating System: Other
Platform: Other

Description:
The stylesheet:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>

<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
        xmlns:bfc="http://www.bancoval.es/bfc";
        xmlns:Locale="java.util.Locale"
        xmlns:String="java.lang.String"
        xmlns:ResourceBundle="java.util.ResourceBundle">

        <!-- Locale -->
        <xsl:variable name="language" select="String:new('es')"/>
        <xsl:param name="country"/>
        <xsl:variable name="locale" select="Locale:new($language,$country)"/>
        <xsl:variable name="resourceBundle"
select="ResourceBundle:getBundle('es.bancoval.multilingual.EJBResourceBundle',$locale)"/>


        <!-- text -->
        <xsl:template name="translate">
                <xsl:param name="code"/>
                <xsl:value-of 
select="ResourceBundle:getString($resourceBundle,$code)"/>
        </xsl:template>
</xsl:stylesheet>

Causes the compile errors:

  Cannot convert argument/return type in call to method
'java.util.Locale.new(java.lang.String, reference)'
  Cannot convert argument/return type in call to method
'java.util.ResourceBundle.getBundle(string, void)'
  Cannot find external method 'java.util.ResourceBundle.getString' (must be public).

In xalan or saxon works fine.

Of course the param country is set before transformation with:

   transform.setParameter("country", "ES");


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to