# HG changeset patch # User Ruslan Ermilov # Date 1317643675 0 # Node ID 8213f3f1c93d2de004fdab8490cead5b0f1e4c09 # Parent 59969aeeeebc4d0b87a87edccce416250a3da9f3 Updated DTD for modules and made modules documentation to be validated with xmllint. diff -r 59969aeeeebc -r 8213f3f1c93d GNUmakefile --- a/GNUmakefile Mon Oct 03 12:02:47 2011 +0000 +++ b/GNUmakefile Mon Oct 03 12:07:55 2011 +0000 @@ -19,6 +19,9 @@ if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) endef +define XMLLINT + xmllint --noout --valid $1 +endef define XSLT xsltproc -o $3 \ @@ -145,6 +148,11 @@ .SECONDARY: +$(OUT)/%_module.html: xml/%_module.xml \ + $(ARTICLE_DEPS) + $(call XMLLINT, $<) + $(call XSLT, xslt/article.xslt, $<, $@) + $(OUT)/%.html: xml/%.xml \ $(ARTICLE_DEPS) $(call XSLT, xslt/article.xslt, $<, $@) diff -r 59969aeeeebc -r 8213f3f1c93d dtd/module.dtd --- a/dtd/module.dtd Mon Oct 03 12:02:47 2011 +0000 +++ b/dtd/module.dtd Mon Oct 03 12:07:55 2011 +0000 @@ -1,7 +1,86 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + - - %content; + + + + + + + + + + + + + + + + + + + + + + +