forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iss...@cocoondev.org
Subject [JIRA] Commented: (FOR-241) forrest undoes entity resolution
Date Thu, 24 Feb 2005 06:46:42 GMT
The following comment has been added to this issue:

     Author: David Crossley
    Created: Thu, 24 Feb 2005 12:46 AM
       Body:
I have done some investigation. The issue only happens on the link/@href and a/@href and img/@src
attributes. Other attributes are okay, e.g. link/@title and img/@alt

In 0.7-dev, request http://localhost:8888/body-dreams.html ... View-source shows that the
a/@href attributes have been mangled. Now in the main/webapp/sitemap.xmap go to the <map:resource
name="skinit"> at line 208. Replace the html serializer with an xml serializer. View-source
for body-dreams.html shows that the entities are intact. So it is the html serializer on the
internal pipeline that "fixes" the href attributes.

Using today's cocoon-trunk and their "Hello world" sample, adding an <a> element, shows
that there is no such problem.
---------------------------------------------------------------------
View this comment:
  http://issues.cocoondev.org//browse/FOR-241?page=comments#action_12088

---------------------------------------------------------------------
View the issue:
  http://issues.cocoondev.org//browse/FOR-241

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: FOR-241
    Summary: forrest undoes entity resolution
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Forrest
 Components: 
             Core operations
   Fix Fors:
             0.7
   Versions:
             0.6

   Assignee: 
   Reporter: Diwaker Gupta

    Created: Mon, 2 Aug 2004 9:00 PM
    Updated: Thu, 24 Feb 2005 12:46 AM

Description:
If I have a url like this inside the XML source:

http://sourceforge.net/sflogo.php?group_id=comics-grabber&type=1

validate-xdocs fails because it wants the literal & to be typed out as
&amp; instead. So I correct it to become:

http://sourceforge.net/sflogo.php?group_id=comics-grabber&amp;type=1

However, the generated HTML has the entity resolution UNDONE!:

http://sourceforge.net/sflogo.php?group_id=comics-grabber&type=1

This HTML fails validation as 4.01 transitional.

David Crossley adds:
There is a demonstration of the problem in the document
src/documentation/content/xdocs/docs/dreams.xml
The ampersand in the link element text is properly handled but
the ampersand in the link href attribute is not.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message