docbook-apps

  • 1.  Different params for different outputs .....

    Posted 02-16-2009 12:25

    Team,

    I have a DocBook source file that includes a reference to a png file for
    a diagram.

    When I generate a pdf file from it (via FO using FOP) I need to specify
    a scaling.
    ie
    <imagedata fileref="./Diagrams/Flowchart.png" scale="35" />

    When I generate an html file I don't.
    ie
    <imagedata fileref="./Diagrams/Flowchart.png" />

    What's my best way to handle this ?
    Of course I don't want to have two separate DocBook source files for the
    two output formats.


    Regards,
    Richard.




    Richard Kerry
    Colledia Control Engineer
    Siemens IT Solutions and Services Ltd
    Room 457 Drama Building, BBC Television Centre, Wood Lane, London, W12
    7RJ
    T: +44 (0)20 82259063 F: +44 (0)20 8576 8182 M: +44 (0)7921 244993
    Email: richard.kerry@siemens.com
    <blocked::mailto:richard.kerry@siemens.com>
    Website: www.siemens.co.uk/it-solutions
    <blocked::outbind://47/www.siemens.co.uk/it-solutions>

    This e-mail contains confidential information and is for the exclusive
    use of the addressee/s. If you are not the addressee, then any
    distribution, copying or use of this e-mail is prohibited. If received
    in error, please advise the sender and delete it immediately. We accept
    no liability for any loss or damage suffered by any person arising from
    use of this e-mail.

    Siemens IT Solutions and Services Limited
    Registered No: 1203466 England
    Registered Office: Faraday House, Sir William Siemens Square, Frimley,
    Camberley, GU16 8QD





  • 2.  Re: [docbook-apps] Different params for different outputs .....

    Posted 02-16-2009 13:04
    Hi Richard,

    Overwriting the 'ignore.image.scaling' parameter in your customization
    layer for the html output should do the job. If set, the 'scale' and
    'scalefit' parameters are ignored.

    Cheers, Tobias

    On Mon, Feb 16, 2009 at 1:25 PM, Kerry, Richard
    <richard.kerry@siemens.com> wrote:
    >
    > Team,
    >
    > I have a DocBook source file that includes a reference to a png file for a
    > diagram.
    >
    > When I generate a pdf file from it (via FO using FOP) I need to specify a
    > scaling.
    > ie
    > <imagedata fileref="./Diagrams/Flowchart.png" scale="35" />
    >
    > When I generate an html file I don't.
    > ie
    > <imagedata fileref="./Diagrams/Flowchart.png" />
    >
    > What's my best way to handle this ?
    > Of course I don't want to have two separate DocBook source files for the two
    > output formats.
    >
    >
    > Regards,
    > Richard.
    >
    >
    >
    >
    > Richard Kerry
    > Colledia Control Engineer
    > Siemens IT Solutions and Services Ltd
    > Room 457 Drama Building, BBC Television Centre, Wood Lane, London, W12 7RJ
    > T: +44 (0)20 82259063 F: +44 (0)20 8576 8182 M: +44 (0)7921 244993
    > Email: richard.kerry@siemens.com
    > Website: www.siemens.co.uk/it-solutions
    >
    > This e-mail contains confidential information and is for the exclusive use
    > of the addressee/s. If you are not the addressee, then any distribution,
    > copying or use of this e-mail is prohibited. If received in error, please
    > advise the sender and delete it immediately. We accept no liability for any
    > loss or damage suffered by any person arising from use of this e-mail.
    >
    > Siemens IT Solutions and Services Limited
    > Registered No: 1203466 England
    > Registered Office: Faraday House, Sir William Siemens Square, Frimley,
    > Camberley, GU16 8QD
    >
    >



  • 3.  Re: [docbook-apps] Different params for different outputs .....

    Posted 02-16-2009 13:19
      |   view attached
    Hi,

    that should do the trick:
    http://docbook.sourceforge.net/release/xsl/current/doc/html/ignore.image.scaling.html

    Camille.

    Kerry, Richard wrote:
    >
    > Team,
    >
    > I have a DocBook source file that includes a reference to a png file
    > for a diagram.
    >
    > When I generate a pdf file from it (via FO using FOP) I need to
    > specify a scaling.
    > ie
    > <imagedata fileref="./Diagrams/Flowchart.png" scale="35"></imagedata>
    >
    > When I generate an html file I don't.
    > ie
    > <imagedata fileref="./Diagrams/Flowchart.png"></imagedata>
    >
    > What's my best way to handle this ?
    > Of course I don't want to have two separate DocBook source files for
    > the two output formats.
    >
    >
    > Regards,
    > Richard.
    >
    >
    >
    >
    > *Richard Kerry**
    > *Colledia Control Engineer*
    > *Siemens IT Solutions and Services Ltd**/
    > /Room 457 Drama Building, BBC Television Centre, Wood Lane, London,
    > W12 7RJ*/
    > /**T:* +44 (0)20 822*59063* *F:* +44 (0)20 8576 8182 *M:* +44 (0)7921
    > 244993
    > *Email:* richard.kerry@siemens.com
    > <blocked::mailto:richard.kerry@siemens.com>
    > *Website: **www.siemens.co.uk/it-solutions
    > <blocked::outbind: 47/www.siemens.co.uk/it-solutions="">*
    >
    > This e-mail contains confidential information and is for the exclusive
    > use of the addressee/s. If you are not the addressee, then any
    > distribution, copying or use of this e-mail is prohibited. If received
    > in error, please advise the sender and delete it immediately. We
    > accept no liability for any loss or damage suffered by any person
    > arising from use of this e-mail.
    >
    > *Siemens IT Solutions and Services Limited**
    > *Registered No: 1203466 England
    > Registered Office: Faraday House, Sir William Siemens Square, Frimley,
    > Camberley, GU16 8QD
    >
    >

    </blocked::outbind:></blocked::mailto:richard.kerry@siemens.com>

    Attachment(s)

    vcf
    camille.vcf   320 B 1 version