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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: 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
>> 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:
>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
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

<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-->


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