From owner-freebsd-questions Wed May 8 14: 0:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx.aminor.no (greebo.aminor.no [217.13.29.107]) by hub.freebsd.org (Postfix) with ESMTP id 1BDBC37CA0F for ; Wed, 8 May 2002 13:57:12 -0700 (PDT) Received: from [192.168.0.2] (holly.eivind [192.168.0.2]) by mx.aminor.no (8.12.3/8.12.3) with ESMTP id g48Kv4S1064610 for ; Wed, 8 May 2002 22:57:04 +0200 (CEST) (envelope-from eivind@aminor.no) Date: Wed, 08 May 2002 22:57:07 +0200 From: Eivind Olsen To: freebsd-questions@FreeBSD.ORG Subject: I'm having DocBook-problems - anyone who can provide me with a clue? Message-ID: <10221738.1020898627@[192.168.0.2]> X-Mailer: Mulberry/2.2.1 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello. I'm having DocBook-problems - anyone who can provide me with a clue? I've installed the textproc/docproj port on FreeBSD 4.5-STABLE (of 1 week ago). Now, I'm trying to learn how to write DocBook SGML, but I'm having some problems with validating documents. I'm not sure if it's a problem with me or with the ports or both (most likely it's a problem with me. ;) For example, I have the following "docbooktest.sgml"-file:
Article's Title EmilioFirstname Lastname ... Title of Section ... ...
When I try to validate it with "nsgmls -s", I get: eivind@trisha:~/dokumenter > nsgmls -s docbooktest.sgml nsgmls:docbooktest.sgml:1:57:W: cannot generate system identifier for public text "-//OASIS//DTD DocBook V3.1//EN" nsgmls:docbooktest.sgml:1:57:E: reference to entity "ARTICLE" for which no system identifier could be generated nsgmls:docbooktest.sgml:1:0: entity was defined here nsgmls:docbooktest.sgml:1:57:E: DTD did not contain element declaration for document type name nsgmls:docbooktest.sgml:2:8:E: element "ARTICLE" undefined nsgmls:docbooktest.sgml:3:10:E: element "ARTHEADER" undefined nsgmls:docbooktest.sgml:4:8:E: element "TITLE" undefined nsgmls:docbooktest.sgml:5:9:E: element "AUTHOR" undefined nsgmls:docbooktest.sgml:5:20:E: element "FIRSTNAME" undefined nsgmls:docbooktest.sgml:6:12:E: element "SURNAME" undefined nsgmls:docbooktest.sgml:8:5:E: element "PARA" undefined nsgmls:docbooktest.sgml:9:6:E: element "SECT1" undefined nsgmls:docbooktest.sgml:9:13:E: element "TITLE" undefined nsgmls:docbooktest.sgml:10:5:E: element "PARA" undefined nsgmls:docbooktest.sgml:12:13:E: element "BIBLIOGRAPHY" undefined eivind@trisha:~/dokumenter > I have installed a few ports related to DocBook: eivind@trisha:~/dokumenter > pkg_info | grep doc docbook-1.2 Meta-port for the different versions of the DocBook DTD docbook-241 V2.4.1 of the DocBook DTD, designed for technical documenta docbook-3.0 V3.0 of the DocBook DTD, designed for technical documentati docbook-3.1 V3.1 of the DocBook DTD, designed for technical documentati docbook-4.0 V4.0 of the DocBook DTD, designed for technical documentati docbook-4.1 V4.1 of the DocBook DTD, designed for technical documentati docbook-tdg-2.0.4 Norman Walsh's book "DocBook: The Definitive Guide" docbook-xml-4.1.2_1 XML version of the DocBook DTD docproj-1.9 The "meta-port" for the FreeBSD Documentation Project dsssl-docbook-modular-1.73 DSSSL stylesheets for the DocBook DTD by Norman Walsh jadetex-3.12 A TeX backend for Jade, for typesetting SGML documents linuxdoc-1.1 The Linuxdoc SGML DTD psgml-emacs21-1.2.4_1 A major mode for editing SGML and XML documents for emacs21 sgmlformat-1.7_2 Generates groff and HTML from linuxdoc and docbook SGML doc sgmltools-2.0.2 Generates various output formats from DocBook SGML document eivind@trisha:~/dokumenter > (well, some of these have nothing to do with DocBook) Can anyone suggest what I might be doing wrong? Is the test DocBook file I have incorrect? Am I missing any ports? Any manual configuration/changes I need to do? To me it looks like nsgmls is not able to map the DOCTYPE with a DTD, and from what I understand it should do so by looking at a catalog-file (probably /usr/local/share/sgml/catalog ?). Here is the contents of my /usr/local/share/sgml/catalog file: eivind@trisha:/usr/local/share/sgml > cat catalog CATALOG "/usr/local/share/sgml/jade/catalog" CATALOG "/usr/local/share/gmat/sgml/CATALOG" CATALOG "iso8879/catalog" CATALOG "linuxdoc/catalog" CATALOG "docbook/catalog" CATALOG "html/catalog" CATALOG "iso12083/catalog" eivind@trisha:/usr/local/share/sgml > -- Eivind Olsen eivind@aminor.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message