Hi Cocooners! Can I use i18n in XSLT transformations? I have any.xml - XML document <body> <my-space:component/> <!-- my component with default configuration --> </body>
my-space.xsl - logicsheet processing tag for other tags <template match="my-space:component> <struct> <item1>any_link</item1> <item2/> </struct> </template> component.xslt - stylesheet to transform <struct> to final XHTML tags <xsl:stylesheet version="1.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <template match="struct"> <TABLE> <TR> <TD> <A><xsl:attribute name="HREF"><xsl:value-of select="item1"/></xsl:attribute> <i18n:text i18n:key="go">GO!</i18n:text> </A> </TD> <TD>.........</TD> </TR> </TABLE> </template> and here is a trouble! i18n in my stylesheet generates error: org.apache.cocoon.ProcessingException: Exception in creating Transform Handler: java.lang.NullPointerException sitemap.xmap <map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer"> <catalogue-location>resources</catalogue-location> <catalogue-name>messages</catalogue-name> </map:transformer> ... <map:transform type="i18n"/> <!-- used in any <map:match> tag --> and in $MY_PROJECT/resources directory i have got messages.xml <catalogue xml:lang="pl"> <message key="go">IDŹ</message> </catalogue> Where I have error? Need I to use i18n in XML generator only? Help... It is quite important for me to have separate xslt for my component - in logicsheet i can't insert i18n tags, because logcsheet don't know about target xslt. Best regards Jerzy Kut --------------------------------------------------------------------- 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]>