cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Timberlake <and...@opensourcegroup.co.za>
Subject Re: How to embed Cform in larger web site layout
Date Sun, 29 Jan 2006 10:24:06 GMT
Peter.Neu@gmx.net wrote:
> Thanks for the comments. So essentially I got this two options: 
>
> 1. Do a clean xhtml output of the cform pipeline 
> 2. Write a transformer that encapsulates the cform pipeline output.
>
> The problem is that the cforms have their own custom transformer (xslt)
> template which just outputs html. I wouldn't like to mess around with it in
> order to keep things simple. 
>
> Isn't there an easier way to do this? I mean working with html fragments is
> one of the most basic web programming tasks. 
>
> If there isn't how would I encapsulate my html output? A short code snippet
> would help a lot. 
>
> cheers,
> Pete
>
>   
Peter

The cform transformer outputs XML, not HTML. Although it may have the 
HTML,BODY etc elements, because it comes straight out of an XSLT 
process, it is XML.
You can therefore write a simple XSLT to strip the HTML and other 
elements you don't need to end with the fragment you need.

Andrew

Mime
View raw message