cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: i18n-key problem
Date Tue, 01 Jun 2004 23:04:00 GMT
On 02.06.2004 00:51, Peter Kröpfl wrote:

> <a href=" snowboarder/start " class="textlink">
> <i18n:text i18n:key=" page.category.snowboarder "> snowboarder </i18n:text>
> </a>
> ---
> 
> With this code the i18n fails.

Ah, now I get confirmed what I already guessed :)

> i guess the spaces before and after the i18n-key is are to blame for that.

Indeed.

> I cannot figure out why these spaces appear.

That's simple:

 >  <xsp:attribute name="href">
 >   <esql:get-string column="NAME"/>/start
 >  </xsp:attribute>

Before the esql:get-string element you have a line break and spaces and 
the text node "/start" also does not end at the 't' but with a line 
break and the space(s) infront of </xsp:attribute>. You can either write 
it all in one line:

<xsp:attribute name="href"><esql:get-string 
column="NAME"/>/start</xsp:attribute>

or fix it in the stylesheet using normalize-space() that removes leading 
and trailing white spaces.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message