OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Problem with default graphic extension


On Fri, Jan 10, 2003 at 02:16:31PM +0000, Lisa Carey wrote:
> Hi folks,
> 
> I want to use different graphic formats for print and html output, and was hoping that I could deal with this in the relevant stylesheets using the default.graphic.extension parameter, as in the following example:
> 
> <xsl:param name="graphic.default.extension" select="gif"/>
> 
> In the document itself, the imagedata's fileref has no extension specified, as below, and I thought that the stylesheet would add the default.
> 
> <mediaobject>
> 	<imageobject>
> 		<imagedata fileref="images/testing"/>
> 	</imageobject>
> </mediaobject>
>   
> 
> However, I've looked at the output HTML source and it doesn't seem to be adding the extension at all.
> 
> <div class="mediaobject"><img src="images/testing"></div>
> 
> Is there something I'm doing wrong?  I'm using Xalan and the 1.58.1 stylesheets.

You need to put the gif in single quotes within the double
quotes:

<xsl:param name="graphic.default.extension" select="'gif'"/>

Otherwise the stylesheet thinks you are trying to select
the element named gif instead of a string. It's a common mistake.  

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC