discuss: Re: sgml question


Previous by date: 13 Jul 2003 14:04:24 -0000 sgml question, Howard Shane
Next by date: 13 Jul 2003 14:04:24 -0000 Re: sgml question, Tabatha Marshall
Previous in thread: 13 Jul 2003 14:04:24 -0000 sgml question, Howard Shane
Next in thread: 13 Jul 2003 14:04:24 -0000 Re: sgml question, Tabatha Marshall

Subject: Re: sgml question
From: David Horton ####@####.####
Date: 13 Jul 2003 14:04:24 -0000
Message-Id: <3F11687C.7050603@megsinet.net>

Howard Shane wrote:
> Hi all,
> I am rewriting some of my docs and noticed that just like XML, SGML 
> allows tags like the following:
> 
> <note></note>
> <tip></tip>
> <warning></warning>
> 
> ...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?
> 
> Thanks for any answers to this noob-esque question.
> 
> hs
> 

Howard,

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.

Hope it helps.

Dave

P.S. There is also a TLDP list for Docbook specific questions at 
####@####.####


Previous by date: 13 Jul 2003 14:04:24 -0000 sgml question, Howard Shane
Next by date: 13 Jul 2003 14:04:24 -0000 Re: sgml question, Tabatha Marshall
Previous in thread: 13 Jul 2003 14:04:24 -0000 sgml question, Howard Shane
Next in thread: 13 Jul 2003 14:04:24 -0000 Re: sgml question, Tabatha Marshall


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