Bug 832597 - Docbook 5 xml ns ignored
Summary: Docbook 5 xml ns ignored
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: publican
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ruediger Landmann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 839113
TreeView+ depends on / blocked
 
Reported: 2012-06-15 21:32 UTC by Joshua Wulf
Modified: 2014-10-19 23:00 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-07-11 04:29:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2012-06-15 21:32:53 UTC
In Publican 3 the Docbook 5 namespace is hardcoded in Builder.pm, so it ignores any namespace declaration in the book source.

Can we get support for customised namespaces?

Comment 1 Joshua Wulf 2012-06-15 21:44:45 UTC
Specifically I wanted the ability to use this relax ng customisation that Norm has produced, but isn't, as yet, including in the Docbook 5 base: https://gist.github.com/2768701

Comment 2 Joshua Wulf 2012-07-11 04:25:50 UTC
At the moment Publican 3's Builder.pm hardcodes the schema to be used for validation for Docbook 5:


 if ( $dtdver =~ m/^5/ ) {
        $dtd_type = qq|-//OASIS//DTD DocBook XML $dtdver//EN|;
        $dtd_path = qq|http://docbook.org/xml/$dtdver/rng/docbook.rng|;


I have a customization layer that Norm wrote for me that I'd like to be able to use (https://gist.github.com/2768701).

Can we make it possible to override the default validation schema from the xml?

Comment 3 Ruediger Landmann 2012-07-11 04:29:32 UTC
Hi Josh -- I'm not going to fork Publican over this one either; please make your request upstream.


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