Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java code within XSL

843834Jun 18 2004 — edited Jun 17 2005
Good day!

I really have a headache with Localization with XSL.
I use Apache Struts in jsp (the tags like <bean:message key='..'/> - there are not a problem to get message from MessageResources. But I have no idea what to use in XSL.

I tried to do this way:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="java"
version="1.0"
>

But when I call java code:
<xsl:variable name="resources"
select="java:util.ResourceBundle.getBundle('ApplicationResources')"/>

the error message appers: The name space "java" does not contain any functions.

Why the error appears? How can I use Java API in XSL?

Thanks in advance

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2005
Added on Jun 18 2004
2 comments
133 views