cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Interprete XML
Date Mon, 19 Jun 2006 09:53:34 GMT
Thanks for your answer, Bertrand

now, my sitemap looks like that (HTML Transformer is registered)

<map:match pattern="object">
       <map:generate type="file" src="documents/xml/sql.xml"/>
       <map:transform type="sql">
            <map:parameter name="use-connection" value="mysql-pool"/>
            <map:parameter name="nr" value="{request-param:nr}"/>
       <map:transform type="html">
          <map:parameter name="tags" value="desc"/>
       <map:transform src="documents/stylesheets/object.xsl"/>
       <map:serialize type="xhtml"/>

I managed to change <br> to &lt;br/&gt; in <sql:desc> (otherwise it shows

Apache Cocoon, often just called Cocoon, is a web development framework
built around the concepts of separation of concerns and component-based web
development. &lt;br/&gt; The framework focuses on XML and XSLT publishing
and is built using the Java programming language. &lt;br/&gt; The
flexibility afforded by relying heavily on XML allows rapid content
publishing in a variety of formats including HTML, PDF, and WML.

But it still doesn't work. Only in the output it changes "&lt;br/&gt;" to
"<br/>"; but no line break.
Am I missing something else...?

Thank you again

2006/6/19, Bertrand Delacretaz <>:
> On 6/19/06, <> wrote:
> > ...Now, my XHTML should make a line-break everytime it finds a <br>. How
> can I
> > make this possible? Until now, it just takes the <br> as a 'normal'
> word....
> Most probably because your <br> are part of the element's text, they
> are not really XML elements.
> The HtmlTransformer allows you to parse such elements, that's probably
> what you want. See
> -Bertrand
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message