cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohit Narain" <m.nar...@solitarsystems.com>
Subject RE: Help needed with i18n
Date Fri, 07 Sep 2001 07:11:38 GMT
Here's what im tying to do:

1. Load simple.xsp from the main cocoon welcome page. This is loaded with a
click on the XSP Internationalization link - simpl.xsp uses simple.xsl for
transformation.

2. From simple.xsp, i have a link to demo.xsp which is stored in the /i18n
folder. When the page loads up, it automatically uses simple.xsl for
transformation. I want to customise this to use demo.xsl.

This is where the problem arises because the sub-sitemap for i18n hard-codes
simple.xsl - <map:transform src="simple.xsl"/>. However, when i changed this
to <map:transform src="{../1}.xsl"/> similar to the way it generates the xsp
page, i got the following error -
org.apache.cocoon.sitemap.PatternException: error occurred during evaluation
of expression "{../1}.xsl" at position 1 Index: -1, Size: 1

That's how the situation stands as of now.
Any ideas?

Best Wishes...Mohit

-----Original Message-----
From: Piroumian, Konstantin [mailto:KPiroumian@flagship.ru]
Sent: Friday, September 07, 2001 12:18 PM
To: cocoon-users@xml.apache.org; m.narain@solitarsystems.com
Subject: Re: Help needed with i18n


> <map:match pattern="**.xsp">
> <map:act type="lang-select">
> <map:generate type="serverpages" src="{../1}.xsp"/>
> <map:transform type="i18n">
> <map:parameter name="src" value="translations/{../1}_dict.xml"/>
> </map:transform>
> </map:act>
> <map:transform src="simple.xsl"/>
> <map:serialize/>
> </map:match>
>
> I cant even change the **.xsp in the match pattern to customise it for
each
> xsp page (like <map:match patern=simple.xsp>. For example, i have a link
> form simple.xsp to demo.xsp. The link works fine, but the style sheet is
the
> same for both. Any ideas how i can customise these sub-double-digit lines
of
> code?!!!

Sorry, I couldn't understand how is this related to i18n. Could you please
describe the problem with more details?

Regards,
    Konstantin Piroumian

>
> Looking forward to your response,
> Mohit
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message