This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook-apps] Catalog lookups with openjade on redhat 9.0 without network connection fails


Try removing the DOCTYPE declarations from the catalog files themselves.
Those also point to http://www.oasis-open.org.

> -----Original Message-----
> From: Sanders, M. [mailto:MSA@ballastham.com]
> Sent: Tuesday, August 26, 2003 4:37 AM
> To: Patrick Eisenacher
> Cc: docbook-apps@lists.oasis-open.org
> Subject: RE: [docbook-apps] Catalog lookups with openjade on 
> redhat 9.0
> without network connection fails
> 
> 
> Hi Patrick,
> 
> I am still not there... See below what my (out-of-the-box) 
> catalog setup
> looks like.
> 
> I have a feeling it might have something to do with Openjade because
> emacs in psgml mode works fine and shows:
> 
> ...
> Loading psgml-parse...done
> Parsing prolog...
> Parsing doctype...
> Loading psgml-dtd...done
> Loading /etc/sgml/catalog ... done
> Loading /etc/sgml/sgml-docbook-4.1-1.0-17.cat ... done
> Loading /usr/share/sgml/sgml-iso-entities-8879.1986/catalog ... done
> Loading /usr/share/sgml/docbook/sgml-dtd-4.1-1.0-17/catalog ... done
> Loading /usr/share/sgml/openjade-1.3.1/catalog ... done
> Loading 
> /usr/share/sgml/docbook/dsssl-stylesheets-1.76/catalog ... done
> Loading /etc/sgml/xml-docbook-4.1.2-1.0-17.cat ... done
> Loading /usr/share/sgml/docbook/xml-dtd-4.1.2-1.0-17/catalog ... done
> Loading /etc/sgml/sgml-docbook-3.0-1.0-17.cat ... done
> Loading /usr/share/sgml/docbook/sgml-dtd-3.0-1.0-17/catalog ... done
> Loading /etc/sgml/sgml-docbook-3.1-1.0-17.cat ... done
> Loading /usr/share/sgml/docbook/sgml-dtd-3.1-1.0-17/catalog ... done
> Loading /etc/sgml/xml-docbook-4.2-1.0-17.cat ... done        <!---
> Needed by Openjade points at 4.2 xml dtd?? -->
> Loading /usr/share/sgml/docbook/xml-dtd-4.2-1.0-17/catalog ... done
> Loading /etc/sgml/sgml-docbook-4.0-1.0-17.cat ... done
> Loading /usr/share/sgml/docbook/sgml-dtd-4.0-1.0-17/catalog ... done
> Loading /etc/sgml/sgml-docbook-4.2-1.0-17.cat ... done
> Loading /usr/share/sgml/docbook/sgml-dtd-4.2-1.0-17/catalog ... done
> Parsing doctype (1 elements)...
> ...
> 
> I'll show how far I get:
> 
> # openjade -t xml -d
> /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl
> /usr/share/sgml/xml.dcl g14man.xml
> openjade:g14man.xml:13:0:E: error connecting to "www.oasis-open.org"
> (Connection timed out)
> openjade:g14man.xml:13:0:E: DTD did not contain element 
> declaration for
> document type name
> openjade:g14man.xml:15:11:E: there is no attribute "lang"
> openjade:g14man.xml:15:19:E: there is no attribute "id"
> openjade:g14man.xml:15:26:E: element "book" undefined
> openjade:../std_doc/../std_doc/preamble/preman.xml:1:11:E: element
> "bookinfo" undefined
> and more, more undefined elements
> 
> So for some reason when the network is down Openjde does not find the
> DTD (correct em if I am wrong)
> 
> But I do have an XML catalog:
> 
> # cat /etc/xml/catalog
> <?xml version="1.0"?>
> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog
> V1.0//EN"
> "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
>   <delegatePublic publicIdStartString="-//OASIS//ENTITIES DocBook XML"
> catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
>   <delegatePublic publicIdStartString="-//OASIS//DTD DocBook XML"
> catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
>   <delegatePublic publicIdStartString="ISO 8879:1986"
> catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
>   <delegateSystem
> systemIdStartString="http://www.oasis-open.org/docbook/";
> catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
>   <delegateURI uriStartString="http://www.oasis-open.org/docbook/";
> catalog="file:///usr/share/sgml/docbook/xmlcatalog"/>
>   <rewriteSystem
> systemIdStartString="http://scrollkeeper.sourceforge.net/dtds/
> scrollkeep
> er-omf-1.0/scrollkeeper-omf.dtd"
> rewritePrefix="/usr/share/xml/scrollkeeper/dtds/scrollkeeper-o
> mf.dtd"/>
>   <rewriteURI
> uriStartString="http://scrollkeeper.sourceforge.net/dtds/scrol
> lkeeper-om
> f-1.0/scrollkeeper-omf.dtd"
> rewritePrefix="/usr/share/xml/scrollkeeper/dtds/scrollkeeper-o
> mf.dtd"/>
>   <rewriteSystem
> systemIdStartString="http://docbook.sourceforge.net/release/xs
> l/1.58.1"
> rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets-
> 1.58.1-2"/
> >
>   <rewriteURI
> uriStartString="http://docbook.sourceforge.net/release/xsl/1.58.1";
> rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets-
> 1.58.1-2"/
> >
>   <rewriteSystem
> systemIdStartString="http://docbook.sourceforge.net/release/xs
> l/current"
> rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets-
> 1.58.1-2"/
> >
>   <rewriteURI
> uriStartString="http://docbook.sourceforge.net/release/xsl/current";
> rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets-
> 1.58.1-2"/
> >
>   <delegatePublic publicIdStartString="-//W3C//DTD XHTML 1.0"
> catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
>   <delegateSystem 
> systemIdStartString="http://www.w3.org/TR/xhtml1/DTD";
> catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
>   <delegateURI uriStartString="http://www.w3.org/TR/xhtml1/DTD";
> catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
> </catalog>
> 
> And in the header of g14man.xml I have:
> 
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; [ ...
> 
> So, as far as I can see the next catalog file that is looked at is
> /usr/share/sgml/docbook/xmlcatalog
> 
> # cat /usr/share/sgml/docbook/xmlcatalog
> <?xml version="1.0"?>
> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog
> V1.0//EN"
> "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
>   <public publicId="ISO 8879:1986//ENTITIES Publishing//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-pub.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Greek Letters//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-grk1.ent"/>
>   <public publicId="-//OASIS//ELEMENTS DocBook XML Information Pool
> V4.1.2//EN"
> uri="xml-dtd-4.1.2-1.0-17/dbpoolx.mod"/>
>   <public publicId="ISO 8879:1986//ENTITIES Box and Line Drawing//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-box.ent"/>
>   <public publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
> uri="xml-dtd-4.1.2-1.0-17/docbookx.dtd"/>
>   <public publicId="ISO 8879:1986//ENTITIES Greek Symbols//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-grk3.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Math 
> Symbols: Negated
> Relations//EN" uri="xml-dtd-4.2-1.0-17/ent/iso-amsn.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Numeric and Special
> Graphic//EN" uri="xml-dtd-4.2-1.0-17/ent/iso-num.ent"/>
>   <public publicId="-//OASIS//ENTITIES DocBook XML Character Entities
> V4.1.2//EN" uri="xml-dtd-4.1.2-1.0-17/dbcentx.mod"/>
>   <public publicId="ISO 8879:1986//ENTITIES Alternative Greek
> Symbols//EN" uri="xml-dtd-4.2-1.0-17/ent/iso-grk4.ent"/>
>   <public publicId="-//OASIS//ENTITIES DocBook XML Notations 
> V4.1.2//EN"
> uri="xml-dtd-4.1.2-1.0-17/dbnotnx.mod"/>
>   <public publicId="ISO 8879:1986//ENTITIES Diacritical Marks//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-dia.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Monotoniko Greek//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-grk2.ent"/>
>   <public publicId="-//OASIS//ENTITIES DocBook XML Additional General
> Entities V4.1.2//EN" uri="xml-dtd-4.1.2-1.0-17/dbgenent.mod"/>
>   <public publicId="-//OASIS//ELEMENTS DocBook XML Document Hierarchy
> V4.1.2//EN" uri="xml-dtd-4.1.2-1.0-17/dbhierx.mod"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Arrow
> Relations//EN" uri="xml-dtd-4.2-1.0-17/ent/iso-amsa.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols:
> Ordinary//EN" uri="xml-dtd-4.2-1.0-17/ent/iso-amso.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Russian Cyrillic//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-cyrl.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES General Technical//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-tech.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols:
> Delimiters//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-amsc.ent"/>
>   <public publicId="-//OASIS//DTD XML Exchange Table Model 
> 19990315//EN"
> uri="xml-dtd-4.2-1.0-17/soextblx.dtd"/>
>   <public publicId="-//OASIS//DTD DocBook XML CALS Table Model
> V4.1.2//EN" uri="xml-dtd-4.1.2-1.0-17/calstblx.dtd"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Latin 1//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-lat1.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols: Binary
> Operators//EN" uri="xml-dtd-4.2-1.0-17/ent/iso-amsb.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Latin 2//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-lat2.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Added Math Symbols:
> Relations//EN" uri="xml-dtd-4.2-1.0-17/ent/iso-amsr.ent"/>
>   <public publicId="ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN"
> uri="xml-dtd-4.2-1.0-17/ent/iso-cyr2.ent"/>
>   <rewriteSystem
> systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1.2";
> rewritePrefix="xml-dtd-4.1.2-1.0-17"/>
>   <rewriteURI
> uriStartString="http://www.oasis-open.org/docbook/xml/4.1.2";
> rewritePrefix="xml-dtd-4.1.2-1.0-17"/>
>   <public publicId="-//OASIS//ELEMENTS DocBook XML Information Pool
> V4.2//EN" uri="xml-dtd-4.2-1.0-17/dbpoolx.mod"/>
>   <public publicId="-//OASIS//DTD DocBook XML V4.2//EN"
> uri="xml-dtd-4.2-1.0-17/docbookx.dtd"/>
>   <public publicId="-//OASIS//ENTITIES DocBook XML Character Entities
> V4.2//EN"
> uri="xml-dtd-4.2-1.0-17/dbcentx.mod"/>
>   <public publicId="-//OASIS//ENTITIES DocBook XML Notations V4.2//EN"
> uri="xml-dtd-4.2-1.0-17/dbnotnx.mod"/>
>   <public publicId="-//OASIS//ENTITIES DocBook XML Additional General
> Entities V4.2//EN" uri="xml-dtd-4.2-1.0-17/dbgenent.mod"/>
>   <public publicId="-//OASIS//ELEMENTS DocBook XML Document Hierarchy
> V4.2//EN"
> uri="xml-dtd-4.2-1.0-17/dbhierx.mod"/>
>   <public publicId="-//OASIS//DTD DocBook XML CALS Table 
> Model V4.2//EN"
> uri="xml-dtd-4.2-1.0-17/calstblx.dtd"/>
>   <rewriteSystem
> systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2";
> rewritePrefix="xml-dtd-4.2-1.0-17"/>
>   <rewriteURI 
> uriStartString="http://www.oasis-open.org/docbook/xml/4.2";
> rewritePrefix="xml-dtd-4.2-1.0-17"/>
> </catalog>
> 
> And indeed I have a directory filled with the right things:
> 
> # ls /usr/share/sgml/docbook/xml-dtd-4.2-1.0-17/
> calstblx.dtd  dbcentx.mod   dbhierx.mod  dbpoolx.mod   ent
> catalog       dbgenent.mod  dbnotnx.mod  docbookx.dtd  soextblx.dtd
> 
> It still would be very nice also to be able to proces docbook files
> while off-line. But how to make clear to Openjade all needed info is
> locally available?
> 
> Thanks in advance,
> 
> Maarten Sanders
> 
> -----Original Message-----
> From: Patrick Eisenacher [mailto:eisenacher@fillmore-labs.com] 
> Sent: Monday, August 25, 2003 5:56 PM
> To: Sanders, M.
> Cc: docbook-apps@lists.oasis-open.org
> Subject: Re: [docbook-apps] Catalog lookups with openjade on 
> redhat 9.0
> without network connection fail
> 
> 
> Hi Maarten,
> 
> your processing tool wants to retrieve the DTD from the 
> address given in
> 
> your document's header: 
> http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
> 
> If you want to use your local version, then use an XML catalog to map 
> public identifiers to specific locations on your machine. See Bob's 
> tutorial on using XML catalogs for all the details involved: 
> http://www.sagehill.net/docbookxsl/Catalogs.html. It's pretty easy to 
> set up. Best install the XML catalog at the default position 
> (/etc/xml/catalog).
> 
> HTH,
> Patrick
> 
> Sanders, M. schrieb:
> 
> > Hello,
> > 
> > Today I - an 'out of the box' docbook user - ran into an intriguing
> > problem:
> > 
> > I have been using docbook succesfully for the lat 3 weeks 
> on my redhat
> 
> > 9.0 system. Not being a guru I opted to install everything 
> (so every 
> > single package on the 3 cd's is installed). I create both 
> html and pdf
> > with:
> > 
> > openjade -t xml -d 
> > /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl
> > /usr/share/sgml/xml.dcl mydoc.xml
> > openjade -t xml -d 
> > /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl
> > /usr/share/sgml/xml.dcl mydoc.xml
> > jadetex mydoc.tex
> > pdfjadetex mydoc.tex
> > 
> > This works fine. However, today I noticed when there were 
> network was 
> > down the commands above did not give any  output. I did get 
> a message
> > containing:
> > 
> > could not resolve host "www.oasis-open.org"
> > and then it starts complaining about missing element 
> declarations in 
> > the DTD, undefined elements etc..
> > 
> > The header of mydoc.xml looks like:
> > 
> > <?xml version="1.0" encoding="utf-8"?>
> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
> > "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
> > 
> > Since I have everything installed on my system I would expect being 
> > not on a network would still allow me to parse xml files but 
> > apparently there is something 'wrong' on the out of the box redhat 
> > install. Anyone got a clue where to start looking to solve 
> this issue?
> 
> > In fact, I want to be able to process xml files also when I 
> am on the 
> > road.
> > 
> > Kind regards,
> > 
> > Maarten Sanders
> > 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]