The XSL template for <wadl:doc> generates wrong HTML in some cases

Bug #426858 reported by Michael Bienia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Benji York

Bug Description

While working on a Table of Contents for the API documentation, I've also fixed some HTML errors in the XSL stylesheet (see http://bazaar.launchpad.net/~geser/launchpadlib/toc/revision/57).

But one error I couldn't fix with my (limited) knowledge of XSL/XPath: the template for <wadl:doc> generates a <p>...</p> around its content. This is OK unless the content already contains markup itself (some documentation strings have one (or more) <p>...</p>). In this case wrong HTML is generated (e.g. <p><p>...</p></p>) which the W3C validator marks as an error.

Related branches

Revision history for this message
Gary Poster (gary) wrote :

I believe we want to move the XSLT to the LP tree, so moving this bug to the Foundations team.

Changed in launchpadlib:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Benji York (benji)
affects: launchpadlib → launchpad-foundations
Benji York (benji)
Changed in launchpad-foundations:
status: Triaged → In Progress
Benji York (benji)
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
milestone: none → 11.01
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.