#855: Use RelaxNG instead of DTDs for DocBook validation
------------------------------------------+---------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [email protected]
     Type:  enhancement                   |       Status:  new                  
        
 Priority:  lowest                        |    Milestone:  Future               
        
Component:  Book                          |      Version:  SVN                  
        
 Severity:  normal                        |   Resolution:                       
        
 Keywords:                                |  
------------------------------------------+---------------------------------
Comment (by [EMAIL PROTECTED]):

 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;
 }}}

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/855#comment:8>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to