Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: use "xml:lang" instead of "lang" in DocBook 5

https://bugzilla.redhat.com/show_bug.cgi?id=696397

           Summary: use "xml:lang" instead of "lang" in DocBook 5
           Product: Publican
           Version: 2.5
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: unspecified
          Priority: unspecified
         Component: publican
        AssignedTo: jfe...@redhat.com
        ReportedBy: r.landm...@redhat.com
         QAContact: rland...@redhat.com
                CC: mmcal...@redhat.com, publican-list@redhat.com
    Classification: Other
      Story Points: ---


Created attachment 491924
  --> https://bugzilla.redhat.com/attachment.cgi?id=491924
Minimal DocBook 5 article

Description of problem:
Publican adds a "lang" attribute to nodes, but this attribute has been renamed
to "xml:lang" in DocBook 5. DocBook 5 documents therefore do not validate.

Version-Release number of selected component (if applicable):
2.5-1

How reproducible:
100%

Steps to Reproduce:
1. set dtdver: 5.0 in the publican.cfg file
2. try to build a really minimal DocBook 5 document, like the sample attached.

Actual results:
Validation failed: 
docbook5test.xml:12: validity error : No declaration for attribute lang of
element article

Looking in tmp/en-US/xml, the root node is now:
<article lang="en-US" version="5.0" xmlns="http://docbook.org/ns/docbook";>

Expected results:
Publican uses xml:lang instead of lang, so the root node is:
<article xml:lang="en-US" version="5.0" xmlns="http://docbook.org/ns/docbook";>

so the document should validate and build

Additional info:
Document builds fine with --novalid option

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
publican-list mailing list
publican-list@redhat.com
https://www.redhat.com/mailman/listinfo/publican-list
Wiki: https://fedorahosted.org/publican

Reply via email to