cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: [cforms] XML Binding with HTMLArea
Date Tue, 10 Feb 2004 18:44:35 GMT
On 08.02.2004 18:45, Andreas Hochsteger wrote:

> Hi!
> 
> Thanks for your reply.
> Do you mean the file woody-field-styling.xsl?
> 
> I just had a look at it:
>   <!--
>     wi:field with @type 'htmlarea'
>   -->
>   <xsl:template match="wi:field[wi:styling[@type='htmlarea']]">
>     <textarea id="{@id}" name="{@id}" title="{wi:hint}">
>       <xsl:apply-templates select="." mode="styling"/>
>       <!-- remove carriage-returns (occurs on certain versions of IE and 
> doubles linebreaks at each submit) -->
>       <xsl:copy-of select="translate(wi:value/node(), '&#13;', '')"/>

translate() must not be used here as it operates on /returns a 
string(s), no nodeset(s). But from reading Ugo's message I don't know if 
this solves the core of your problem.

Joerg

Mime
View raw message