Use spring tag in XSLT

Posted by X-Pippes on Stack Overflow See other posts from Stack Overflow or by X-Pippes
Published on 2013-10-10T16:03:59Z Indexed on 2013/10/17 15:56 UTC
Read the original article Hit count: 467

Filed under:
|
|
|
|

I have a XSL/XML parser to produce jsp/html code.

Using MVC model I need to accees spring library in order to perform i18n translation. Thus, given the xml

<a>
  ...
  <country>EN</country>
  ...
</a>

and using <spring:message code="table_country_code.EN"/> tag, choose based on the browser language, the transalation into England, Inglaterra, etc... However, the XSL do not support <spring:message> tag. The idea is to have a XSLT with something like this

<spring:message code="table_country_code.><xsl:value-of select="country"/>"/>`

I also tried to create the spring tag in Java when I make a parse to create the XML but I sill have the same error.

ERROR [STDERR] (http-0.0.0.0-8080-1) file:///C:/Software/Jboss/jboss-soa-p-5/jboss-as/bin/jstl:; Line #5; Column #58; The prefix "spring" for element "spring:message" is not bound.

How can I resolve?

© Stack Overflow or respective owner

Related posts about java

Related posts about html