[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] simg:getWidth just returns $nominal.image.width
On Mon, Jul 21, 2003 at 06:40:57PM +0200, Sebastian Fey wrote: > hi, > > i tried to use the variable $intrinsicwidth in graphics.xsl, but > simg:getWidth just fills it with the value of its second param > $nominal.image.width. > and this is not because the xsl:otherwise condition is used, due to debug i > placed a xsl:message directly into the first xsl:when. > the img-files are found and $filename is filled correctly. > > > <xsl:variable name="intrinsicwidth"> > <!-- This funny compound test works around a bug in XSLTC --> > <xsl:choose> > <xsl:when test="$use.extensions != 0 and $graphicsize.extension != 0"> > <xsl:choose> > <xsl:when test="function-available('simg:getWidth')"> > <xsl:value-of > select="simg:getWidth(simg:new($filename),$nominal.image.width)"/> > ... > <xsl:otherwise> > <xsl:value-of select="$nominal.image.width"/> > </xsl:otherwise> > ... > > any pointers? I presume you have fixed your earlier problem with the CLASSPATH not finding the extensions file, so that the simg:getWidth function is actually being used, as your debug message indicates. It should work. What kind of graphic format are you using? It is possible that getWidth doesn't handle all graphics file formats. -- 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] | [List Home]