[publican-list] [Bug 696397] New: use "xml:lang" instead of "lang" in DocBook 5

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 14 00:54:38 UTC 2011


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: jfearn at redhat.com
        ReportedBy: r.landmann at redhat.com
         QAContact: rlandman at redhat.com
                CC: mmcallis at redhat.com, publican-list at 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.




More information about the publican-list mailing list