Jörn Nettingsmeier schrieb: > [EMAIL PROTECTED] wrote: >> Author: andreas >> Date: Tue Nov 14 10:24:07 2006 >> New Revision: 474906 >> >> URL: http://svn.apache.org/viewvc?view=rev&rev=474906 >> Log: >> Load module i18n catalogues only a publication URI is requested > > do you mean "load module... only *if*..." ?
Yes. > why? Because otherwise it tries to read a non-existing publication.xconf. -- Andreas > > >> Modified: >> lenya/trunk/src/webapp/lenya/i18n.xmap >> >> Modified: lenya/trunk/src/webapp/lenya/i18n.xmap >> URL: >> http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/i18n.xmap?view=diff&rev=474906&r1=474905&r2=474906 >> >> ============================================================================== >> >> --- lenya/trunk/src/webapp/lenya/i18n.xmap (original) >> +++ lenya/trunk/src/webapp/lenya/i18n.xmap Tue Nov 14 10:24:07 2006 >> @@ -28,10 +28,14 @@ >> <map:resources> >> <map:resource name="serializeCatalogue"> >> - <map:transform src="resources/i18n/modules2xinclude.xsl"> >> - <map:parameter name="pubId" >> value="{page-envelope:publication-id}"/> >> - <map:parameter name="catalogue" value="{catalogue}"/> >> - </map:transform> >> + <map:select type="resource-exists"> >> + <map:when >> test="context://lenya/pubs/{page-envelope:publication-id}/config/publication.xconf"> >> >> + <map:transform src="resources/i18n/modules2xinclude.xsl"> >> + <map:parameter name="pubId" >> value="{page-envelope:publication-id}"/> >> + <map:parameter name="catalogue" value="{catalogue}"/> >> + </map:transform> >> + </map:when> >> + </map:select> >> <map:transform type="xinclude"/> >> <map:serialize/> >> </map:resource> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
