Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2006, 01:02 AM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default i18n problem in xsl

Hi



We are using Cocoon 2.1(Web publishing Framework)

We have some problem in getting the i18n content in pages.

If we hardcode the key value like for instance, <i18n:text>input-text</i18n:text> then the translated value is getting printed (for example “output-text”),

For Example: input-text is ‘home’ corresponding value is ‘Espana’ in message.xml [ <message key=”home”>Espana</message>]

 But if we try to get the key value from xsl variable, like

<i18n:text><xsl:value-of select=”$variable”/></i18n:text> it’s not working although the $variable contains the value as ‘home’. The output comes as “home”.

But the expected result is ‘Espana’

Could you please help us to resolve this problem?

We will be very grateful to you if you could help us as soon as possible.

- Regards,

Jagadeeswaran.S




 
Old June 15th, 2006, 02:24 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You're probably better off asking this on a Coccoon forum.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL for-each/when problem Grofit XSLT 11 March 27th, 2008 10:26 AM
xsl:if problem lscjtw XSLT 2 July 26th, 2007 11:29 AM
i18n Translation jagadeesh BOOK: Expert One-on-One J2EE Design and Development 0 June 13th, 2006 08:18 AM
i18n (Locale) support in HttpRequestDataBinder shoening BOOK: Expert One-on-One J2EE Design and Development 1 April 8th, 2004 01:21 PM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.