discuss: Re: sgml question
Subject:
Re: sgml question
From:
Tabatha Marshall ####@####.####
Date:
14 Jul 2003 06:20:14 -0000
Message-Id: <1058163845.22304.24.camel@mysticchild>
On Sun, 2003-07-13 at 07:11, David Horton wrote:
> Howard Shane wrote:
> > ...but when I process my doc with docbook2html I get only a text
> > placeholder like 'note' instead of the neat little pointing-hand gif
> > that shows up in everybody else's published doc. My source docs process
> > without errors and the syntax I use with these tags is identical to
> > other SGML source files from CVS I've examined. What am I missing here?
> >
> I don't think you're missing anything in your sources. The reason you
> are not getting graphics probably has to do with the transformation
> process. I have not used docbook2html, but I'm assuming it uses a
> stylesheet similar to DocbookXML to HTML transforms. With XML there is
> a way to switch graphics on or off, specify the path to graphics, et
> cetera. This is done by setting parameters in the XSL stylesheet. The
> XSL parameters are:
>
> <xsl:param name="admon.graphics" select="0"/>
> <xsl:param name="admon.graphics.path">images/</xsl:param>
> <xsl:param name="graphic.default.extension" select="'.gif'"/>
>
> By changing the '0' to a '1' in the line with 'name="admon.graphics"' it
> will switch on graphics for warnings, tips & notes.
>
> I'm not very familiar with SGML, but I would assume that if you search
> the DSSSL stylesheets for similarly named parameters that you would find
> the way to turn on graphics.
If you're using the ldp.dsl, you need to change:
(define %admon-graphics%
;; Use graphics in admonitions?
#f)
Replace the "f" to "t". It's the same with docbook.dsl, so if you're
processing with Openjade, that will make sure they show up.
I also found in the ldp.dsl:
(define %admon-graphics-path%
;; use graphics in admonitions, set their
"../images/")
(define %admon-graphics%
#t)
...and...
(define %graphic-extensions%
;; graphic extensions allowed
'("gif" "png" "jpg" "jpeg" "tif" "tiff" "eps" "epsf" ))
(define %graphic-default-extension%
"gif")
Hope that helps, whichever stylesheet and processing tool you are using!
Tab
--
Tabatha Marshall
Web: www.merlinmonroe.com
Linux Documentation Project Review Coordinator (http://www.tldp.org)
Linux Counter Area Manager US:wa (http://counter.li.org)