Red Hat Bugzilla – Bug 469286
screen inside para outputs invalid XHTML
Last modified: 2010-11-23 22:58:27 EST
Description of problem:
All publican output should be XHTML 1.0 strict compliant.
Nesting a screen in a para, which is legal DocBook, outputs invalid XHTML.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Nest a screen in a para
2. make html-single-en-US
3. xmllint --valid --noout tmp/en-US/html-single/index.html
index.html:226: element p: validity error : Element pre is not declared in p list of possible children
In XHTML p is only permitted to include inline items. In DocBook para is permitted to contain block level tags. Consider switching p output to <div class="para"> as div is allowed to contain block level elements.
Consider running xmllint over Users_Guide when building publican-docs package.
It would be neat to have a big book of DocBook examples that we could use to test all possible combinations of DocBook tags.
Changed para and simpara to output as div, modified CSS to display correctly.
validated XHTML output of Publican User Guide.
publican-0.39-0.fc9,publican-fedora-0.16-0.fc9 has been submitted as an update for Fedora 9.
publican-0.39-0.fc9, publican-fedora-0.16-0.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.