Bug 849030

Summary: Merged translated Revision_History.xml file missing DOCTYPE declaration
Product: [Community] Publican Reporter: Ruediger Landmann <r.landmann>
Component: publicanAssignee: Jeff Fearn <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.0CC: rlandman
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
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:
Cloudforms Team: ---

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, &nbsp;) the book will not build

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

How reproducible:

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:
                                                <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