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


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

AW: [docbook] DB-HTML how to scale down too wide imgages (without attr in imagedata)



>-----Ursprungliche Nachricht-----
>Von: Bob Stayton [mailto:bobs@sco.com]
>Gesendet: Mittwoch, 16. Juli 2003 17:32
>An: Sebastian Fey
>Cc: docbook@lists.oasis-open.org
>Betreff: Re: [docbook] DB-HTML how to scale down too wide imgages
>(without attr in imagedata
>
>On Wed, Jul 16, 2003 at 11:10:17AM +0200, Sebastian Fey wrote:
>> is there a way like set a param to "800px" and each image surpassing this
>> width will be scaled down?
>
>There is no 'maximum.image.width' parameter, but it might
>make a nice feature request.  8^)
>

y, nice :)
should be an easy template.
but if figures with informaltables inside are covered ... no idea :)

>> or, if not, is a template possible / existing in the sheets that returns
the
>> width of an image?
>
>Yes, if you are using Saxon or Xalan, Norm has written some
>XSL extension functions that attempt to extract the width
>information from an image file.  In html/graphics.xsl, you will
>see something like this:
>
[snip]
>
>The simg:getWidth is the Saxon extension, and the
>ximg:getWidth is the Xalan extension.
>You could use those in a customization to adjust
>the width.  Unfortunately, there is no such
>extension for xsltproc yet.

nice :)

but we are using xsltproc! :(

first we used saxon, but it didnt work with chunking (found error in
chunk-code.xsl)
is this a known bug?

i installed xalan now, but:

file: //gentext.xsl; Line 153; Column 61; XSLT-Error
(javax.xml.transform.TransformerException): Variable accessed before it is
bound!

<xsl:template match="*" mode="object.xref.template">
  <xsl:param name="purpose"/>
  <xsl:param name="xrefstyle"/>
  <xsl:param name="referrer"/><!--may i set a default value here?-->

  ...

        <xsl:with-param name="purpose" select="$purpose"/>
        <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
        <xsl:with-param name="referrer" select="$referrer"/> <!--LINE 153-->
      </xsl:call-template>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

thx



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-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]