discuss: Re: sgml question


Previous by date: 14 Jul 2003 13:34:44 -0000 Re: sgml question, Tabatha Marshall
Next by date: 14 Jul 2003 13:34:44 -0000 proposing a howto, Ariel Mella
Previous in thread: 14 Jul 2003 13:34:44 -0000 Re: sgml question, Tabatha Marshall
Next in thread:

Subject: Re: sgml question
From: Howard Shane ####@####.####
Date: 14 Jul 2003 13:34:44 -0000
Message-Id: <3F12B176.50308@austin.rr.com>

Thanks Tab, and sorry to everybody for spammin' the list, I forgot there 
was a separate mailing list for docbook questions *cancels morning 
schedule to engage in earnest self-flagellation*

Tabatha Marshall wrote:
> 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
> 


Previous by date: 14 Jul 2003 13:34:44 -0000 Re: sgml question, Tabatha Marshall
Next by date: 14 Jul 2003 13:34:44 -0000 proposing a howto, Ariel Mella
Previous in thread: 14 Jul 2003 13:34:44 -0000 Re: sgml question, Tabatha Marshall
Next in thread:


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