tuning html docs
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 27 Jun 2005 18:08:21 +0000 (18:08 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 27 Jun 2005 18:08:21 +0000 (18:08 +0000)
org.glite.lb.ws-interface/Makefile
org.glite.lb.ws-interface/src/doc.xml [new file with mode: 0644]

index d498bd7..c53cae7 100644 (file)
@@ -16,8 +16,10 @@ SUFFIXES = .T
 
 VPATH=${top_srcdir}/src
 AT3=perl -I${top_srcdir}/project ${top_srcdir}/project/at3
-XSLTPROC=xsltproc
+XSLTPROC:=xsltproc
 TIDY=tidy
+XMLLINT:=xmllint
+docbookxls:=http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
 
 STAGETO=interface
 
@@ -72,5 +74,7 @@ ${WSDL}: %.wsdl: %.xml puke-wsdl.xsl
        -${TIDY} -wrap 10000 -xml -m -i -q $@
        -perl -i -n -e 'if (/^\s*$$/) { $$empty .= "\n"; } elsif (/^\s*<(xsd:)?(enumeration|element|input|output|fault)/) { print $$_; $$empty = "";} else { print "$$empty$$_"; $$empty=""; }; ' $@
 
-LB-ug.xml: LB.xml puke-ug.xsl
-       ${XSLTPROC} ../src/puke-ug.xsl $< >$@
+LB.html: doc.xml LBTypes.xml LB.xml puke-ug.xsl
+       ${XSLTPROC} --novalid ../src/puke-ug.xsl $< >doc-html.xml
+       ${XMLLINT} --valid --noout doc-html.xml
+       ${XSLTPROC} --stringparam  chapter.autolabel 0 ${docbookxls} doc-html.xml >$@
diff --git a/org.glite.lb.ws-interface/src/doc.xml b/org.glite.lb.ws-interface/src/doc.xml
new file mode 100644 (file)
index 0000000..fd65f12
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+           "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<book>
+</book>