Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > DocBook XML documents and OpenJade 1.3.1

Reply
Thread Tools

DocBook XML documents and OpenJade 1.3.1

 
 
Jacky
Guest
Posts: n/a
 
      06-04-2004
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.
 
Reply With Quote
 
 
 
 
Keith Davies
Guest
Posts: n/a
 
      06-09-2004
On 2004-06-04, Jacky <> 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
 
Reply With Quote
 
 
 
 
Saqib Ali
Guest
Posts: n/a
 
      06-10-2004
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DocBook: Pass DocBook-Path to Stylesheet tthunder@gmx.de XML 1 11-27-2007 12:08 AM
No more stuff on C:\Documents and Settings\[User]\My Documents\Visual Studio 2005\ craigkenisston@hotmail.com ASP .Net 1 10-18-2006 03:31 PM
Converting xml docbook to html and pdf bringmewater@gmail.com XML 4 09-18-2005 11:49 PM
[ANN] deplate 0.7.1 - A tool for converting documents written inan unobtrusive, wiki-like markup to LaTeX, HTML, "HTML slides", or DocBook Thomas Ruby 0 03-03-2005 06:36 PM
Transform XML docbook to HTML with docbook stylesheet Antonio Amato XML 2 11-18-2004 05:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57