You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/11/14 19:24:07 UTC
svn commit: r474906 - /lenya/trunk/src/webapp/lenya/i18n.xmap
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
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: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org
Re: svn commit: r474906 - /lenya/trunk/src/webapp/lenya/i18n.xmap
Posted by Andreas Hartmann <an...@apache.org>.
Jörn Nettingsmeier schrieb:
> andreas@apache.org 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: commits-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: commits-help@lenya.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: svn commit: r474906 - /lenya/trunk/src/webapp/lenya/i18n.xmap
Posted by Jörn Nettingsmeier <ne...@apache.org>.
andreas@apache.org 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*..." ?
why?
> 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: commits-unsubscribe@lenya.apache.org
> For additional commands, e-mail: commits-help@lenya.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org