-3

I would like to convert English content of XML data into Hindi, on an html or doc using xsl in java.

Can this possibly be achieved ?

I have tried using locale but didn't not get any output.

Vandan Revanur
  • 459
  • 6
  • 17
Pravin
  • 1

1 Answers1

0

Well, if your XSLT calls other Java methods to translate between English and Hindi then it is technically possible.

In case you expect and automatic translation, then the answer is: No.

A Locale just influences formatting of local specific things like dates, monetary values, numbers and the like.

Florian Fray
  • 274
  • 1
  • 6
  • "Well, if your XSLT calls other Java methods to translate between English and Hindi then it is technically possible." For this what i have to do can you please elaborate. – Pravin Sep 21 '17 at 08:48
  • 1
    I believe that what Florian Frey is saying is: You will require a Java library that performs translation between English and Hindi. Nothing in XSLT prevents your calling such a library; the problem will be finding one that works. – C. M. Sperberg-McQueen Sep 21 '17 at 16:53
  • What I wanted to say is: It is not sufficient to specify a Locale, as a Locale is about formatting only. There's no built-in text recognition and translation mechanism in the Java Language itself nor in the standard libraries. – Florian Fray Sep 22 '17 at 06:17