cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: Workaround against i18n(2.0.1) bug (divided buffered keys)
Date Tue, 02 Jul 2002 13:11:27 GMT
> From: KOZLOV Roman [mailto:r-kozlov@opencascade.com] 
> 
> Hello,
> 
> It's just concerning i18n transformer in Cocoon 2.0.1.
> There is known bug of i18n related to "untranslated-text" because of
> keys divided by parser.

I'd say "there was a known bug". I've fixed that bug several months ago. You
can just get a newer version from CVS (2.0.3 branch contains fixed version).

> It seems that using "concat" function for concatenation of 
> empty string
> and a key in construction like
> <i18n:text><xsl:value-of select="concat('',LABEL)"/></i18n:text>
> helps to avoid such a key dividing.

It's interesting how it can solve this problem? According to SAX
specification, the parser can break character data into chunks on its
discretion. So, you cannot guarantee that some other parser or in some other
condition this will work too.

> 
> Could someone, who is more familiar with these issues confirm 
> that this
> workaround could help to avoid the bug or it just decrease probability
> of keys dividing?

Just get the newer version. There were some other changes since 2.0, but you
can use the CVS revision history to get the needed version. (I'd point you
to the needed version, but have problems accessing CVS currently).

Konstantin

> 
> Thank you in advance,
> Roman
> 
> 
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message