public inbox for docbook-tools-discuss@sourceware.org
 help / color / mirror / Atom feed
* Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23 Any luck with DocBook/SGML 3.1 with Red Hat 7.3? Peter Toft
@ 2002-06-30 13:21 ` Peter Toft
  2002-12-20 19:23 ` Tim Waugh
  1 sibling, 0 replies; 38+ messages in thread
From: Peter Toft @ 2002-06-30 13:21 UTC (permalink / raw)
  To: docbook-tools-discuss

I try to build from DocBook/SGML 3.1-sources on Red Hat 
7.3

1) When I go for HTML-output with Red Hat 6.2 or 7.2 
   my HTML-files would be named after the tags 
   "TAG-NAME" I added to my sections: 
   e.g. <sectN id="TAG-NAME">
   Now with RH 7.3 all of my outputfile from running
   docbook2html are named x1346.html and alike - not
   install.html, introduction.html.

2) When I try to make PDF-output I need to run 
   jade to give input to the subsequent 
   index-collection 
   ( perl ./collateindex.pl -g -o stikord.sgml tempdir/HTML.index)
   I get lots of errors now with Red Hat 7.3 when I run
   jade -t sgml -ihtml \
   -d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#print \
   -V html-index -V nochunks bog.sgml > ged.html 


jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:422:19:E: 
reference to undefined variable "%admon-font-family%"
jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:416:7:E: 
reference to undefined variable "HSIZE"
jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:478:2:E: 
too many arguments for function
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbhtml.dsl:326:17:E: 
invalid value for "attributes" characteristic

The last error is repeated a zillion times :))

I am not a world champion in the style-sheets - so I 
could use some help along the way here.

FYI - my Docbook-header looks something like
<!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" []>

And I start my books with
<book id="index" lang="da">


Any help is highly appeciated.

FYI; I run http://www.sslug.dk/linuxbog - with 13 books
in Danish with more that 1400 pages. All in 
SGML/DocBook :)))))))

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

The number of UNIX installations has grown to 10, with more expected
 - The Unix Programmer's Manual, 2nd Edition, June 1972 





^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23 ` Tim Waugh
@ 2002-06-30 14:02   ` Tim Waugh
  2002-12-20 19:23   ` Éric Bischoff
  2002-12-20 19:23   ` Peter Toft
  2 siblings, 0 replies; 38+ messages in thread
From: Tim Waugh @ 2002-06-30 14:02 UTC (permalink / raw)
  To: Peter Toft; +Cc: docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]

On Sun, Jun 30, 2002 at 10:21:03PM +0200, Peter Toft wrote:

> I try to build from DocBook/SGML 3.1-sources on Red Hat 
> 7.3
> 
> 1) When I go for HTML-output with Red Hat 6.2 or 7.2 
>    my HTML-files would be named after the tags 
>    "TAG-NAME" I added to my sections: 
>    e.g. <sectN id="TAG-NAME">
>    Now with RH 7.3 all of my outputfile from running
>    docbook2html are named x1346.html and alike - not
>    install.html, introduction.html.

The default value for %use-id-as-filename% is false.  Turn it back on
if you like, in a custom stylesheet.

> 2) When I try to make PDF-output I need to run 
>    jade to give input to the subsequent 
>    index-collection 
>    ( perl ./collateindex.pl -g -o stikord.sgml tempdir/HTML.index)
>    I get lots of errors now with Red Hat 7.3 when I run
>    jade -t sgml -ihtml \
>    -d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#print \
>    -V html-index -V nochunks bog.sgml > ged.html 

The collateindex perl script comes from docbook-dsssl.  I filed a bug
report at sourceforge.net, with a patch, that fixed some problems with
it.

> jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:422:19:E: 
> reference to undefined variable "%admon-font-family%"
> jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:416:7:E: 
> reference to undefined variable "HSIZE"
> jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:478:2:E: 
> too many arguments for function
> jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbhtml.dsl:326:17:E: 
> invalid value for "attributes" characteristic

However this looks more like a mismatch between the docbook-style-dsssl
and docbook-utils packages.  Are they the ones that came with Red Hat
Linux 7.3?

> FYI; I run http://www.sslug.dk/linuxbog - with 13 books
> in Danish with more that 1400 pages. All in 
> SGML/DocBook :)))))))

Is there a test case here that I can try?

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23   ` Éric Bischoff
@ 2002-07-01  0:49     ` Éric Bischoff
  2002-12-20 19:23     ` Tim Waugh
  2002-12-20 19:23     ` Eric S. Raymond
  2 siblings, 0 replies; 38+ messages in thread
From: Éric Bischoff @ 2002-07-01  0:49 UTC (permalink / raw)
  To: Tim Waugh, Peter Toft; +Cc: docbook-tools-discuss

On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> The default value for %use-id-as-filename% is false.  Turn it back on
> if you like, in a custom stylesheet.

Shouldn't we turn it on by default in the default stylesheet?

-- 
Éric Bischoff

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23     ` Tim Waugh
@ 2002-07-01  1:13       ` Tim Waugh
  2002-12-20 19:23       ` Ismael Olea
  1 sibling, 0 replies; 38+ messages in thread
From: Tim Waugh @ 2002-07-01  1:13 UTC (permalink / raw)
  To: Éric Bischoff; +Cc: Peter Toft, docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

On Mon, Jul 01, 2002 at 09:50:02AM +0200, Éric Bischoff wrote:

> On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> > The default value for %use-id-as-filename% is false.  Turn it back on
> > if you like, in a custom stylesheet.
> 
> Shouldn't we turn it on by default in the default stylesheet?

No---doing so is a security risk.  We've been through this.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23   ` Peter Toft
@ 2002-07-01 14:22     ` Peter Toft
  2002-12-20 19:23     ` Norman Walsh
  1 sibling, 0 replies; 38+ messages in thread
From: Peter Toft @ 2002-07-01 14:22 UTC (permalink / raw)
  To: Tim Waugh; +Cc: docbook-tools-discuss

On Sun, 30 Jun 2002, Tim Waugh wrote:

> On Sun, Jun 30, 2002 at 10:21:03PM +0200, Peter Toft wrote:
> 
> > I try to build from DocBook/SGML 3.1-sources on Red Hat 
> > 7.3
> > 
> > 1) When I go for HTML-output with Red Hat 6.2 or 7.2 
> >    my HTML-files would be named after the tags 
> >    "TAG-NAME" I added to my sections: 
> >    e.g. <sectN id="TAG-NAME">
> >    Now with RH 7.3 all of my outputfile from running
> >    docbook2html are named x1346.html and alike - not
> >    install.html, introduction.html.
> 
> The default value for %use-id-as-filename% is false.  Turn it back on
> if you like, in a custom stylesheet.

Well - or directly in the 
/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
(I can't really see why this is so bad.)
Actually - I just tried it and found that I still find 
all my html-files named x1182.html etc.

Weird!!

> 
> > 2) When I try to make PDF-output I need to run 
> >    jade to give input to the subsequent 
> >    index-collection 
> >    ( perl ./collateindex.pl -g -o stikord.sgml tempdir/HTML.index)
> >    I get lots of errors now with Red Hat 7.3 when I run
> >    jade -t sgml -ihtml \
> >    -d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#print \
> >    -V html-index -V nochunks bog.sgml > ged.html 
> 
> The collateindex perl script comes from docbook-dsssl.  I filed a bug
> report at sourceforge.net, with a patch, that fixed some problems with
> it.

Could you send that patch to me?

> 
> > jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:422:19:E: 
> > reference to undefined variable "%admon-font-family%"
> > jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:416:7:E: 
> > reference to undefined variable "HSIZE"
> > jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:478:2:E: 
> > too many arguments for function
> > jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbhtml.dsl:326:17:E: 
> > invalid value for "attributes" characteristic
> 
> However this looks more like a mismatch between the docbook-style-dsssl
> and docbook-utils packages.  Are they the ones that came with Red Hat
> Linux 7.3?

Yes - no odd hacks (yet). Out of the box RPMs


> 
> > FYI; I run http://www.sslug.dk/linuxbog - with 13 books
> > in Danish with more that 1400 pages. All in 
> > SGML/DocBook :)))))))
> 
> Is there a test case here that I can try?

wget http://www.sslug.dk/~pto/templatebog.tgz
tar xvzf templatebog.tgz
cd templatebog

1) make html
   Check the bog/*html files
   (if you set %use-id-as-filename% to true)

2) make pspdf
   Here the pdf-errors are found.

Thank you for for kind help!!!

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

"Peace, Love, and Linux" -- IBM



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23     ` Norman Walsh
@ 2002-07-02  3:55       ` Norman Walsh
  2002-12-20 19:23       ` Peter Toft
  1 sibling, 0 replies; 38+ messages in thread
From: Norman Walsh @ 2002-07-02  3:55 UTC (permalink / raw)
  To: Peter Toft; +Cc: Tim Waugh, docbook-tools-discuss

/ Peter Toft <pto@sslug.dk> was heard to say:
|> The default value for %use-id-as-filename% is false.  Turn it back on
|> if you like, in a custom stylesheet.
|
| Well - or directly in the 
| /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
| (I can't really see why this is so bad.)

Because when you update to 1.77, your modification will get blown away.

| Actually - I just tried it and found that I still find 
| all my html-files named x1182.html etc.

Are you sure your chunks have IDs. The IDs have to be on the chunk
elements (article, chapter, section, etc.) not the titles.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | The Future is something which everyone
http://nwalsh.com/            | reaches at the rate of sixty minutes an
                              | hour, whatever he does, whoever he
                              | is.--C. S. Lewis

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23       ` Peter Toft
@ 2002-07-02 13:48         ` Peter Toft
  2002-12-20 19:23         ` Hugo van der Kooij
  2002-12-20 19:23         ` Tim Waugh
  2 siblings, 0 replies; 38+ messages in thread
From: Peter Toft @ 2002-07-02 13:48 UTC (permalink / raw)
  To: Norman Walsh; +Cc: Tim Waugh, docbook-tools-discuss

On Tue, 2 Jul 2002, Norman Walsh wrote:

> / Peter Toft <pto@sslug.dk> was heard to say:
> |> The default value for %use-id-as-filename% is false.  Turn it back on
> |> if you like, in a custom stylesheet.
> |
> | Well - or directly in the 
> | /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
> | (I can't really see why this is so bad.)
> 
> Because when you update to 1.77, your modification will get blown away.

Acknowledged! 
What is the simplest way to set the 
%use-id-as-filename% to true then? I do not know how to 
make a custom stylesheet (yet).

> 
> | Actually - I just tried it and found that I still find 
> | all my html-files named x1182.html etc.
> 
> Are you sure your chunks have IDs. The IDs have to be on the chunk
> elements (article, chapter, section, etc.) not the titles.

Sure thing - all <chapter> <sect1> <sect2> etc. has 
id="ID" added. e.g.  <chapter id="introduction">

Best

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

"Unix? What's that? Is that like Linux?"

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23         ` Tim Waugh
@ 2002-07-02 15:17           ` Tim Waugh
  2002-12-20 19:23           ` Peter Toft
  1 sibling, 0 replies; 38+ messages in thread
From: Tim Waugh @ 2002-07-02 15:17 UTC (permalink / raw)
  To: Peter Toft; +Cc: Norman Walsh, docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

On Tue, Jul 02, 2002 at 10:47:57PM +0200, Peter Toft wrote:

> Acknowledged! 
> What is the simplest way to set the 
> %use-id-as-filename% to true then? I do not know how to 
> make a custom stylesheet (yet).

Other than a custom stylesheet, use '-V %use-id-as-filename%'.  The -V
option was added to docbook-utils in 0.6.10. (It just gets passed
through to openjade.)

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23     ` Eric S. Raymond
@ 2002-07-03  0:19       ` Eric S. Raymond
  0 siblings, 0 replies; 38+ messages in thread
From: Eric S. Raymond @ 2002-07-03  0:19 UTC (permalink / raw)
  To: Éric Bischoff; +Cc: Tim Waugh, Peter Toft, docbook-tools-discuss

Éric Bischoff <e.bischoff@noos.fr>:
> On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> > The default value for %use-id-as-filename% is false.  Turn it back on
> > if you like, in a custom stylesheet.
> 
> Shouldn't we turn it on by default in the default stylesheet?

I think you should.  I rely on this behavior.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23       ` Ismael Olea
@ 2002-07-03  4:07         ` Ismael Olea
  2002-12-20 19:23         ` Tim Waugh
  1 sibling, 0 replies; 38+ messages in thread
From: Ismael Olea @ 2002-07-03  4:07 UTC (permalink / raw)
  To: Tim Waugh; +Cc: docbook-tools-discuss

El lun, 01-07-2002 a las 10:13, Tim Waugh escribió:
> On Mon, Jul 01, 2002 at 09:50:02AM +0200, Éric Bischoff wrote:
> 
> > On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> > > The default value for %use-id-as-filename% is false.  Turn it back on
> > > if you like, in a custom stylesheet.
> > 
> > Shouldn't we turn it on by default in the default stylesheet?
> 
> No---doing so is a security risk.  We've been through this.

What kind of risk is it? :-??

-- 
	A.Ismael Olea González

	mailto:ismael@olea.org
	http://www.olea.org

	El mundo debe empezar a tener miedo a un planeta OLEA

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23         ` Tim Waugh
@ 2002-07-03  4:59           ` Tim Waugh
  0 siblings, 0 replies; 38+ messages in thread
From: Tim Waugh @ 2002-07-03  4:59 UTC (permalink / raw)
  To: Ismael Olea; +Cc: docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

On Wed, Jul 03, 2002 at 02:23:30AM +0200, Ismael Olea wrote:

> What kind of risk is it? :-??

Not as bad a using a stylesheet from an untrusted source, but similar
in kind.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23           ` Peter Toft
@ 2002-07-03 13:50             ` Peter Toft
  2002-12-20 19:23             ` Tim Waugh
  2002-12-20 19:23             ` Hugo van der Kooij
  2 siblings, 0 replies; 38+ messages in thread
From: Peter Toft @ 2002-07-03 13:50 UTC (permalink / raw)
  To: docbook-tools-discuss

On Tue, 2 Jul 2002, Tim Waugh wrote:

> On Tue, Jul 02, 2002 at 10:47:57PM +0200, Peter Toft wrote:
> 
> > Acknowledged! 
> > What is the simplest way to set the 
> > %use-id-as-filename% to true then? I do not know how to 
> > make a custom stylesheet (yet).
> 
> Other than a custom stylesheet, use '-V %use-id-as-filename%'.  The -V
> option was added to docbook-utils in 0.6.10. (It just gets passed
> through to openjade.)
> 
> Tim.

While we are at it....

Assume that I have a set of these variables that I want 
to change - some could be common, some HTML-specific 
others print-specific. I suppose that there is a way 
that I could have a local "stylesheet" where I set e.g.
  %use-id-as-filename% to t
  %stylesheet% "/mystylesheet.css"
  %paper-type% "A4"
Is this possible - how - can it be be done?

I guess that you understand that I prefer to add these
local options to a setup-file rather than the call to 
the jw/openjade/jade/docbook2XXXX.

:-))

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

Først ignorerer de os
Så gør de nar af os
Så bekæmper de os
Og så vinder vi

Ben Kingsley i "Gandhi"


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23         ` Hugo van der Kooij
@ 2002-07-03 13:59           ` Hugo van der Kooij
  2002-12-20 19:23           ` Peter Toft
  1 sibling, 0 replies; 38+ messages in thread
From: Hugo van der Kooij @ 2002-07-03 13:59 UTC (permalink / raw)
  To: docbook-tools-discuss

On Tue, 2 Jul 2002, Peter Toft wrote:

> On Tue, 2 Jul 2002, Norman Walsh wrote:
> 
> > / Peter Toft <pto@sslug.dk> was heard to say:
> > |> The default value for %use-id-as-filename% is false.  Turn it back on
> > |> if you like, in a custom stylesheet.
> > |
> > | Well - or directly in the 
> > | /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
> > | (I can't really see why this is so bad.)
> > 
> > Because when you update to 1.77, your modification will get blown away.
> 
> Acknowledged! 
> What is the simplest way to set the 
> %use-id-as-filename% to true then? I do not know how to 
> make a custom stylesheet (yet).

I use the sgmltools lite as a wrapper and it has a custom prefix 
stylesheet with just issues like that in it.

Hugo.

-- 
All email send to me is bound to the rules described on my homepage.
    hvdkooij@vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23           ` Peter Toft
@ 2002-07-03 14:01             ` Peter Toft
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Toft @ 2002-07-03 14:01 UTC (permalink / raw)
  To: Hugo van der Kooij; +Cc: docbook-tools-discuss

On Wed, 3 Jul 2002, Hugo van der Kooij wrote:

> On Tue, 2 Jul 2002, Peter Toft wrote:
> 
> > On Tue, 2 Jul 2002, Norman Walsh wrote:
> > 
> > > / Peter Toft <pto@sslug.dk> was heard to say:
> > > |> The default value for %use-id-as-filename% is false.  Turn it back on
> > > |> if you like, in a custom stylesheet.
> > > |
> > > | Well - or directly in the 
> > > | /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
> > > | (I can't really see why this is so bad.)
> > > 
> > > Because when you update to 1.77, your modification will get blown away.
> > 
> > Acknowledged! 
> > What is the simplest way to set the 
> > %use-id-as-filename% to true then? I do not know how to 
> > make a custom stylesheet (yet).
> 
> I use the sgmltools lite as a wrapper and it has a custom prefix 
> stylesheet with just issues like that in it.

Could you give an example of how to do this?

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

                         (o_
(o_  (o_  (o_  (o_  (o_  //\  Penguins on the move !
(/)_ (/)_ (/)_ (/)_ (/)_ V_/_


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23             ` Hugo van der Kooij
@ 2002-07-03 14:04               ` Hugo van der Kooij
  0 siblings, 0 replies; 38+ messages in thread
From: Hugo van der Kooij @ 2002-07-03 14:04 UTC (permalink / raw)
  To: docbook-tools-discuss

On Wed, 3 Jul 2002, Peter Toft wrote:

> On Tue, 2 Jul 2002, Tim Waugh wrote:
> 
> > On Tue, Jul 02, 2002 at 10:47:57PM +0200, Peter Toft wrote:
> > 
> > > Acknowledged! 
> > > What is the simplest way to set the 
> > > %use-id-as-filename% to true then? I do not know how to 
> > > make a custom stylesheet (yet).
> > 
> > Other than a custom stylesheet, use '-V %use-id-as-filename%'.  The -V
> > option was added to docbook-utils in 0.6.10. (It just gets passed
> > through to openjade.)
> > 
> > Tim.
> 
> While we are at it....
> 
> Assume that I have a set of these variables that I want 
> to change - some could be common, some HTML-specific 
> others print-specific. I suppose that there is a way 
> that I could have a local "stylesheet" where I set e.g.
>   %use-id-as-filename% to t
>   %stylesheet% "/mystylesheet.css"
>   %paper-type% "A4"
> Is this possible - how - can it be be done?

I guess you like to customize your output a bit to match your site as 
well. All of this can be done.

I actually described that paces it took me to get things going. And I use 
it to bend the html output a lot to fit into different sites.
Just compare these two links created from the same SGML DocBook source:
http://hvdkooij.xs4all.nl/docs/Nessus-FAQ.html
http://www.nessus.org/doc/faq.html

The steps I took are written down on:
http://hvdkooij.xs4all.nl/docs-docbook.cms

I hope that helps.

Hugo.

-- 
All email send to me is bound to the rules described on my homepage.
    hvdkooij@vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23             ` Tim Waugh
@ 2002-07-03 14:52               ` Tim Waugh
  2002-12-20 19:23               ` Éric Bischoff
  1 sibling, 0 replies; 38+ messages in thread
From: Tim Waugh @ 2002-07-03 14:52 UTC (permalink / raw)
  To: Peter Toft; +Cc: docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

On Wed, Jul 03, 2002 at 10:50:29PM +0200, Peter Toft wrote:

> Assume that I have a set of these variables that I want 
> to change - some could be common, some HTML-specific 
> others print-specific. I suppose that there is a way 
> that I could have a local "stylesheet" where I set e.g.
>   %use-id-as-filename% to t
>   %stylesheet% "/mystylesheet.css"
>   %paper-type% "A4"
> Is this possible - how - can it be be done?

Take a look at the docbook-utils.dsl file from the docbook-utils
tarball.  This is what you're after I think.  There is a more
complicated one in the Red Hat Linux docbook-utils RPM, too.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23               ` Éric Bischoff
@ 2002-07-03 21:16                 ` Éric Bischoff
  2002-12-20 19:23                 ` Tim Waugh
  1 sibling, 0 replies; 38+ messages in thread
From: Éric Bischoff @ 2002-07-03 21:16 UTC (permalink / raw)
  To: Tim Waugh, Peter Toft; +Cc: docbook-tools-discuss

On Wednesday 03 July 2002 23:52, Tim Waugh wrote:
> On Wed, Jul 03, 2002 at 10:50:29PM +0200, Peter Toft wrote:
> > Assume that I have a set of these variables that I want
> > to change - some could be common, some HTML-specific
> > others print-specific. I suppose that there is a way
> > that I could have a local "stylesheet" where I set e.g.
> >   %use-id-as-filename% to t
> >   %stylesheet% "/mystylesheet.css"
> >   %paper-type% "A4"
> > Is this possible - how - can it be be done?
>
> Take a look at the docbook-utils.dsl file from the docbook-utils
> tarball.  This is what you're after I think.  There is a more
> complicated one in the Red Hat Linux docbook-utils RPM, too.

The problem with this file is:
- that it is shared among all users
- that you need root access to modify it

But I think that someone can simply achieve what we are speaking about by 
copying this file locally in his/her home directory, changing the desired 
options, and specifying on the command line that this file has to be used 
with the -d option.

Of course, jw and others could try such a local $HOME/.docbook-utils.dsl file 
without the user having to say that it should be used.

-- 
Éric Bischoff

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23                 ` Tim Waugh
@ 2002-07-03 23:33                   ` Tim Waugh
  2002-12-20 19:23                   ` Éric Bischoff
  1 sibling, 0 replies; 38+ messages in thread
From: Tim Waugh @ 2002-07-03 23:33 UTC (permalink / raw)
  To: Éric Bischoff; +Cc: Peter Toft, docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

On Thu, Jul 04, 2002 at 06:16:26AM +0200, Éric Bischoff wrote:

> > Take a look at the docbook-utils.dsl file from the docbook-utils
> > tarball.  This is what you're after I think.  There is a more
> > complicated one in the Red Hat Linux docbook-utils RPM, too.
> 
> The problem with this file is:
> - that it is shared among all users
> - that you need root access to modify it
> 
> But I think that someone can simply achieve what we are speaking about by 
> copying this file locally in his/her home directory, changing the desired 
> options, and specifying on the command line that this file has to be used 
> with the -d option.

Indeed, that's what I meant.

> Of course, jw and others could try such a local
> $HOME/.docbook-utils.dsl file without the user having to say that it
> should be used.

That would be a good idea, yes.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23                   ` Éric Bischoff
@ 2002-07-04  2:51                     ` Éric Bischoff
  0 siblings, 0 replies; 38+ messages in thread
From: Éric Bischoff @ 2002-07-04  2:51 UTC (permalink / raw)
  To: Tim Waugh; +Cc: Peter Toft, docbook-tools-discuss

On Thursday 04 July 2002 08:33, Tim Waugh wrote:
> > The problem with the docbook-utils.dsl file is:
> > - that it is shared among all users
> > - that you need root access to modify it
> >
> > But I think that someone can simply achieve what we are speaking about by
> > copying this file locally in his/her home directory, changing the desired
> > options, and specifying on the command line that this file has to be used
> > with the -d option.
>
> Indeed, that's what I meant.

I guessed so, I just tried to answer in advance to objections that could be 
made to you ;-)

> > Of course, jw and others could try such a local
> > $HOME/.docbook-utils.dsl file without the user having to say that it
> > should be used.
>
> That would be a good idea, yes.

... and an old one too, we just never found the time to implement it.

It also has the little complication that "jw" is not docbook-specific. "jw" 
could be used with TEI for example, so that local file name should depend on 
the DTD that is being used.

-- 
Éric Bischoff

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23   ` Peter Toft
  2002-07-01 14:22     ` Peter Toft
@ 2002-12-20 19:23     ` Norman Walsh
  2002-07-02  3:55       ` Norman Walsh
  2002-12-20 19:23       ` Peter Toft
  1 sibling, 2 replies; 38+ messages in thread
From: Norman Walsh @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Peter Toft; +Cc: Tim Waugh, docbook-tools-discuss

/ Peter Toft <pto@sslug.dk> was heard to say:
|> The default value for %use-id-as-filename% is false.  Turn it back on
|> if you like, in a custom stylesheet.
|
| Well - or directly in the 
| /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
| (I can't really see why this is so bad.)

Because when you update to 1.77, your modification will get blown away.

| Actually - I just tried it and found that I still find 
| all my html-files named x1182.html etc.

Are you sure your chunks have IDs. The IDs have to be on the chunk
elements (article, chapter, section, etc.) not the titles.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | The Future is something which everyone
http://nwalsh.com/            | reaches at the rate of sixty minutes an
                              | hour, whatever he does, whoever he
                              | is.--C. S. Lewis

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23 ` Tim Waugh
  2002-06-30 14:02   ` Tim Waugh
  2002-12-20 19:23   ` Éric Bischoff
@ 2002-12-20 19:23   ` Peter Toft
  2002-07-01 14:22     ` Peter Toft
  2002-12-20 19:23     ` Norman Walsh
  2 siblings, 2 replies; 38+ messages in thread
From: Peter Toft @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Tim Waugh; +Cc: docbook-tools-discuss

On Sun, 30 Jun 2002, Tim Waugh wrote:

> On Sun, Jun 30, 2002 at 10:21:03PM +0200, Peter Toft wrote:
> 
> > I try to build from DocBook/SGML 3.1-sources on Red Hat 
> > 7.3
> > 
> > 1) When I go for HTML-output with Red Hat 6.2 or 7.2 
> >    my HTML-files would be named after the tags 
> >    "TAG-NAME" I added to my sections: 
> >    e.g. <sectN id="TAG-NAME">
> >    Now with RH 7.3 all of my outputfile from running
> >    docbook2html are named x1346.html and alike - not
> >    install.html, introduction.html.
> 
> The default value for %use-id-as-filename% is false.  Turn it back on
> if you like, in a custom stylesheet.

Well - or directly in the 
/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
(I can't really see why this is so bad.)
Actually - I just tried it and found that I still find 
all my html-files named x1182.html etc.

Weird!!

> 
> > 2) When I try to make PDF-output I need to run 
> >    jade to give input to the subsequent 
> >    index-collection 
> >    ( perl ./collateindex.pl -g -o stikord.sgml tempdir/HTML.index)
> >    I get lots of errors now with Red Hat 7.3 when I run
> >    jade -t sgml -ihtml \
> >    -d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#print \
> >    -V html-index -V nochunks bog.sgml > ged.html 
> 
> The collateindex perl script comes from docbook-dsssl.  I filed a bug
> report at sourceforge.net, with a patch, that fixed some problems with
> it.

Could you send that patch to me?

> 
> > jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:422:19:E: 
> > reference to undefined variable "%admon-font-family%"
> > jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:416:7:E: 
> > reference to undefined variable "HSIZE"
> > jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:478:2:E: 
> > too many arguments for function
> > jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbhtml.dsl:326:17:E: 
> > invalid value for "attributes" characteristic
> 
> However this looks more like a mismatch between the docbook-style-dsssl
> and docbook-utils packages.  Are they the ones that came with Red Hat
> Linux 7.3?

Yes - no odd hacks (yet). Out of the box RPMs


> 
> > FYI; I run http://www.sslug.dk/linuxbog - with 13 books
> > in Danish with more that 1400 pages. All in 
> > SGML/DocBook :)))))))
> 
> Is there a test case here that I can try?

wget http://www.sslug.dk/~pto/templatebog.tgz
tar xvzf templatebog.tgz
cd templatebog

1) make html
   Check the bog/*html files
   (if you set %use-id-as-filename% to true)

2) make pspdf
   Here the pdf-errors are found.

Thank you for for kind help!!!

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

"Peace, Love, and Linux" -- IBM



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23 Any luck with DocBook/SGML 3.1 with Red Hat 7.3? Peter Toft
  2002-06-30 13:21 ` Peter Toft
@ 2002-12-20 19:23 ` Tim Waugh
  2002-06-30 14:02   ` Tim Waugh
                     ` (2 more replies)
  1 sibling, 3 replies; 38+ messages in thread
From: Tim Waugh @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Peter Toft; +Cc: docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]

On Sun, Jun 30, 2002 at 10:21:03PM +0200, Peter Toft wrote:

> I try to build from DocBook/SGML 3.1-sources on Red Hat 
> 7.3
> 
> 1) When I go for HTML-output with Red Hat 6.2 or 7.2 
>    my HTML-files would be named after the tags 
>    "TAG-NAME" I added to my sections: 
>    e.g. <sectN id="TAG-NAME">
>    Now with RH 7.3 all of my outputfile from running
>    docbook2html are named x1346.html and alike - not
>    install.html, introduction.html.

The default value for %use-id-as-filename% is false.  Turn it back on
if you like, in a custom stylesheet.

> 2) When I try to make PDF-output I need to run 
>    jade to give input to the subsequent 
>    index-collection 
>    ( perl ./collateindex.pl -g -o stikord.sgml tempdir/HTML.index)
>    I get lots of errors now with Red Hat 7.3 when I run
>    jade -t sgml -ihtml \
>    -d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#print \
>    -V html-index -V nochunks bog.sgml > ged.html 

The collateindex perl script comes from docbook-dsssl.  I filed a bug
report at sourceforge.net, with a patch, that fixed some problems with
it.

> jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:422:19:E: 
> reference to undefined variable "%admon-font-family%"
> jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:416:7:E: 
> reference to undefined variable "HSIZE"
> jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:478:2:E: 
> too many arguments for function
> jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbhtml.dsl:326:17:E: 
> invalid value for "attributes" characteristic

However this looks more like a mismatch between the docbook-style-dsssl
and docbook-utils packages.  Are they the ones that came with Red Hat
Linux 7.3?

> FYI; I run http://www.sslug.dk/linuxbog - with 13 books
> in Danish with more that 1400 pages. All in 
> SGML/DocBook :)))))))

Is there a test case here that I can try?

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23       ` Peter Toft
  2002-07-02 13:48         ` Peter Toft
@ 2002-12-20 19:23         ` Hugo van der Kooij
  2002-07-03 13:59           ` Hugo van der Kooij
  2002-12-20 19:23           ` Peter Toft
  2002-12-20 19:23         ` Tim Waugh
  2 siblings, 2 replies; 38+ messages in thread
From: Hugo van der Kooij @ 2002-12-20 19:23 UTC (permalink / raw)
  To: docbook-tools-discuss

On Tue, 2 Jul 2002, Peter Toft wrote:

> On Tue, 2 Jul 2002, Norman Walsh wrote:
> 
> > / Peter Toft <pto@sslug.dk> was heard to say:
> > |> The default value for %use-id-as-filename% is false.  Turn it back on
> > |> if you like, in a custom stylesheet.
> > |
> > | Well - or directly in the 
> > | /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
> > | (I can't really see why this is so bad.)
> > 
> > Because when you update to 1.77, your modification will get blown away.
> 
> Acknowledged! 
> What is the simplest way to set the 
> %use-id-as-filename% to true then? I do not know how to 
> make a custom stylesheet (yet).

I use the sgmltools lite as a wrapper and it has a custom prefix 
stylesheet with just issues like that in it.

Hugo.

-- 
All email send to me is bound to the rules described on my homepage.
    hvdkooij@vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23         ` Hugo van der Kooij
  2002-07-03 13:59           ` Hugo van der Kooij
@ 2002-12-20 19:23           ` Peter Toft
  2002-07-03 14:01             ` Peter Toft
  1 sibling, 1 reply; 38+ messages in thread
From: Peter Toft @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Hugo van der Kooij; +Cc: docbook-tools-discuss

On Wed, 3 Jul 2002, Hugo van der Kooij wrote:

> On Tue, 2 Jul 2002, Peter Toft wrote:
> 
> > On Tue, 2 Jul 2002, Norman Walsh wrote:
> > 
> > > / Peter Toft <pto@sslug.dk> was heard to say:
> > > |> The default value for %use-id-as-filename% is false.  Turn it back on
> > > |> if you like, in a custom stylesheet.
> > > |
> > > | Well - or directly in the 
> > > | /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
> > > | (I can't really see why this is so bad.)
> > > 
> > > Because when you update to 1.77, your modification will get blown away.
> > 
> > Acknowledged! 
> > What is the simplest way to set the 
> > %use-id-as-filename% to true then? I do not know how to 
> > make a custom stylesheet (yet).
> 
> I use the sgmltools lite as a wrapper and it has a custom prefix 
> stylesheet with just issues like that in it.

Could you give an example of how to do this?

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

                         (o_
(o_  (o_  (o_  (o_  (o_  //\  Penguins on the move !
(/)_ (/)_ (/)_ (/)_ (/)_ V_/_


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23       ` Ismael Olea
  2002-07-03  4:07         ` Ismael Olea
@ 2002-12-20 19:23         ` Tim Waugh
  2002-07-03  4:59           ` Tim Waugh
  1 sibling, 1 reply; 38+ messages in thread
From: Tim Waugh @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Ismael Olea; +Cc: docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

On Wed, Jul 03, 2002 at 02:23:30AM +0200, Ismael Olea wrote:

> What kind of risk is it? :-??

Not as bad a using a stylesheet from an untrusted source, but similar
in kind.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23             ` Tim Waugh
  2002-07-03 14:52               ` Tim Waugh
@ 2002-12-20 19:23               ` Éric Bischoff
  2002-07-03 21:16                 ` Éric Bischoff
  2002-12-20 19:23                 ` Tim Waugh
  1 sibling, 2 replies; 38+ messages in thread
From: Éric Bischoff @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Tim Waugh, Peter Toft; +Cc: docbook-tools-discuss

On Wednesday 03 July 2002 23:52, Tim Waugh wrote:
> On Wed, Jul 03, 2002 at 10:50:29PM +0200, Peter Toft wrote:
> > Assume that I have a set of these variables that I want
> > to change - some could be common, some HTML-specific
> > others print-specific. I suppose that there is a way
> > that I could have a local "stylesheet" where I set e.g.
> >   %use-id-as-filename% to t
> >   %stylesheet% "/mystylesheet.css"
> >   %paper-type% "A4"
> > Is this possible - how - can it be be done?
>
> Take a look at the docbook-utils.dsl file from the docbook-utils
> tarball.  This is what you're after I think.  There is a more
> complicated one in the Red Hat Linux docbook-utils RPM, too.

The problem with this file is:
- that it is shared among all users
- that you need root access to modify it

But I think that someone can simply achieve what we are speaking about by 
copying this file locally in his/her home directory, changing the desired 
options, and specifying on the command line that this file has to be used 
with the -d option.

Of course, jw and others could try such a local $HOME/.docbook-utils.dsl file 
without the user having to say that it should be used.

-- 
Éric Bischoff

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23                 ` Tim Waugh
  2002-07-03 23:33                   ` Tim Waugh
@ 2002-12-20 19:23                   ` Éric Bischoff
  2002-07-04  2:51                     ` Éric Bischoff
  1 sibling, 1 reply; 38+ messages in thread
From: Éric Bischoff @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Tim Waugh; +Cc: Peter Toft, docbook-tools-discuss

On Thursday 04 July 2002 08:33, Tim Waugh wrote:
> > The problem with the docbook-utils.dsl file is:
> > - that it is shared among all users
> > - that you need root access to modify it
> >
> > But I think that someone can simply achieve what we are speaking about by
> > copying this file locally in his/her home directory, changing the desired
> > options, and specifying on the command line that this file has to be used
> > with the -d option.
>
> Indeed, that's what I meant.

I guessed so, I just tried to answer in advance to objections that could be 
made to you ;-)

> > Of course, jw and others could try such a local
> > $HOME/.docbook-utils.dsl file without the user having to say that it
> > should be used.
>
> That would be a good idea, yes.

... and an old one too, we just never found the time to implement it.

It also has the little complication that "jw" is not docbook-specific. "jw" 
could be used with TEI for example, so that local file name should depend on 
the DTD that is being used.

-- 
Éric Bischoff

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23     ` Tim Waugh
  2002-07-01  1:13       ` Tim Waugh
@ 2002-12-20 19:23       ` Ismael Olea
  2002-07-03  4:07         ` Ismael Olea
  2002-12-20 19:23         ` Tim Waugh
  1 sibling, 2 replies; 38+ messages in thread
From: Ismael Olea @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Tim Waugh; +Cc: docbook-tools-discuss

El lun, 01-07-2002 a las 10:13, Tim Waugh escribió:
> On Mon, Jul 01, 2002 at 09:50:02AM +0200, Éric Bischoff wrote:
> 
> > On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> > > The default value for %use-id-as-filename% is false.  Turn it back on
> > > if you like, in a custom stylesheet.
> > 
> > Shouldn't we turn it on by default in the default stylesheet?
> 
> No---doing so is a security risk.  We've been through this.

What kind of risk is it? :-??

-- 
	A.Ismael Olea González

	mailto:ismael@olea.org
	http://www.olea.org

	El mundo debe empezar a tener miedo a un planeta OLEA

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23         ` Tim Waugh
  2002-07-02 15:17           ` Tim Waugh
@ 2002-12-20 19:23           ` Peter Toft
  2002-07-03 13:50             ` Peter Toft
                               ` (2 more replies)
  1 sibling, 3 replies; 38+ messages in thread
From: Peter Toft @ 2002-12-20 19:23 UTC (permalink / raw)
  To: docbook-tools-discuss

On Tue, 2 Jul 2002, Tim Waugh wrote:

> On Tue, Jul 02, 2002 at 10:47:57PM +0200, Peter Toft wrote:
> 
> > Acknowledged! 
> > What is the simplest way to set the 
> > %use-id-as-filename% to true then? I do not know how to 
> > make a custom stylesheet (yet).
> 
> Other than a custom stylesheet, use '-V %use-id-as-filename%'.  The -V
> option was added to docbook-utils in 0.6.10. (It just gets passed
> through to openjade.)
> 
> Tim.

While we are at it....

Assume that I have a set of these variables that I want 
to change - some could be common, some HTML-specific 
others print-specific. I suppose that there is a way 
that I could have a local "stylesheet" where I set e.g.
  %use-id-as-filename% to t
  %stylesheet% "/mystylesheet.css"
  %paper-type% "A4"
Is this possible - how - can it be be done?

I guess that you understand that I prefer to add these
local options to a setup-file rather than the call to 
the jw/openjade/jade/docbook2XXXX.

:-))

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

Først ignorerer de os
Så gør de nar af os
Så bekæmper de os
Og så vinder vi

Ben Kingsley i "Gandhi"


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23       ` Peter Toft
  2002-07-02 13:48         ` Peter Toft
  2002-12-20 19:23         ` Hugo van der Kooij
@ 2002-12-20 19:23         ` Tim Waugh
  2002-07-02 15:17           ` Tim Waugh
  2002-12-20 19:23           ` Peter Toft
  2 siblings, 2 replies; 38+ messages in thread
From: Tim Waugh @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Peter Toft; +Cc: Norman Walsh, docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

On Tue, Jul 02, 2002 at 10:47:57PM +0200, Peter Toft wrote:

> Acknowledged! 
> What is the simplest way to set the 
> %use-id-as-filename% to true then? I do not know how to 
> make a custom stylesheet (yet).

Other than a custom stylesheet, use '-V %use-id-as-filename%'.  The -V
option was added to docbook-utils in 0.6.10. (It just gets passed
through to openjade.)

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23           ` Peter Toft
  2002-07-03 13:50             ` Peter Toft
  2002-12-20 19:23             ` Tim Waugh
@ 2002-12-20 19:23             ` Hugo van der Kooij
  2002-07-03 14:04               ` Hugo van der Kooij
  2 siblings, 1 reply; 38+ messages in thread
From: Hugo van der Kooij @ 2002-12-20 19:23 UTC (permalink / raw)
  To: docbook-tools-discuss

On Wed, 3 Jul 2002, Peter Toft wrote:

> On Tue, 2 Jul 2002, Tim Waugh wrote:
> 
> > On Tue, Jul 02, 2002 at 10:47:57PM +0200, Peter Toft wrote:
> > 
> > > Acknowledged! 
> > > What is the simplest way to set the 
> > > %use-id-as-filename% to true then? I do not know how to 
> > > make a custom stylesheet (yet).
> > 
> > Other than a custom stylesheet, use '-V %use-id-as-filename%'.  The -V
> > option was added to docbook-utils in 0.6.10. (It just gets passed
> > through to openjade.)
> > 
> > Tim.
> 
> While we are at it....
> 
> Assume that I have a set of these variables that I want 
> to change - some could be common, some HTML-specific 
> others print-specific. I suppose that there is a way 
> that I could have a local "stylesheet" where I set e.g.
>   %use-id-as-filename% to t
>   %stylesheet% "/mystylesheet.css"
>   %paper-type% "A4"
> Is this possible - how - can it be be done?

I guess you like to customize your output a bit to match your site as 
well. All of this can be done.

I actually described that paces it took me to get things going. And I use 
it to bend the html output a lot to fit into different sites.
Just compare these two links created from the same SGML DocBook source:
http://hvdkooij.xs4all.nl/docs/Nessus-FAQ.html
http://www.nessus.org/doc/faq.html

The steps I took are written down on:
http://hvdkooij.xs4all.nl/docs-docbook.cms

I hope that helps.

Hugo.

-- 
All email send to me is bound to the rules described on my homepage.
    hvdkooij@vanderkooij.org		http://hvdkooij.xs4all.nl/
	    Don't meddle in the affairs of sysadmins,
	    for they are subtle and quick to anger.

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23 ` Tim Waugh
  2002-06-30 14:02   ` Tim Waugh
@ 2002-12-20 19:23   ` Éric Bischoff
  2002-07-01  0:49     ` Éric Bischoff
                       ` (2 more replies)
  2002-12-20 19:23   ` Peter Toft
  2 siblings, 3 replies; 38+ messages in thread
From: Éric Bischoff @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Tim Waugh, Peter Toft; +Cc: docbook-tools-discuss

On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> The default value for %use-id-as-filename% is false.  Turn it back on
> if you like, in a custom stylesheet.

Shouldn't we turn it on by default in the default stylesheet?

-- 
Éric Bischoff

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
@ 2002-12-20 19:23 Peter Toft
  2002-06-30 13:21 ` Peter Toft
  2002-12-20 19:23 ` Tim Waugh
  0 siblings, 2 replies; 38+ messages in thread
From: Peter Toft @ 2002-12-20 19:23 UTC (permalink / raw)
  To: docbook-tools-discuss

I try to build from DocBook/SGML 3.1-sources on Red Hat 
7.3

1) When I go for HTML-output with Red Hat 6.2 or 7.2 
   my HTML-files would be named after the tags 
   "TAG-NAME" I added to my sections: 
   e.g. <sectN id="TAG-NAME">
   Now with RH 7.3 all of my outputfile from running
   docbook2html are named x1346.html and alike - not
   install.html, introduction.html.

2) When I try to make PDF-output I need to run 
   jade to give input to the subsequent 
   index-collection 
   ( perl ./collateindex.pl -g -o stikord.sgml tempdir/HTML.index)
   I get lots of errors now with Red Hat 7.3 when I run
   jade -t sgml -ihtml \
   -d /usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl#print \
   -V html-index -V nochunks bog.sgml > ged.html 


jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:422:19:E: 
reference to undefined variable "%admon-font-family%"
jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:416:7:E: 
reference to undefined variable "HSIZE"
jade:/usr/share/sgml/docbook/utils-0.6.9/docbook-utils.dsl:478:2:E: 
too many arguments for function
jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbhtml.dsl:326:17:E: 
invalid value for "attributes" characteristic

The last error is repeated a zillion times :))

I am not a world champion in the style-sheets - so I 
could use some help along the way here.

FYI - my Docbook-header looks something like
<!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" []>

And I start my books with
<book id="index" lang="da">


Any help is highly appeciated.

FYI; I run http://www.sslug.dk/linuxbog - with 13 books
in Danish with more that 1400 pages. All in 
SGML/DocBook :)))))))

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

The number of UNIX installations has grown to 10, with more expected
 - The Unix Programmer's Manual, 2nd Edition, June 1972 





^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23               ` Éric Bischoff
  2002-07-03 21:16                 ` Éric Bischoff
@ 2002-12-20 19:23                 ` Tim Waugh
  2002-07-03 23:33                   ` Tim Waugh
  2002-12-20 19:23                   ` Éric Bischoff
  1 sibling, 2 replies; 38+ messages in thread
From: Tim Waugh @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Éric Bischoff; +Cc: Peter Toft, docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

On Thu, Jul 04, 2002 at 06:16:26AM +0200, Éric Bischoff wrote:

> > Take a look at the docbook-utils.dsl file from the docbook-utils
> > tarball.  This is what you're after I think.  There is a more
> > complicated one in the Red Hat Linux docbook-utils RPM, too.
> 
> The problem with this file is:
> - that it is shared among all users
> - that you need root access to modify it
> 
> But I think that someone can simply achieve what we are speaking about by 
> copying this file locally in his/her home directory, changing the desired 
> options, and specifying on the command line that this file has to be used 
> with the -d option.

Indeed, that's what I meant.

> Of course, jw and others could try such a local
> $HOME/.docbook-utils.dsl file without the user having to say that it
> should be used.

That would be a good idea, yes.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23   ` Éric Bischoff
  2002-07-01  0:49     ` Éric Bischoff
  2002-12-20 19:23     ` Tim Waugh
@ 2002-12-20 19:23     ` Eric S. Raymond
  2002-07-03  0:19       ` Eric S. Raymond
  2 siblings, 1 reply; 38+ messages in thread
From: Eric S. Raymond @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Éric Bischoff; +Cc: Tim Waugh, Peter Toft, docbook-tools-discuss

Éric Bischoff <e.bischoff@noos.fr>:
> On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> > The default value for %use-id-as-filename% is false.  Turn it back on
> > if you like, in a custom stylesheet.
> 
> Shouldn't we turn it on by default in the default stylesheet?

I think you should.  I rely on this behavior.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23     ` Norman Walsh
  2002-07-02  3:55       ` Norman Walsh
@ 2002-12-20 19:23       ` Peter Toft
  2002-07-02 13:48         ` Peter Toft
                           ` (2 more replies)
  1 sibling, 3 replies; 38+ messages in thread
From: Peter Toft @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Norman Walsh; +Cc: Tim Waugh, docbook-tools-discuss

On Tue, 2 Jul 2002, Norman Walsh wrote:

> / Peter Toft <pto@sslug.dk> was heard to say:
> |> The default value for %use-id-as-filename% is false.  Turn it back on
> |> if you like, in a custom stylesheet.
> |
> | Well - or directly in the 
> | /usr/share/sgml/docbook/dsssl-stylesheets-1.76/html/dbparam.dsl
> | (I can't really see why this is so bad.)
> 
> Because when you update to 1.77, your modification will get blown away.

Acknowledged! 
What is the simplest way to set the 
%use-id-as-filename% to true then? I do not know how to 
make a custom stylesheet (yet).

> 
> | Actually - I just tried it and found that I still find 
> | all my html-files named x1182.html etc.
> 
> Are you sure your chunks have IDs. The IDs have to be on the chunk
> elements (article, chapter, section, etc.) not the titles.

Sure thing - all <chapter> <sect1> <sect2> etc. has 
id="ID" added. e.g.  <chapter id="introduction">

Best

-- 
Peter Toft, Ph.D. [pto@sslug.dk] http://www.sslug.dk/~pto

"Unix? What's that? Is that like Linux?"

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23           ` Peter Toft
  2002-07-03 13:50             ` Peter Toft
@ 2002-12-20 19:23             ` Tim Waugh
  2002-07-03 14:52               ` Tim Waugh
  2002-12-20 19:23               ` Éric Bischoff
  2002-12-20 19:23             ` Hugo van der Kooij
  2 siblings, 2 replies; 38+ messages in thread
From: Tim Waugh @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Peter Toft; +Cc: docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

On Wed, Jul 03, 2002 at 10:50:29PM +0200, Peter Toft wrote:

> Assume that I have a set of these variables that I want 
> to change - some could be common, some HTML-specific 
> others print-specific. I suppose that there is a way 
> that I could have a local "stylesheet" where I set e.g.
>   %use-id-as-filename% to t
>   %stylesheet% "/mystylesheet.css"
>   %paper-type% "A4"
> Is this possible - how - can it be be done?

Take a look at the docbook-utils.dsl file from the docbook-utils
tarball.  This is what you're after I think.  There is a more
complicated one in the Red Hat Linux docbook-utils RPM, too.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: Any luck with DocBook/SGML 3.1 with Red Hat 7.3?
  2002-12-20 19:23   ` Éric Bischoff
  2002-07-01  0:49     ` Éric Bischoff
@ 2002-12-20 19:23     ` Tim Waugh
  2002-07-01  1:13       ` Tim Waugh
  2002-12-20 19:23       ` Ismael Olea
  2002-12-20 19:23     ` Eric S. Raymond
  2 siblings, 2 replies; 38+ messages in thread
From: Tim Waugh @ 2002-12-20 19:23 UTC (permalink / raw)
  To: Éric Bischoff; +Cc: Peter Toft, docbook-tools-discuss

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

On Mon, Jul 01, 2002 at 09:50:02AM +0200, Éric Bischoff wrote:

> On Sunday 30 June 2002 23:01, Tim Waugh wrote:
> > The default value for %use-id-as-filename% is false.  Turn it back on
> > if you like, in a custom stylesheet.
> 
> Shouldn't we turn it on by default in the default stylesheet?

No---doing so is a security risk.  We've been through this.

Tim.
*/

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2002-07-04  9:51 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-20 19:23 Any luck with DocBook/SGML 3.1 with Red Hat 7.3? Peter Toft
2002-06-30 13:21 ` Peter Toft
2002-12-20 19:23 ` Tim Waugh
2002-06-30 14:02   ` Tim Waugh
2002-12-20 19:23   ` Éric Bischoff
2002-07-01  0:49     ` Éric Bischoff
2002-12-20 19:23     ` Tim Waugh
2002-07-01  1:13       ` Tim Waugh
2002-12-20 19:23       ` Ismael Olea
2002-07-03  4:07         ` Ismael Olea
2002-12-20 19:23         ` Tim Waugh
2002-07-03  4:59           ` Tim Waugh
2002-12-20 19:23     ` Eric S. Raymond
2002-07-03  0:19       ` Eric S. Raymond
2002-12-20 19:23   ` Peter Toft
2002-07-01 14:22     ` Peter Toft
2002-12-20 19:23     ` Norman Walsh
2002-07-02  3:55       ` Norman Walsh
2002-12-20 19:23       ` Peter Toft
2002-07-02 13:48         ` Peter Toft
2002-12-20 19:23         ` Hugo van der Kooij
2002-07-03 13:59           ` Hugo van der Kooij
2002-12-20 19:23           ` Peter Toft
2002-07-03 14:01             ` Peter Toft
2002-12-20 19:23         ` Tim Waugh
2002-07-02 15:17           ` Tim Waugh
2002-12-20 19:23           ` Peter Toft
2002-07-03 13:50             ` Peter Toft
2002-12-20 19:23             ` Tim Waugh
2002-07-03 14:52               ` Tim Waugh
2002-12-20 19:23               ` Éric Bischoff
2002-07-03 21:16                 ` Éric Bischoff
2002-12-20 19:23                 ` Tim Waugh
2002-07-03 23:33                   ` Tim Waugh
2002-12-20 19:23                   ` Éric Bischoff
2002-07-04  2:51                     ` Éric Bischoff
2002-12-20 19:23             ` Hugo van der Kooij
2002-07-03 14:04               ` Hugo van der Kooij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).