OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK: Trouble validating with nsgmls


It is preferable to use the DOCTYPE declaration:

<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";>

In XML Docbook files, then you could add something like:

SYSTEM "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";
"../docbkx412/docbookx.dtd"

to one of your SGML_CATALOG_FILES files, onsgmls and openjade
will then work without complaining, for the XML_CATALOG_FILES,
add something like:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <group xml:base="/usr/share/xml/" prefer="public" >
       <public
         publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
         uri="file:///c:/docbook/docbkx412/docbookx.dtd"/>
  </group>
</catalog>

which will resolve the dtd for the xml tools

when you use the sgml tools with xml documents make sure you specify the
xml declaration on the command line like:

openjade -d c:/docbook/dbdsssl/print/docbook.dsl
c:/docbook/openjade-1.3.1/pubtext/xml.dcl inputfile.xml

and for onsgmls

onsgmls -s c:/docbook/openjade-1.3.1/pubtext/xml.dcl inputfile.xml

AM
----- Original Message -----
From: "Phil Glaser" <StillSmallVoice@DirectvInternet.com>
To: <docbook@lists.oasis-open.org>
Sent: Sunday, July 14, 2002 4:50 PM
Subject: DOCBOOK: Trouble validating with nsgmls


> Hi,
>
> I am using emacs, in Windows, with psgml, and nsgmls for external
> validation. I have added xml.dcl and the catalog files for both docbook
and
> xhtml to the SGML_CATALOG_FILES environment variable. Psgml can see the
DTDs
> for both docbook and xhtml and nsgmls validates xhtml docs with no
problem.
> But when I try to validate docbook with nsgmls, I get the error message
> "cannot open "docbookx.dtd" (No such file or directory)." The docbook
> catalog file is the one that's included with the docbook.dtd, except I
> changed the extension from .cat to .soc for consistency with the xhtml
> catalog file.
>
> Any suggestions? Thanks!
>
> Here are some relevant values:
>
> ****Value of SGML_CATALOG_FILES****
>
>
c:\sp\pubtext\xml.soc;D:\Data\DTDs\xhtml1\xhtml.soc;D:\Data\DTDs\docbook\doc
> book.soc
>
> ****The DOCTYPE delcaration in the doc I'm editing****
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"docbookx.dtd"
> []>
>
> ****The catalog file from D:\Data\DTDs\docbook\docbook.soc****
>   --
> ...................................................................... --
>   -- DocBook driver file
> .................................................. --
>
> PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd"
>
>   --
> ...................................................................... --
>   -- DocBook modules
> ...................................................... --
>
> PUBLIC "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN"
> "calstblx.dtd"
> PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
"soextblx.dtd"
> PUBLIC "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN"
> "dbpoolx.mod"
> PUBLIC "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN"
> "dbhierx.mod"
> PUBLIC "-//OASIS//ENTITIES DocBook XML Additional General Entities
> V4.1.2//EN" "dbgenent.mod"
> PUBLIC "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" "dbnotnx.mod"
> PUBLIC "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN"
> "dbcentx.mod"
>
>   --
> ...................................................................... --
>   -- ISO entity sets
> ...................................................... --
>
> PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "ent/iso-dia.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN"
> "ent/iso-num.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "ent/iso-pub.ent"
> PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "ent/iso-tech.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "ent/iso-lat1.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "ent/iso-lat2.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "ent/iso-grk1.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "ent/iso-grk2.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "ent/iso-grk3.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN"
> "ent/iso-grk4.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN"
> "ent/iso-amsa.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN"
> "ent/iso-amsb.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN"
> "ent/iso-amsc.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN"
> "ent/iso-amsn.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN"
> "ent/iso-amso.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN"
> "ent/iso-amsr.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN"
"ent/iso-box.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "ent/iso-cyr1.ent"
> PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN"
"ent/iso-cyr2.ent"
>
>   -- End of catalog data for DocBook XML V4.1.2
> ............................. --
>   --
> ...................................................................... --
>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC