Bug 548629 - Publican creates a default book_name.xml file with an uppercase 'B' for 'book' in the Doctype declaration
Summary: Publican creates a default book_name.xml file with an uppercase 'B' for 'book...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 1.6
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-18 00:12 UTC by Richard Wilding
Modified: 2010-11-24 04:18 UTC (History)
5 users (show)

Fixed In Version: 1.4-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-01 01:14:18 UTC


Attachments (Terms of Use)

Description Richard Wilding 2009-12-18 00:12:53 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc11 Firefox/3.5.5

The 'publican create book_name' command creates a book_name.xml file with the following doctype declaration:

<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []>

The uppercase 'B' for the doctype 'book' does not appear to be DocBook spec and causes an error when validating with JDocBook.

Reproducible: Always

Steps to Reproduce:
publican create book_name
Actual Results:  
<!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []>

Expected Results:  
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []>

Comment 1 Jeff Fearn 🐞 2009-12-18 00:52:58 UTC
The tag in the DTD is incorrect in all files generated when creating a book.

Modified code to set correct tag.

Modified code to run clean_ids over newly created books.

Workaround is to manually run clean_ids after creating a book, this will set the tag in the DTD to the correct value in all XML files.

Comment 2 Fedora Update System 2010-01-29 02:04:52 UTC
publican-1.4-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/publican-1.4-1.fc12

Comment 3 Fedora Update System 2010-01-29 02:06:11 UTC
publican-1.4-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/publican-1.4-1.fc11

Comment 4 Fedora Update System 2010-02-01 01:12:57 UTC
publican-1.4-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2010-02-01 01:21:21 UTC
publican-1.4-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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