Maven 1.x FAQ Plugin

faq plugin does not produce valid XHTML 1.0 Transitional

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.4
  • Fix Version/s: 1.5
  • Component/s: None
  • Labels:
    None
  • Environment:
    any
  • Number of attachments :
    1

Description

The html code produced by the current maven-faq-plugin is not valid XHTML 1.0 Transitional. That's because the <title> sub-element of each <part> get's copied through in the faq.jsl file (line 64), but XHTML 1.0 allows only one <title> element per document.

There are several possible solutions for this, the most sensible ones are:

  • rename the <title> element, so it does not conflict with the HTML keyword
  • replace the <title> element by a title="" attribute of the <part> element.

Activity

Hide
Lukas Theussl added a comment -

A trivial change to fix this: since <title> and <faq> are the only elements allowed in <part>, it suffices
to call only the <faq> template. As such, the <title> element will not get copied over to the xdoc and html,
where it doesn't belong to.

Show
Lukas Theussl added a comment - A trivial change to fix this: since <title> and <faq> are the only elements allowed in <part>, it suffices to call only the <faq> template. As such, the <title> element will not get copied over to the xdoc and html, where it doesn't belong to.
Hide
Arnaud Heritier added a comment -

Patch applied. Thanks.

Show
Arnaud Heritier added a comment - Patch applied. Thanks.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
5m
Original Estimate - 5 minutes
Remaining:
5m
Remaining Estimate - 5 minutes
Logged:
Not Specified
Time Spent - Not Specified