This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: DOCBOOK: First attempt to make a driver file
- From: Steffen Maier <Steffen dot Maier at studserv dot uni-stuttgart dot de>
- To: Gre7g Luterman <gre7g at wolfhome dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 25 Mar 2002 11:49:04 +0100
- Subject: DOCBOOK-APPS: Re: DOCBOOK: First attempt to make a driver file
- References: <0GTI00DKO33DMD@eListX.com>
[ content belongs to docbook-apps ]
On Sun, Mar 24, 2002 at 05:23:47PM -0600, Gre7g Luterman wrote:
> Now I try it again with the following driver file I saved as
> test.dsl:
>
> <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style
> Sheet//EN" [
> <!ENTITY MyDocBook SYSTEM
> "D:\ProgramFiles\Jade\DocBook\dsssl\html\docbook.dsl" CDATA DSSSL> ]>
> <style-sheet>
> <style-specification>
> <style-specification-body>
> <!-- will put in style overrides here if I can get it to work -->
> </style-specification-body>
> </style-specification>
> <external-specification id="MyDocBookID" document="MyDocBook">
> </style-sheet>
>
> And I type:
>
> D:\> jade -t sgml -d test.dsl test.sgm
>
> And this time I get just console output. What the heck? If I'm
> reading this correctly, my essentially empty driver file should just
> tell jade to read in docbook.dsl, but yet it does something different
> than if I specify docbook.dsl.
>
> What am I missing? How do I fix this?
Looking at
http://www.docbook.org/tdg/en/html/ch04.html#id2836978 [4.3.8 Customizing
the Stylesheets]
and
http://www.dpawson.co.uk/docbook/dsssl/dssslgeneral.html#custom
I guess there's missing the use attribute in the start tag of the element
named style-specification. Give the following a try:
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY MyDocBook SYSTEM
"D:\ProgramFiles\Jade\DocBook\dsssl\html\docbook.dsl" CDATA DSSSL> ]>
<style-sheet>
<style-specification use="MyDocBookID">
<style-specification-body>
<!-- will put in style overrides here if I can get it to work -->
</style-specification-body>
</style-specification>
<external-specification id="MyDocBookID" document="MyDocBook">
</style-sheet>
HTH,
Steffen.
--
http://w3studi.informatik.uni-stuttgart.de/~maiersn/
mailto:Steffen.Maier@studserv.uni-stuttgart.de