This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] simg:getWidth just returns $nominal.image.width


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?

thx
-seb



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]