cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Schneider" <volker.schnei...@danet.de>
Subject Unable to locate resource: messages (C2)
Date Fri, 12 Apr 2002 09:12:58 GMT
Hi colleagues,

I need the i18n transformer and tried a simple sample:

first.xml:

<route xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
<start>
<i18n:translate>
	<i18n:text>Startpunkt</i18n:text>
</i18n:translate>
</start>

<ziel>Endpunkt:</ziel>
<abschnitte>
</abschnitte>
</route>

dictionary.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<translations>
  <entry>
    <key>Startpunkt</key>
    <translation lang="en">Starting point</translation>
    <translation lang="de">Startpunkt</translation>
  </entry>
</translations>

sitemap.xmap:

<map:match pattern="test">
    <map:generate src="prototyp/first.xml"/>
    <map:transform type="i18n" src="prototyp/dictionary.xml"/>
    <map:serialize type="xml"/>
</map:match>

When running the example I got the message:

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Unable to locate resource: messages

Does anybody know what this means and what could be wrong. I took the syntax
from the userdoc. How does i18n know which language I want to have?

Please help me.

Regards
- Volker -


---------------------------------------------------------------------
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