[ http://nagoya.apache.org/jira/browse/XALANJ-1485?page=history ]

Henry Zongaro updated XALANJ-1485:
----------------------------------

    Priority: Major  (was: Blocker)

> Dynamic params (<xsl:param..> as argument in java call)
> -------------------------------------------------------
>
>          Key: XALANJ-1485
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1485
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC, parse-or-compile
>     Versions: 2.5Dx
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Jose A. Illescas
>     Assignee: Santiago Pericas-Geertsen

>
> 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");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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