From owner-freebsd-ports@FreeBSD.ORG Tue Jun 17 02:19:57 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E521B37B404 for ; Tue, 17 Jun 2003 02:19:57 -0700 (PDT) Received: from outpost.globcon.net (outpost.globcon.net [62.141.88.161]) by mx1.FreeBSD.org (Postfix) with SMTP id CE93943FBF for ; Tue, 17 Jun 2003 02:19:53 -0700 (PDT) (envelope-from sergei@kolobov.com) Received: (qmail 8207 invoked from network); 17 Jun 2003 09:19:53 -0000 Received: from agdcgw01.akingump.com (HELO kolobov.com) (12.40.174.2) by outpost.globcon.net with SMTP; 17 Jun 2003 09:19:53 -0000 Received: (qmail 4337 invoked by uid 911); 17 Jun 2003 09:19:14 -0000 Date: Tue, 17 Jun 2003 13:19:14 +0400 From: Sergei Kolobov To: Hiroki Sato Message-ID: <20030617091914.GA728@chetwood.ru> Mail-Followup-To: Hiroki Sato , freebsd-ports@freebsd.org, freebsd-doc@freebsd.org References: <20030616212143.GA717@chetwood.ru> <20030616223625.GB71605@rot13.obsecurity.org> <20030617043042.GA709@chetwood.ru> <20030617.142026.104095785.hrs@vlsi.ee.noda.tus.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030617.142026.104095785.hrs@vlsi.ee.noda.tus.ac.jp> User-Agent: Mutt/1.5.3i cc: freebsd-doc@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: textproc/xmlto: missing XML catalogs? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 09:19:58 -0000 On 2003-06-17 at 14:20 +0900, Hiroki Sato wrote: > DTDs in the ports collection install SGML and/or XML catalog. You > can find them in ${PREFIX}/share/sgml or ${PREFIX}/share/xml. > For example, docbook-xml has ${PREFIX}/share/xml/docbook/4.2/catalog.xml > in XML, ${PREFIX}/share/xml/docbook/4.2/docbook.cat in SGML. > Set $SGML_CATALOG_FILES and/or $XML_CATALOG_FILES properly, and > use --nonet and --catalogs in the case of xsltproc. Thanks for the explanation - now I understand it a little better. Still, after setting up variables like this: XML_CATALOG_FILES=${LOCALBASE}/share/xml/docbook/4.2/catalog.xml SGML_CATALOG_FILES=${LOCALBASE}/share/xml/docbook/4.2/docbook.cat Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl [...] Of course, I have manpages/docbook.xsl in ${LOCALBASE}/share/xsl/docbook (installed by docbook-xsl port), but how do I feed it to xmlto so it will not try to fetch via HTTP? Should I rely on a user building the port to set up XML_CATALOG_FILES and SGML_CATALOG_FILES properly in advance or can I create catalog at the port's build time with xmlcatalog? > Besides, you use xmlcatmgr to create catalog files (see ports/52640). > All ports does not care about catalog files in a consistent way, > so I am working on this problem. I did not have chance to look at your PR yet, but it sounds promising. Thanks. Sergei