>From: Vadim Gritsenko
>> From: Jean-Philippe Courson
>>
>> Does anybody know how to tell cocoon not to add
>> carriage returns during xsl transformation ?
>>
>> For example when in an xsl file you write :
>>
>> alert('<xsl:value-of select="message"/>');
>>
>> You obtain
>>
>> alert('
>> messageValue
>> ');
>>
>> that causes js errors.
> Cocoon has nothing to do with it. Your "message" tag has
> return characters inside it. Read on XSLT, there is a link
> on Cocoon website to the XSLT mailing list and FAQ (IIRC)
>
> Vadim
As Vadim says, nothing to do with Cocoon. You need to
use the XSLT function normalize-space() whenever you
want to rely on the content of an element. We just added
an FAQ about this, using your question as a base.
The Cocoon doco requests that all XSLT issues should
consult the XSL resources at places like
www.mulberrytech.com/xsl/ for example.
--David
---------------------------------------------------------------------
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]>