Hi,

I have a stylesheet with the following in it:

<xsl:variable name="language" select="/Document/@Language" />
<xsl:variable name="country" select="/Document/@Country" />
<xsl:variable name="locale" select="java:java.util.Locale.new($language, $country)" />
<xsl:variable name="i18nBundle" select="java:java.util.ResourceBundle.getBundle('clients.someclient.i18n', $locale)" />



This standalone application has the directory that contains "clients/someclient" in the classpath and I can easily call:
ResourceBundle bundle = ResourceBundle.getBundle("clients.someclient.i18n");
without throwing a MissingResourceException from anywhere in my java class files. I can also do transforms with Xalan as well but when I include the above XSL extension code I get a MissingResourceException thrown.


So my question is how come Xalan isn't using the applications classpath in it's extension mechanism? Also I tried jarring up that clients directory and sticking it my Java Extensions directory (which on Mac OS X gets added to the classpath automatically) and it found the file fine. But I want these properties files to be editable and not wrapped up in a jar. The clients directory is to sit in the applications top level directory.

Any help/advice would be apprectiated.

Thanks
Mike



Reply via email to