cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Gauthier - INSERM SIRH <philippe.gauth...@tolbiac.inserm.fr>
Subject Re: About Client side Javascript in Cform
Date Tue, 19 Jun 2007 08:32:38 GMT
Grzegorz Kossakowski a écrit :
> Christian Schlichtherle pisze:
>> Hi,
>>
>>> I have been thinking about similar functionality you describe. For a 
>>> sign that it makes sense I suggest to take a look at Dojo's ShrinkSafe
>>> tool: http://dojotoolkit.org/docs/shrinksafe
>>
>> it may be one of the best kept public secrets of XSLT, but a simple 
>> identity
>> transformation will do this, too. Since XSLT is ubiquitiously used 
>> within
>> Cocoon, there's plenty of options to integrate the identity 
>> transformation
>> in other transformations without adding another transformation step 
>> into a
>> pipeline. So I don't think an additional solution would be required. 
>> I think
>> the real missing link is an example in the documentation.
>>
>> Here's how a complete script would look like:
>>
>> <xsl:stylesheet version="1.0"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>>   <!-- Identity transformation. -->
>>   <xsl:template match="@*|node()">
>>     <xsl:copy>
>>       <xsl:apply-templates select="@*|node()"/>
>>     </xsl:copy>
>>   </xsl:template>
>> </xsl:stylesheet>
>
> Christian, I don't understand your proposal. What brings us using 
> identity transformation?
>
Hi,
It would join all lines of the input javascript as xml.

-- 
Philippe Gauthier
INSERM
DRH - SIRH


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


Mime
View raw message