#1142 useless <span> for <phrase> -NS

output: HTML
pending-fixed
XSL (1066)
5
2011-10-07
2010-09-27
No

Use the of Docbook tag <phrase> results in useless HTML.

Presently, the Docbook code:

<phrase>This is a phrase.</phrase>

results in the following HTML:

<span>This is a phrase.</span>

It should result in the following HTML to be useful:

<span class="phrase">This is a phrase.</span>

The attached example was processed with:

docbook-xsl-ns/html/docbook.xsl

from the 1.76.0 release.

This problem also exists in the XHTML 1.1 stylesheets.

Thanks

Discussion

  • Oliver K. Smith

    Oliver K. Smith - 2010-09-27

    I've revised my example.

    The role attribute works as advertised.

    However, the default behavior is useless.

    Please consider changing it to do the following:

    - if no role is specified, then the class of the span tag become "phrase"

    - if a role is specified and phrase.propagates.style=1, then the class of the span tag becomes the value of the role attribute

    Unless I'm mistaken, the above should be completely backwards compatible.

    Thanks.

     
  • Mauritz Jeanson

    Mauritz Jeanson - 2011-10-03
    • assigned_to: nobody --> bobstayton
     
  • Robert Stayton

    Robert Stayton - 2011-10-07

    A fix for this issue has been added to the current codebase.
    Please test the fix with the latest snapshot from:

    http://docbook.sourceforge.net/snapshots/

     
  • Robert Stayton

    Robert Stayton - 2011-10-07
    • status: open --> pending-fixed
     
  • Robert Stayton

    Robert Stayton - 2011-10-07

    I added the default class="phrase" if role not used. Thanks for the report.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks