Subject: Re: What's wrong with my docbook ?
To: None <netbsd-docs@netbsd.org>
From: Rui Paulo <rpaulo@netbsd-pt.org>
List: netbsd-docs
Date: 05/31/2005 15:41:53
On 2005-05-31, Hiroki Sato <hrs@NetBSD.org> wrote:
> ----Security_Multipart(Wed_Jun__1_00_25_12_2005_693)--
> Content-Type: Text/Plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Rui Paulo <rpaulo@netbsd-pt.org> wrote
>   in <slrnd9ormi.2rr.rpaulo@proton.internal.fnop.net>:
>
> rp> No, I don't think this is related to any environmental variables. 
> rp> The way I see it, oasis-open.org changed the location of the file, but the
> rp> docbook project people didn't changed they're own files (take a look at
> rp> http://docbook.sourceforge.net/release/website/current/schema/dtd/website-custom.dtd).
> rp> 
> rp> Maybe this isn't NetBSD specific after all..
>
>  Which version of docbook-simple do you use?  I think this error
>  occurs when you upgrade docbook-website but you use some old
>  docbook-simple or do not install it.

Well, I didn't had docbook-simple and I installed it, but the problem 
still presists.
Anyway, I can make it work by cvs up -D20050501 two files:
	share/xml/website-netbsd.dtd
	share/mk/web.site.mk

Here are the diffs against current versions:

Index: website-netbsd.dtd
===================================================================
RCS file: /cvsroot/htdocs/share/xml/website-netbsd.dtd,v
retrieving revision 1.7
retrieving revision 1.4
diff -u -r1.7 -r1.4
--- website-netbsd.dtd	7 May 2005 15:37:29 -0000	1.7
+++ website-netbsd.dtd	29 Apr 2005 07:39:41 -0000	1.4
@@ -1,4 +1,4 @@
-<!-- $NetBSD: website-netbsd.dtd,v 1.7 2005/05/07 15:37:29 hrs Exp $ -->
+<!-- $NetBSD: website-netbsd.dtd,v 1.4 2005/04/29 07:39:41 hrs Exp $ -->
 
 <!ENTITY % iso-html.ent
 	PUBLIC "-//NetBSD//ENTITIES NetBSD ISO 8879-Based HTML Entities//EN"
@@ -20,11 +20,7 @@
 	"http://www.NetBSD.org/XML/htdocs/share/xml/misc.ent">
 %misc.ent;
 
-<!ENTITY % docbook
-	PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
-	"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
-
 <!ENTITY % website-orig
 	PUBLIC "-//Norman Walsh//DTD Website V2.4.0//EN"
-	"http://docbook.sourceforge.net/release/website/current/schema/dtd/website-custom.dtd">
+	"http://docbook.sourceforge.net/release/website/2.4.1/schema/dtd/website-custom.dtd">
 %website-orig;
Index: web.site.mk
===================================================================
RCS file: /cvsroot/htdocs/share/mk/web.site.mk,v
retrieving revision 1.38
retrieving revision 1.34
diff -u -r1.38 -r1.34
--- web.site.mk	8 May 2005 20:36:26 -0000	1.38
+++ web.site.mk	29 Apr 2005 00:00:27 -0000	1.34
@@ -1,5 +1,5 @@
 # bsd.web.mk
-# $NetBSD: web.site.mk,v 1.38 2005/05/08 20:36:26 heinz Exp $
+# $NetBSD: web.site.mk,v 1.34 2005/04/29 00:00:27 heinz Exp $
 # FreeBSD: www/share/mk/web.site.mk,v 1.43 2002/08/07 03:17:10 trhodes Exp
 
 #
@@ -163,27 +163,24 @@
 XSLTPROCOPTS.${_ID}+=	--stringparam autolayout-file ${AUTOLAYOUTFILE}
 .elif ${XSLT.${_ID}} == xsl
 XSLT.${_ID}=	${_ID}.xsl
-DEPENDS.${_ID}+=	${XSLT.${_ID}}
 .elif ${XSLT.${_ID}:Mhttp\://*} != ""
 DEPENDS.${_ID}+=	${XSLT.${_ID}}
-.else
-DEPENDS.${_ID}+=	${XSLT.${_ID}}
 .endif
 
 DEPENDS.${_ID}+=	${WEB_PREFIX}/share/xsl/global.xsl
 DEPENDS.${_ID}+=	${WEB_PREFIX}/share/xsl/portpage.xsl
 
 .for S in ${SRCS.${_ID}}
-DEPENDS.${_ID}+=	${S}
+DEPEDNS.${_ID}+=	${S}
 .endfor
 ${TARGET.${_ID}}: ${XML_INCLUDES} ${XML.${_ID}} ${DEPENDS.${_ID}}
 	@${ECHO} "[xsltproc] ${XML.${_ID}} -> ${.TARGET}"
 .if defined(DEBUG)
-	( ulimit -d 800000 && ${XSLTPROC} ${XSLTPROCOPTS.${_ID}} \
+	( ulimit -d 500000 && ${XSLTPROC} ${XSLTPROCOPTS.${_ID}} \
 		-o ${.TARGET} ${PARAMS.${_ID}} \
 		${XSLT.${_ID}} ${XML.${_ID}} )
 .else
-	@( ulimit -d 800000 && ${XSLTPROC} ${XSLTPROCOPTS.${_ID}} \
+	@( ulimit -d 500000 && ${XSLTPROC} ${XSLTPROCOPTS.${_ID}} \
 		-o ${.TARGET} ${PARAMS.${_ID}} \
 		${XSLT.${_ID}} ${XML.${_ID}} )
 .endif
@@ -249,7 +246,7 @@
 
 .xml.html: ${XMLDEPS}
 	@${ECHO} "[xsltproc] ${.IMPSRC} -> ${.TARGET}"
-	@(ulimit -d 800000 && ${XSLTPROC} ${XSLTPROCOPTS} --stringparam autolayout-file ${AUTOLAYOUTFILE} -o ${.TARGET} ${XSLFILE} ${.IMPSRC})
+	@(ulimit -d 500000 && ${XSLTPROC} ${XSLTPROCOPTS} --stringparam autolayout-file ${AUTOLAYOUTFILE} -o ${.TARGET} ${XSLFILE} ${.IMPSRC})
 
 .html.txt:
 	@${ECHO} "[html2txt] ${.IMPSRC} -> ${.TARGET}"
@@ -294,7 +291,7 @@
 .if defined(AUTOLAYOUTDIR)
 	@(cd gallery && ${MAKE} sites.xml)
 	@${ECHO} "[xsltproc] layout.xml -> autolayout.xml"
-	@(ulimit -d 800000 && ${XSLTPROC} --nonet -o ${.TARGET} \
+	@(ulimit -d 500000 && ${XSLTPROC} -o ${.TARGET} \
 		${LOCALBASE}/share/xml/website/xsl/autolayout.xsl \
 		${WEB_PREFIX}/layout.xml)
 .else


But it does access docbook.sourceforge.net in order to render the files.
(because --nonet was added after 2005-05-01)

Note that 
http://docbook.sourceforge.net/release/website/2.4.1/schema/dtd/website-custom.dtd
includes a valid file from oasis-open.org (see the sdocbook ENTITY), but
http://docbook.sourceforge.net/release/website/current/schema/dtd/website-custom.dtd
does not. That's why I said this could be something not related to NetBSD
itself. Should we contact docbook mailing lists ?

Thanks.

-- 
Rui Paulo <rpaulo@netbsd-pt.org>