Opened 12 years ago
Closed 5 years ago
#3717 closed enhancement (fixed)
Add DocBook 5.{0,1}
Reported by: | Randy McMurchy | Owned by: | DJ Lucas |
---|---|---|---|
Priority: | low | Milestone: | 9.1 |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
Version increment to 5.0 now uses the RELAX NG Schema.
Change History (16)
comment:1 by , 12 years ago
Priority: | normal → low |
---|---|
Summary: | DocBook 5.0 → Add DocBook 5.0 |
comment:2 by , 12 years ago
Type: | enhancement → task |
---|
comment:3 by , 12 years ago
But it does not matter if it is compatible. You can have both on the system, right?
Some users may want to use it, why should we not put it in the book with a note that says the package is not compatible for BLFS use, but is here if you want it?
We can keep low priority, but I still think it should eventually be added to the book. Just my thoughts.
follow-up: 5 comment:4 by , 12 years ago
Sure, no problem. I just want to say that it is not an "upgrade" but an "addition".
Same as for OpenJPEG 2.0.
comment:5 by , 12 years ago
Replying to Krejzi:
Sure, no problem. I just want to say that it is not an "upgrade" but an "addition".
Same as for OpenJPEG 2.0.
and Bluez-5.x
comment:6 by , 11 years ago
Milestone: | current → future |
---|
comment:7 by , 10 years ago
Have looked at some documentation about DocBook 5.0:
Instead of a DTD, DocBook 5.0 documents are supposed to conform to the Relax NG schema with embedded schematron. So the question is what the validators and parsers are for those standards. It seems that libxml2 has that. There are also SAX processors. There is also the RNV validator, which uses expat for its CLI.
DocBook in itself is not hard to add (a bunch of files in the /usr/share/xml arborescence, and catalog(s) in /etc/xml). It is low maintenance (it has not changed since 2008, I think). The question is about the associated tools: stylesheets for conversion to other formats, conversion from DocBook 4.5 to 5.0, and so on.
And last but not least, is there a plan to port {,B,C}LFS to DocBook 5.0? That can be done for a large part automatically, but editors would have to learn a few new tricks for modyfying pages.
comment:8 by , 10 years ago
There are really a couple of issues here.
First, how is it installed and can it be installed side-by-side with DB 4.x? If it can be installed with DB 4.x, then it is a candidate for BLFS.
The second issue is whether we should change the LFS/BLFS books to the new format. My reaction is no. I don't know of any advantages and what we have now works pretty well. There would be a lot of disadvantages, at a minimum just the learning curve. Rewriting the stylesheets we are currently using would be prohibitive IMO.
comment:10 by , 7 years ago
Owner: | changed from | to
---|
comment:11 by , 6 years ago
Owner: | changed from | to
---|
comment:12 by , 5 years ago
Yes, they can be installed side by side. As to the book, not necessary _yet_ (though I have some ideas), but I've went down that path a little bit (and restarted several times). It would ultimately give us a bit more freedom concerning the markup, which _might_ be especially important to jhalfs (if we take the time to develop clear goals, I'm thinking of PM here, but there are other benefits as well - reciprocal dependency resolution, multiple builds (again PM here too), conditional xi/entities, etc.), but it would take a month or better to solicit ideas from the community to design it correctly - this also implies a clean source (delete the stylesheets directory completely). At some point, I'll see about at least putting the package into the book so that people can experiment if they wish.
comment:13 by , 5 years ago
Here is what I currently have documented for docbook-5.0:
https://docbook.org/xml/5.0/docbook-5.0.zip #### Install the files install -vdm755 /usr/share/xml/docbook/schema/{dtd,rng,sch,xsd}/5.0 install -vm644 dtd/* /usr/share/xml/docbook/schema/dtd/5.0 install -vm644 rng/* /usr/share/xml/docbook/schema/rng/5.0 install -vm644 sch/* /usr/share/xml/docbook/schema/sch/5.0 install -vm644 xsd/* /usr/share/xml/docbook/schema/xsd/5.0 xmlcatalog --create --noout /etc/xml/docbook-5.0 #### If not installing db-5.1 install -m755 tools/db4-entities.pl /usr/bin install -vdm755 /usr/share/xml/docbook/stylesheet/docbook5 install -m644 tools/db4-upgrade.xsl \ /usr/share/xml/docbook/stylesheet/docbook5 #### Build xml catalog if [ ! -e /etc/xml/docbook-5.0 ]; then xmlcatalog --noout --create /etc/xml/docbook-5.0 fi xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML 5.0//EN" \ "file:///usr/share/xml/docbook/schema/dtd/5.0/docbook.dtd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "system" \ "http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd" \ "file:///usr/share/xml/docbook/schema/dtd/5.0/docbook.dtd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "system" \ "http://docbook.org/xml/5.0/dtd/docbook.dtd" \ "file:///usr/share/xml/docbook/schema/dtd/5.0/docbook.dtd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rng" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbook.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rng" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbookxi.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rnc/docbook.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rnc" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbook.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rnc" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rnc/docbookxi.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rnc" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbookxi.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rnc" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/docbook.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/docbookxi.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/docbookxi.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/docbookxi.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/xi.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/xi.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/xi.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/xi.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/xlink.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/xlink.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/xlink.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/xml.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/xml.xsd" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/xml.xsd" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch" \ "file:///usr/share/xml/docbook/schema/sch/5.0/docbook.sch" \ /etc/xml/docbook-5.0 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/sch/docbook.sch" \ "file:///usr/share/xml/docbook/schema/sch/5.0/docbook.sch" \ /etc/xml/docbook-5.0 #### Build catalog for each schema xmlcatalog --noout --create /usr/share/xml/docbook/schema/dtd/5.0/catalog.xml xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML 5.0//EN" \ "docbook.dtd" /usr/share/xml/docbook/schema/dtd/5.0/catalog.xml xmlcatalog --noout --add "system" \ "http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd" \ "docbook.dtd" /usr/share/xml/docbook/schema/dtd/5.0/catalog.xml xmlcatalog --noout --create /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbook.rng" \ "docbook.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" \ "docbook.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbookxi.rng" \ "docbookxi.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" \ "docbookxi.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbook.rnc" \ "docbook.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rnc" \ "docbook.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/rng/docbookxi.rnc" \ "docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc" \ "docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml xmlcatalog --noout --create /usr/share/xml/docbook/schema/sch/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/sch/docbook.sch" \ "docbook.sch" /usr/share/xml/docbook/schema/sch/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch" \ "docbook.sch" /usr/share/xml/docbook/schema/sch/5.0/catalog.xml xmlcatalog --noout --create /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/docbook.xsd" \ "docbook.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd" \ "docbook.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/docbookxi.xsd" \ "docbookxi.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd" \ "docbookxi.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/xlink.xsd" \ "xlink.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd" \ "xlink.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.0/xsd/xml.xsd" \ "xml.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd" \ "xml.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml #### Append to the system XML catalog if [ ! -e /etc/xml/catalog ]; then xmlcatalog --noout --create /etc/xml/catalog fi xmlcatalog --noout --add "delegatePublic" \ "-//OASIS//DTD DocBook XML 5.0//EN" \ "file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateSystem" \ "http://docbook.org/xml/5.0/dtd/" \ "file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.0/dtd/" \ "file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.0/rng/" \ "file:///usr/share/xml/docbook/schema/rng/5.0/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.0/sch/" \ "file:///usr/share/xml/docbook/schema/sch/5.0/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.0/xsd/" \ "file:///usr/share/xml/docbook/schema/xsd/5.0/catalog.xml" \ /etc/xml/catalog
And for docbook-5.1:
https://docbook.org/xml/5.1/docbook-v5.1-os.zip #### Install the files #### Note about no top level direcotry in zip file install -vdm755 /usr/share/xml/docbook/schema/{rng,sch}/5.1 install -m644 schemas/rng/* /usr/share/xml/docbook/schema/rng/5.1 install -m644 schemas/sch/* /usr/share/xml/docbook/schema/sch/5.1 install -m755 tools/db4-entities.pl /usr/bin install -vdm755 /usr/share/xml/docbook/stylesheet/docbook5 install -m644 tools/db4-upgrade.xsl \ /usr/share/xml/docbook/stylesheet/docbook5 #### Build xml catalog if [ ! -e /etc/xml/docbook-5.1 ]; then xmlcatalog --noout --create /etc/xml/docbook-5.1 fi xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/rng/docbook.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rng" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/rng/docbook.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rng" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/rng/docbookxi.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rng" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/rng/docbookxi.rng" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rng" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/rnc/docbook.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rnc" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/rng/docbook.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rnc" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/rnc/docbookxi.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rnc" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/rng/docbookxi.rnc" \ "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rnc" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/sch/docbook.sch" \ "file:///usr/share/xml/docbook/schema/sch/5.1/docbook.sch" \ /etc/xml/docbook-5.1 xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/sch/docbook.sch" \ "file:///usr/share/xml/docbook/schema/sch/5.1/docbook.sch" \ /etc/xml/docbook-5.1 #### Build catalog for each schema xmlcatalog --noout --create /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/schemas/rng/docbook.schemas/rng" \ "docbook.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbook.schemas/rng" \ "docbook.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/schemas/rng/docbookxi.schemas/rng" \ "docbookxi.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbookxi.schemas/rng" \ "docbookxi.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/schemas/rng/docbook.rnc" \ "docbook.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbook.rnc" \ "docbook.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/schemas/rng/docbookxi.rnc" \ "docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbookxi.rnc" \ "docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml xmlcatalog --noout --create /usr/share/xml/docbook/schema/sch/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://docbook.org/xml/5.1/schemas/sch/docbook.schemas/sch" \ "docbook.schemas/sch" /usr/share/xml/docbook/schema/sch/5.1/catalog.xml xmlcatalog --noout --add "uri" \ "http://www.oasis-open.org/docbook/xml/5.1/schemas/sch/docbook.schemas/sch" \ "docbook.schemas/sch" /usr/share/xml/docbook/schema/sch/5.1/catalog.xml #### Append to the system XML catalog if [ ! -e /etc/xml/catalog ]; then xmlcatalog --noout --create /etc/xml/catalog fi xmlcatalog --noout --add "delegatePublic" \ "-//OASIS//DTD DocBook XML 5.1//EN" \ "file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateSystem" \ "http://docbook.org/xml/5.1/dtd/" \ "file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.1/dtd/" \ "file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.1/rng/" \ "file:///usr/share/xml/docbook/schema/rng/5.1/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.1/sch/" \ "file:///usr/share/xml/docbook/schema/sch/5.1/catalog.xml" \ /etc/xml/catalog xmlcatalog --noout --add "delegateURI" \ "http://docbook.org/xml/5.1/xsd/" \ "file:///usr/share/xml/docbook/schema/xsd/5.1/catalog.xml" \ /etc/xml/catalog
comment:14 by , 5 years ago
Milestone: | x-future → 9.1 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
So, as you can see above, there is no 5.1 DTD, unlike previous minor versions (there are some minor corner cases where this isn't true for 4.x as well), you cannot simply do a rewrite for the older version. Install both on one page or separate?
comment:15 by , 5 years ago
Summary: | Add DocBook 5.0 → Add DocBook 5.{0,1} |
---|
comment:16 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Type: | task → enhancement |
Fixed in r22142.
It appears that it is not compatible with 4.x series. We'll postpone it when something really needs it.
From memory, there was already a ticket for this, but Bruce closed it with won't fix for the very same reason.