Bug 849030 - Merged translated Revision_History.xml file missing DOCTYPE declaration
Merged translated Revision_History.xml file missing DOCTYPE declaration
Status: CLOSED CURRENTRELEASE
Product: Publican
Classification: Community
Component: publican (Show other bugs)
3.0
Unspecified Unspecified
unspecified Severity unspecified
: 3.0
: ---
Assigned To: Jeff Fearn
Ruediger Landmann
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-17 02:35 EDT by Ruediger Landmann
Modified: 2012-10-30 23:11 EDT (History)
1 user (show)

See Also:
Fixed In Version: 3.0.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-30 23:11:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Ruediger Landmann 2012-08-17 02:35:49 EDT
Description of problem:
When building a translated book, the merged Revision_History.xml file is missing its DOCTYPE declaration. If the file contains DocBook entities (for example,  ) the book will not build

Version-Release number of selected component (if applicable):
publican-3.0-0.fc17.t219.noarch


How reproducible:
100%

Steps to Reproduce:
1. run publican build for a translated book
2. inspect the head of tmp/<LANG>/xml_tmp/Revision_History.xml
  
Actual results:
No DOCTYPE declaration

Expected results:
DOCTYPE declaration

Additional info:
1. Add &nbsp; somewhere in a <member> in the en-US/Revision_History.xml file
2. Run publican build

Build fails with something like:

undefined entity at line 97, column 20, byte 2613:
                                 <revdescription>
                                        <simplelist>
                                                <member>System&nbsp;z 特有の RAID スクリーンショットを追加 — BZ#639193</member>
===================^
                                                 <member>anaconda はパーティションの拡大ではなく縮小のみ行う旨を記載 — BZ#642881</member>
                                                 <member>System&nbsp;z が <filename>/boot</filename> に ext4 は使用できない旨を記載 — BZ#642881</member>
 at /usr/lib64/perl5/vendor_perl/XML/Parser.pm line 187
Comment 1 Ruediger Landmann 2012-08-17 02:52:58 EDT
Fixed in build publican-3.0-0.fc17.t222.noarch

Note You need to log in before you can comment on or make changes to this bug.