* Use xmllint instead of nsgmls to validate the manual.

This commit is contained in:
Eelco Dolstra 2003-08-14 18:17:02 +00:00
parent 9ee3b7a37a
commit a24cb19361
2 changed files with 5 additions and 4 deletions

View file

@ -1,13 +1,12 @@
DOCBOOK_DTD = /nix/current/xml/dtd/docbook DOCBOOK_DTD = /nix/current/xml/dtd/docbook
DOCBOOK_XSL = /nix/current/xml/xsl/docbook DOCBOOK_XSL = /nix/current/xml/xsl/docbook
XML = /usr/share/doc/packages/sp/html-xml/xml.soc
SOURCES = book.xml introduction.xml installation.xml nix-reference.xml \ SOURCES = book.xml introduction.xml installation.xml nix-reference.xml \
troubleshooting.xml bugs.xml troubleshooting.xml bugs.xml
book.is-valid: $(SOURCES) book.is-valid: $(SOURCES)
SP_CHARSET_FIXED=YES SP_ENCODING=XML \ SGML_CATALOG_FILES=$(DOCBOOK_DTD)/docbook.cat \
nsgmls -wxml -c $(XML) -c $(DOCBOOK_DTD)/docbook.cat -ges $< xmllint --catalogs --noout --valid book.xml
touch $@ touch $@
man1_MANS = nix.1 fix.1 man1_MANS = nix.1 fix.1

View file

@ -1,5 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE book SYSTEM "/nix/current/xml/dtd/docbook/docbookx.dtd" <!DOCTYPE book
PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
[ [
<!ENTITY introduction SYSTEM "introduction.xml"> <!ENTITY introduction SYSTEM "introduction.xml">
<!ENTITY installation SYSTEM "installation.xml"> <!ENTITY installation SYSTEM "installation.xml">