[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sgml tool



On Jul 8, 10:39am, Gregory Leblanc wrote:
> Subject: RE: sgml tool
> > -----Original Message-----
> > From: Thomas Linden [mailto:[email protected]]
> > Sent: Saturday, July 08, 2000 6:29 AM
> > To: [email protected]
> > Subject: sgml tool
> >
> > Hi,
> >
> > I am having the following problem:
> > If I write a new howto document based on the template in the
> > hotwto-howto
> > and want to create html files from that using jade, it
> > creates files with
> > silly names x123.htm, x456.htm and so on instead of
> > my_howto_1.htm and so
> > forth.
> >
> > Could anybody help me please? Here is the command I used:
> > /usr/local/bin/jade -t sgml -i html -d \
> >   /usr/local/sgml/dsssl/ldp.dsl \
> >   -D /usr/local/sgml/dsssl/docbook/html \
> >   security_am_localhost.sgml
>
> Check out the LDP Authoring Guide, section 6.2
> http://www.LinuxDoc.org/HOWTO/HOWTO-HOWTO/tips.html#AEN413

As Greg-o says, take a look at the guide. Basically, you need
to create id attribute/value pairs within your section (or sect1
or chapter) tags. The resultant filenames will then take the
same name as what was given the id  for the section.

Example (from the Cable-Modem HOWTO):

    <sect1 id="ethernet">
      <title>Setting up your Ethernet Card</title>
    ...

when processed produces the file:

    ethernet.html

Here is the DSSSL code that controls that behavior (from ldp.dsl) :

    (define %use-id-as-filename%
     ;; Use ID attributes as name for component HTML files?
     #t)

r,

-- 
Greg Ferguson     - s/w engr / mtlhd         | [email protected]
SGI Tech Pubs     - http://techpubs.sgi.com  | 
Linux Doc Project - http://www.linuxdoc.org  |


--  
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]