Opened 20 years ago

Closed 16 years ago

#855 closed enhancement (wontfix)

Use RelaxNG instead of DTDs for DocBook validation

Reported by: Matthew Burgess Owned by: lfs-book@…
Priority: lowest Milestone: Future
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description (last modified by Jeremy Huntwork)

Details on how to do this are in the thread referenced above. This is simply here as a reminder to actually do this, although it's dependent on the release of DocBook-5.0.

Change History (11)

comment:1 by Matthew Burgess, 20 years ago

Version: CVSSVN

comment:2 by Jeremy Huntwork, 19 years ago

Description: modified (diff)

Testing Trac configuration. Also, are we still looking into using RelaxNG?

comment:3 by Matthew Burgess, 19 years ago

Yes, DocBook-5.0, i.e. the RNG version, just hit beta 3.

comment:4 by Jeremy Huntwork, 19 years ago

Milestone: Future

comment:5 by Matthew Burgess, 18 years ago

Owner: changed from Matthew Burgess to lfs-book@…

comment:6 by manuel@…, 18 years ago

Type: defectenhancement

comment:7 by Matthew Burgess, 18 years ago

Although Docbook-5.0 hasn't been officially released yet, Candidate Release 1 (CR1) is out, and a version of the Docbook Stylesheets has also been released - announcement at http://sourceforge.net/forum/forum.php?forum_id=657704

comment:8 by Matthew Burgess, 18 years ago

In configuring a build environment for a DocBook-5.0 version of the book, we need to have a local copy of the files that define entities such as – and Æ (http://www.docbook.org/docs/howto/#faq-authoring-general-entities has details). These entity files are currently installed under /usr/share/xml/docbook/xml-dtd-4.5. Maybe we should install the Docbook-RNG schema and the required entity files under /usr/share/xml/docbook/xml-rng-5.0? (at the moment, I've been using a copy of docbook.rng in my local working copy). The following appears to work fine for the entity files.

xmlcatalog --noout --add "delegatePublic" \
  "ISO 8879:1986//ENTITIES Publishing//EN//XML" \
  "file:///etc/xml/docbook" \
  /etc/xml/catalog;

xmlcatalog --noout --add "delegateSystem" \
  "http://www.w3.org/2003/entities/iso8879/isopub.ent" \
  "file:///etc/xml/docbook" \
  /etc/xml/catalog;

xmlcatalog --noout --add "delegateURI" \
  "http://www.w3.org/2003/entities/iso8879/isopub.ent" \
  "file:///etc/xml/docbook" \
  /etc/xml/catalog;

xmlcatalog --noout --add "delegatePublic" \
  "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" \
  "file:///etc/xml/docbook" \
  /etc/xml/catalog;

xmlcatalog --noout --add "delegateSystem" \
  "http://www.w3.org/2003/entities/iso8879/isolat1.ent" \
  "file:///etc/xml/docbook" \
  /etc/xml/catalog;

xmlcatalog --noout --add "delegateURI" \
  "http://www.w3.org/2003/entities/iso8879/isolat1.ent" \
  "file:///etc/xml/docbook" \
  /etc/xml/catalog;

xmlcatalog --noout --add "public" \
    "ISO 8879:1986//ENTITIES Publishing//EN//XML" \
    "file:///usr/share/xml/docbook/xml-dtd-4.5/ent/isopub.ent" \
    /etc/xml/docbook;

xmlcatalog --noout --add "rewriteSystem" \
    "http://www.w3.org/2003/entities/iso8879/isopub.ent" \
    "file:///usr/share/xml/docbook/xml-dtd-4.5/ent/isopub.ent" \
    /etc/xml/docbook;

xmlcatalog --noout --add "rewriteURI" \
    "http://www.w3.org/2003/entities/iso8879/isopub.ent" \
    "file:///usr/share/xml/docbook/xml-dtd-4.5/ent/isopub.ent" \
    /etc/xml/docbook;

xmlcatalog --noout --add "public" \
    "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" \
    "file:///usr/share/xml/docbook/xml-dtd-4.5/ent/isolat1.ent" \
    /etc/xml/docbook;

xmlcatalog --noout --add "rewriteSystem" \
    "http://www.w3.org/2003/entities/iso8879/isolat1.ent" \
    "file:///usr/share/xml/docbook/xml-dtd-4.5/ent/isolat1.ent" \
    /etc/xml/docbook;

xmlcatalog --noout --add "rewriteURI" \
    "http://www.w3.org/2003/entities/iso8879/isolat1.ent" \
    "file:///usr/share/xml/docbook/xml-dtd-4.5/ent/isolat1.ent" \
    /etc/xml/docbook;

comment:9 by Matthew Burgess, 17 years ago

Docbook-5.0 has now been released - http://www.docbook.org/xml/5.0/. Still targetting at a future milestone as it'll probably take a while to get the XML processing toolchain to play nicely together.

comment:10 by matthew.2.burgess@…, 16 years ago

Just checking a normal user can add comments to open tickets (apologies all, for the noise).

comment:11 by gerard@…, 16 years ago

Resolution: wontfix
Status: newclosed

Closing this ticket. Sounds like the benefits aren't going to outweigh the effort in implementing it.

Note: See TracTickets for help on using tickets.