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:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 12:18 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>