473,396 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DocBook XML documents and OpenJade 1.3.1

On Windows 2000, with OpenJade 1.3.1, and the DocBook sgml/XML DTD 4.2 from
sourceforge.

I can use OpenJade 1.3.1 to generate an rtf document from a DocBook sgml
document. But it failed from a DocBook XML document.

onsgmls works for both sgml and XML documents. Hence, I think maybe I set
up wrong SGML_CATALOG_FILES.

Please show me your SGML_CATALOG_FILES, and other environment variables,
and the command to run OpenJade, if you can solve this problem.
Jul 20 '05 #1
2 1393
On 2004-06-04, Jacky <ch********@hotmail.com> wrote:
On Windows 2000, with OpenJade 1.3.1, and the DocBook sgml/XML DTD 4.2 from
sourceforge.

I can use OpenJade 1.3.1 to generate an rtf document from a DocBook sgml
document. But it failed from a DocBook XML document.

onsgmls works for both sgml and XML documents. Hence, I think maybe I set
up wrong SGML_CATALOG_FILES.

Please show me your SGML_CATALOG_FILES, and other environment variables,
and the command to run OpenJade, if you can solve this problem.


You don't provide the actual error messages, so this is a bit of
guesswork, but this is a common problem.

(Open)Jade's default SGML declaration allows and expects certain
formatting rules that are not allowed in XML. You have to apply a
declaration that will cause it to accept only well-formed XML.

Look for a file called 'xml.dcl' in your SGMLHOME. Add it to the
invocation of openjade. I've got a Makefile with an instruction:
jade $(WARN) $(RTF) -o $*.html $(DCL) $*.xml

where $(WARN) contains any warning flags I want turned on or off,
$(RTF) provides RTF-specific arguments (the DSSSL file to use) and
$(DCL) contains the fully-qualified path to xml.dcl
(/usr/share/sgml/xml.dcl, in my case).

So, do something like:

d:> openjade -d dbk2html.dsl -t rtf-95 /usr/share/sgml/xml.dcl doc.xml

making replacements as appropriate, and you should end up with an RTF
file 'doc.rtf'.
Keith
Jul 20 '05 #2
> Please show me your SGML_CATALOG_FILES, and other environment variables,
and the command to run OpenJade, if you can solve this problem.


export SGML_CATALOG_FILES=/usr/local/dbtools/openjade/dsssl/catalog:/usr/local/dbtools/dtd4.1.2/docbook.cat:/usr/local/dbtools/docbook-dsssl/catalog

In Peace,
Saqib Ali
http://validate.sf.net Online DocBook XML Validator and Transformer
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Winter | last post by:
(Sorry - couldn't find a generic DocBook NG - I hope this is close enough.) I'm considering moving my documentation and translation business - which is currently done in proprietary formats such...
2
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability),...
1
by: ZJT | last post by:
How to transform docbook documents into other types of documents such as pdf, html and so on, in windows2000? You can assume that I can use cygwin. Thanks a lot!
1
by: David Montgomery | last post by:
Hi, Our company provides ASP services to multiple government agencies. These agencies in turn provide our ASP services to the general public through their web portals. As part of our service...
2
by: Matti Järvinen | last post by:
Hi I am trying to find a tool for converting XML Docbook to format that is recognized by microsoft word. I have been trying combinations such as (xsltproc, jfor) and (xalan, jfor), but the...
1
by: Saqib Ali | last post by:
Hello Everybody, I am writing a simple web interface to onsgmls for validating HTML 4.01, XHTML 1.0, and DocBook 4.1.2. The web interface in PHP, and uses ongsmls...
2
by: Yarco | last post by:
I'm learning for docbook under win32. I download: openjade-1_3_1-2-bin docbook-xml-4.4 docbook-dsssl-1.79 ldp.dsl And then copy all openjade bin\ to win32 system\, and then create a directory...
12
by: Jim Anderson | last post by:
This is my first attempt at XML documentation. I'm trying to get started with docbook so I can put a set of documentation into docbook tags. I'm using 'XML In A Nutshell" and "DocBook The...
3
by: Michael Struck | last post by:
Hi, can anybody give me a source code example of docbook version 5 with a MathML formula and SVG image I don`t understand, how to include. By the way, anybody here using docbook ver5 wit...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.