docbook: Wrong tags?


Previous by date: 20 Sep 2002 13:15:19 -0000 Wrong tags?, Rachel Collins
Next by date: 20 Sep 2002 13:15:19 -0000 Re: Wrong tags?, Jim Weller
Previous in thread: 20 Sep 2002 13:15:19 -0000 Wrong tags?, Rachel Collins
Next in thread: 20 Sep 2002 13:15:19 -0000 Re: Wrong tags?, Jim Weller

Subject: Re: Wrong tags?
From: "Greg Ferguson" ####@####.####
Date: 20 Sep 2002 13:15:19 -0000
Message-Id: <10209200909.ZM5572@hoop.timonium.sgi.com>

On Sep 20,  6:07am, Rachel Collins wrote:
> Subject: Wrong tags?
> I am a Debian user, and so experienced some confusion when I
> began writing my HOWTO.  The Author Guide indicates that the
> correct docbook dtd was in X and I found mine, after much
> agonizing, in Y.  I can now successfully compile my XML document,
> but it does not come out the way I would expect it to.  A
> <programlisting> is not displayed over a grey background, and a
> <command> is listed in boldface, where I would imagine it to be
> in courier or some other monospaced font.  The command I'm
> running to compile is this:
>
> jade -t sgml -i html -d
> /usr/share/sgml/docbook/stylesheet/dsssl/ldp/ldp.dsl
> /usr/share/sgml/declaration/xml.dcl filename.xml
>
> Am I using the wrong *.dsl file, the wrong tags, or the wrong
> something else?

Wrong syntax. Try:

  jade -t sgml -i html -d
    /usr/share/sgml/docbook/stylesheet/dsssl/ldp/ldp.dsl#html
    /usr/share/sgml/declaration/xml.dcl filename.xml

Also, is your top-level element "book" or "article"? I'd recommend
you use "article", although it's not a requirement:

  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
       "http://docbook.org/xml/4.1.2/docbookx.dtd" []>

  <article>
    <articleinfo>
    ...


regards,

-- 
Greg Ferguson    * SGI principal engr / LDP contributor
SGI Tech Pubs    * http://techpubs.sgi.com/ | gferg(at)sgi.com
Linux Doc Project* http://tldp.org/         | gferg(at)metalab.unc.edu

Previous by date: 20 Sep 2002 13:15:19 -0000 Wrong tags?, Rachel Collins
Next by date: 20 Sep 2002 13:15:19 -0000 Re: Wrong tags?, Jim Weller
Previous in thread: 20 Sep 2002 13:15:19 -0000 Wrong tags?, Rachel Collins
Next in thread: 20 Sep 2002 13:15:19 -0000 Re: Wrong tags?, Jim Weller


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.