From owner-freebsd-ports Mon Jul 22 11:36:47 2002 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 03C0737B400 for ; Mon, 22 Jul 2002 11:36:43 -0700 (PDT) Received: from smtp.web.de (smtp03.web.de [217.72.192.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EFF643E67 for ; Mon, 22 Jul 2002 11:36:42 -0700 (PDT) (envelope-from henrik.motakef@web.de) Received: from dsl-213-023-045-080.arcor-ip.net ([213.23.45.80] helo=pokey.henrik-motakef.de.web.de) by smtp.web.de with esmtp (WEB.DE(Exim) 4.70 #5) id 17Wi2y-0000RM-00; Mon, 22 Jul 2002 20:36:40 +0200 To: Kimura Fuyuki Cc: freebsd-ports@FreeBSD.ORG Subject: Re: Whats up with share/xml/catalog? References: <877kjo95bj.fsf@pokey.henrik-motakef.de> <86wuro2vim.wl@hadaly.dyndns.org> In-Reply-To: <86wuro2vim.wl@hadaly.dyndns.org> From: Henrik Motakef Date: 22 Jul 2002 20:45:06 +0200 Message-ID: <87heirzjnx.fsf@pokey.henrik-motakef.de> Lines: 57 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Kimura Fuyuki writes: > > First of all, this is a bad idea IMHO, scince it breaks PSGML and > > nsgmls for the XML DTDs without a good reason - it would be better to > > at least have both the XML version and old-style catalogs avaiblable. > > The reason is that XML catalog is better for the XML DTDs. I disagree, both have their specific advantages. For example, to maintain semi-automatically an SGML catalog, you don't need any tools besides echo and grep, basically. But that's not the point. From a ports-centric point of view, I think we should try to make as much software work out of the box as possible. That would probably mean making both kinds of catalog files available. > I hope PSGML implements the XML catalog parser. ;) So do I, but right now it doesn't. Neither does NSGMLS, as far as I know. Both are pretty usefull for working with XML documents. > Just a thought for coexistence: > > share/xml/catalog.xml (XML catalog) > share/xml/catalog (SGML catalog) I think that would be the best solution, so that software expecting either format works. I remeber a thread about libxml expecting an XML catalog at share/xml/catalog by default, so if one cannot easily convince it to look at catalog.xml instead, it might be better to choose different names. Also, I'd say for consitency we should put both kinds of catalogs in share/xsl and even share/sgml, too. > > On a more practical note, given that I didn't notice any changes for > > mkcatalog, how am I supposed to add DTDs that go in share/xml/* to the > > catalog? Is there a replacement for mkcatalog, or are there new > > options I didn't recognize? > > I don't know any alternatives to mkcatalog. > > See textproc/scrollkeeper/pkg-install Hm, this implies a BUILD_DEPENDS on libxml. If I recall correctly, in the previous thread I mentioned above, someone talked about implementing a stand-alone tool to update XML catalogs, that would be quite a nice thing, IMHO. Isn't mkcatalog under control of the ports team anyway? Could we perhaps modify it to include the neccessary call to libxmls xmlcatalog, later maybe the new tool, so a) nothing changes for ports that use mkcatalog now, b) it would be easier to update the catalogs for new ports, and c) we could switch between xmlcatalog and the new tool without breaking stuff when it's ready? Regards Henrik To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message