cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hochsteger <e9625...@student.tuwien.ac.at>
Subject Re: [cforms] XML Binding with HTMLArea
Date Sun, 08 Feb 2004 18:24:15 GMT
Yes, but without success.
Can you give me some hints or keywords what I should search for?

Thanks.

Nicolas Toper wrote:

> Have you looked in the archives? I know someone had a
> similar problem...
>  --- Andreas Hochsteger
> <e9625392@student.tuwien.ac.at> a écrit : > 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(), '
> 
> ', '')"/>
> 
>>     </textarea>
>>     <xsl:apply-templates select="." mode="common"/>
>>     <script
>>
> 
> language="JavaScript">HTMLArea.replace('<xsl:value-of
> 
>>select="@id"/>',htmlareaconfig);</script>
>>   </xsl:template>
>>
>>It seems that there is already xsl:copy-of in use.
>>Is it possible to signal the binding framework, that
>>it should treat the 
>>string as XML?
>>
>>Thanks,
>>
>>Andreas
>>
>>Nicolas Toper wrote:
>>
>>
>>>Hi,
>>>
>>>I just had the same problem with my own CMS. The
>>>problem is using xsl:copy-of instead of value-of.
>>>
>>>Hope it helps :=)
>>>
>>>nicolas
>>> --- Andreas Hochsteger
>>><e9625392@student.tuwien.ac.at> a écrit : > Hi,
>>>
>>>
>>>>how can I use a string which can be edited by the
>>>>HTMLArea widget in an 
>>>>XML binding?
>>>>The problem is, that the XHTML content which
>>
>>should
>>
>>>>be edited is only 
>>>>shown with the tags removed.
>>>>
>>>>Any ideas?
>>>>
>>>>Thanks,
>>>>
>>>>Andreas 
>>>
>>>
>>>
>>>	
>>>
>>>	
>>>		
>>>Yahoo! Mail : votre e-mail personnel et gratuit
>>
>>qui vous suit partout ! 
>>
>>>Créez votre Yahoo! Mail sur
>>
>>http://fr.benefits.yahoo.com/
>>
>>> 
> 
> 
> 
> 	
> 
> 	
> 		
> Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
> Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
> 
> 

Mime
View raw message