cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26896] New: - [PATCH] cl:links/cl:content creates HTML anchor around text, not other HTML elements
Date Thu, 12 Feb 2004 17:42:30 GMT
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!

Mime
View raw message