You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/02/12 18:42:30 UTC

DO NOT REPLY [Bug 26896] New: - [PATCH] cl:links/cl:content creates HTML anchor around text, not other HTML elements

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26896>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26896

[PATCH] cl:links/cl:content creates HTML anchor around text, not other HTML elements

           Summary: [PATCH] cl:links/cl:content creates HTML anchor around
                    text, not other HTML elements
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: general components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: jon.evans@misgl.com


I was trying to use the following form of cl:links:
<cl:links>
  ...
  <cl:content>
    <img src="..."/>
    <h4>Text</h4>
  </cl:content>
</cl:links>

Unfortunately it creates the following:
<a href="...">Text</a>

i.e. it throws away all content except text.

I have patched CocoonTransformer.java to preserve all content so that it is
possible for my app to create a link around an image.

Patch to follow.

Cheers!