> From: Mathias Ochsendorf [mailto:[EMAIL PROTECTED]] 
> 
> > <a href="/test">
> >    <img>
> >     <xsl:attribute name="src">
> >             <i18n:translate>
> >                     
> <i18n:text>/images/test.svg?label_text={0}&amp;label_color={1}
> </i18n:text>

There is no need for <i18n:text> wrapper here if don't want to translate the
'/images/...' string itself.

> >                     
> <i18n:param><i18n:text>hello</i18n:text></i18n:param>
> >                     
> <i18n:param><i18n:text>red</i18n:text></i18n:param>
> >             </i18n:translate>
> >     </xsl:attribute>
> >    </img>
> > </a>
> 
> unfortunately this approach doesn't work. it causes a
> nullpointerexception:

It should work. The error happens somewhere during XSLT transformation and
not the i18n. Try the i18n without XSLT transformation to see if it works.

--
  Konstantin

> 
> Original exception :
> org.apache.avalon.excalibur.xml.xslt.XSLTProcessorException: 
> Exception in
> creating Transform Handler
> at
> org.apache.avalon.excalibur.xml.xslt.XSLTProcessorImpl.getTran
> sformerHandlerAndValidity(XSLTProcessorImpl.java:287)
> at
> org.apache.cocoon.transformation.TraxTransformer.setup(TraxTra
> nsformer.java:333)
> 
> ...
> 
> 
> 
> Best,
> -- 
> Mathias
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to