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]

RE: many errors from jade


Phillip Shelton sez:

> Two comments. You will need to make sure that the xml.dcl file is being
> added to you commandline before your source.

This was the problem.  I didn't realize at first that db2html is a script, 
looking into it for the jade command line it doesn't do this.

The first thing I did was make copies of my XML files as SGML files and put in 
the SGML docbook DTD instead of the XML one.  Very happily, this worked.

Then I made a copy of db2html and edited the jade command lines to include the 
xml.dcl file, according to the following patch.  Keeping the original will allow 
processing of docbook sgml, using this will do xml:

--- db2html     Tue Nov  6 22:25:15 2001
+++ mydb2html   Tue Nov  6 22:17:03 2001
@@ -4,6 +4,7 @@
  DB_STYLESHEET=/usr/lib/sgml/stylesheet/dsssl/docbook/cygnus/cygnus-both.dsl
  HTML_STYLESHEET=/usr/lib/sgml/stylesheet/css/cygnus/docbook.css
  ADMON_GRAPHICS=/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/images/*.gif
+XMLDCL=/usr/lib/sgml/sgml/xml.dcl

  output=db2html-dir
  TMPDIR=DBTOHTML_OUTPUT_DIR$$
@@ -52,10 +53,10 @@
  SAVE_PWD=`pwd`
  if [ $1 = `basename $1` ]; then
    echo "working on ../$1"
-  (cd $TMPDIR; jade -c $CATALOG -t sgml -ihtml -d ${DB_STYLESHEET}\#html ../$1;
  cd $SAVE_PWD)
+  (cd $TMPDIR; jade -c $CATALOG -t xml -ihtml -d ${DB_STYLESHEET}\#html ${XMLDC
L} ../$1; cd $SAVE_PWD)
  else
    echo "working on $1"
-  (cd $TMPDIR; jade -c $CATALOG -t sgml -ihtml -d ${DB_STYLESHEET}\#html $1; cd
  $SAVE_PWD)
+  (cd $TMPDIR; jade -c $CATALOG -t xml -ihtml -d ${DB_STYLESHEET}\#html ${XMLDC
L} $1; cd $SAVE_PWD)
  fi

  if [ $# -eq 1 ]


-- 
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com
crawford@goingware.com

   Tilting at Windmills for a Better Tomorrow.

     "I give you this one rule of conduct. Do what you will, but speak
      out always. Be shunned, be hated, be ridiculed, be scared,
      be in doubt, but don't be gagged."
      -- John J. Chapman, "Make a Bonfire of Your Reputations"
         http://www.goingware.com/reputation/


----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


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