docbook-apps

  • 1.  Wrong PDF output: Custom button-format is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is missing.

    Posted 10-04-2012 10:16
    Hello,

    We are currently trying to make our user manual a bit more flexible
    regarding its maintenance. In this process, we replaced buttons that have
    previously been inserted as screenshots by a new format in Oxygen/
    Docbook, basically imitating the original buttons. The new buttons have a
    light-grey background, use a purple font, have a purple frame and are
    based on a custom style in our Style sheet.
    Oxygen and the HTML transformation display the buttons correctly, but the
    the purple frame disappears when we transform the document to PDF.


    I have to admit that I´m not the master of code, but my responsible
    co-worker is currently out of office. The code in the XSL stylesheet for
    the PDF transformation looks like this:

    <xsl:template match="d:button">
    <fo:inline background-color="#D3D3D3" color="#4B0082"
    font-family="Courier New" font-weight="bold" text-align="start" >
    <xsl:apply-templates/>
    </fo:inline>
    </xsl:template>

    I can´t see the frame, but it should be there. Did we forget something?
    Maybe this is a mistake simply resulting from the missing link between the
    various output forms (Editor vs. Html vs. PDF)

    Can anybody help us fixing the problem?

    Thanks.


    Greetings,

    Daniel Keyes

    =======================================================
    Disclaimer
    The information contained in this e - mail and any attachments
    ( together the "message") is intended for the addressee only and may
    contain confidential and/or privileged information. If you have received
    the message by mistake please delete it and notify the sender and do
    not copy or distribute it or disclose its contents to anyone.

    FINARIS Financial Software Partner GmbH
    Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
    Registered at Frankfurt/Main, HRB 52873

    Managing Directors:
    Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
    =======================================================


  • 2.  Re: [docbook-apps] Wrong PDF output: Custom button-format is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is missing.

    Posted 10-04-2012 14:00
    Looks like you're most of the way there, but I don't see any properties in
    your fo:inline element to add a border. The rest look okay, and work fine
    in my environment.

    In the line that starts:
    <fo:inline background-color
    add this:
    <fo:inline *border-style="solid"* background-color

    And then you may need to set other properties to get the precise look that
    you want.

    --Aaron DaMommio



    On Thu, Oct 4, 2012 at 5:15 AM, <daniel.keyes@finaris.de> wrote:
    > Hello,
    >
    > We are currently trying to make our user manual a bit more flexible
    > regarding its maintenance. In this process, we replaced buttons that have
    > previously been inserted as screenshots by a new format in Oxygen/
    Docbook,
    > basically imitating the original buttons. The new buttons have a
    light-grey
    > background, use a purple font, have a purple frame and are based on a
    custom
    > style in our Style sheet.
    > Oxygen and the HTML transformation display the buttons correctly, but the
    > the purple frame disappears when we transform the document to PDF.
    >
    >
    > I have to admit that I´m not the master of code, but my responsible
    > co-worker is currently out of office. The code in the XSL stylesheet for
    the
    > PDF transformation looks like this:
    >
    > <xsl:template match="d:button">
    > <fo:inline background-color="#D3D3D3" color="#4B0082"
    > font-family="Courier New" font-weight="bold" text-align="start" >
    > <xsl:apply-templates/>
    > </fo:inline>
    > </xsl:template>
    >
    > I can´t see the frame, but it should be there. Did we forget something?
    > Maybe this is a mistake simply resulting from the missing link between the
    > various output forms (Editor vs. Html vs. PDF)
    >
    > Can anybody help us fixing the problem?
    >
    > Thanks.
    >
    >
    > Greetings,
    >
    > Daniel Keyes
    >
    > =======================================================
    > Disclaimer
    > The information contained in this e - mail and any attachments
    > ( together the "message") is intended for the addressee only and may
    > contain confidential and/or privileged information. If you have received
    > the message by mistake please delete it and notify the sender and do
    > not copy or distribute it or disclose its contents to anyone.
    >
    > FINARIS Financial Software Partner GmbH
    > Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
    > Registered at Frankfurt/Main, HRB 52873
    >
    > Managing Directors:
    > Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
    > =======================================================



    --
    --------------------------------------
    Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    dishes.
    - My blog: http://aarondamommio.blogspot.com
    - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    =======================================



  • 3.  Re: [docbook-apps] Wrong PDF output: Custom button-format is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is missing.

    Posted 10-05-2012 07:56
    Hello Aaron,

    thanks for the help. The border is now solid, but the right margin is
    still missing. I tried finding the error by eliminating the other
    properties, but it didn't work.
    Any other suggestions how I could fix the problem?


    Greetings,
    Daniel Keyes




    From: Aaron DaMommio <aaron@damommio.com>
    To: daniel.keyes@finaris.de,
    Cc: docbook-apps@lists.oasis-open.org
    Date: 04.10.2012 15:59
    Subject: Re: [docbook-apps] Wrong PDF output: Custom button-format
    is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is
    missing.
    Sent by: aarondamommio@gmail.com



    Looks like you're most of the way there, but I don't see any properties in
    your fo:inline element to add a border. The rest look okay, and work fine
    in my environment.

    In the line that starts:
    <fo:inline background-color
    add this:
    <fo:inline border-style="solid" background-color

    And then you may need to set other properties to get the precise look that
    you want.

    --Aaron DaMommio



    On Thu, Oct 4, 2012 at 5:15 AM, <daniel.keyes@finaris.de> wrote:
    > Hello,
    >
    > We are currently trying to make our user manual a bit more flexible
    > regarding its maintenance. In this process, we replaced buttons that
    have
    > previously been inserted as screenshots by a new format in Oxygen/
    Docbook,
    > basically imitating the original buttons. The new buttons have a
    light-grey
    > background, use a purple font, have a purple frame and are based on a
    custom
    > style in our Style sheet.
    > Oxygen and the HTML transformation display the buttons correctly, but
    the
    > the purple frame disappears when we transform the document to PDF.
    >
    >
    > I have to admit that I´m not the master of code, but my responsible
    > co-worker is currently out of office. The code in the XSL stylesheet for
    the
    > PDF transformation looks like this:
    >
    > <xsl:template match="d:button">
    > <fo:inline background-color="#D3D3D3" color="#4B0082"
    > font-family="Courier New" font-weight="bold" text-align="start" >
    > <xsl:apply-templates/>
    > </fo:inline>
    > </xsl:template>
    >
    > I can´t see the frame, but it should be there. Did we forget something?
    > Maybe this is a mistake simply resulting from the missing link between
    the
    > various output forms (Editor vs. Html vs. PDF)
    >
    > Can anybody help us fixing the problem?
    >
    > Thanks.
    >
    >
    > Greetings,
    >
    > Daniel Keyes
    >
    > =======================================================
    > Disclaimer
    > The information contained in this e - mail and any attachments
    > ( together the "message") is intended for the addressee only and may
    > contain confidential and/or privileged information. If you have received
    > the message by mistake please delete it and notify the sender and do
    > not copy or distribute it or disclose its contents to anyone.
    >
    > FINARIS Financial Software Partner GmbH
    > Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
    > Registered at Frankfurt/Main, HRB 52873
    >
    > Managing Directors:
    > Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner
    Märkl
    > =======================================================



    --
    --------------------------------------
    Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    dishes.
    - My blog: http://aarondamommio.blogspot.com
    - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    =======================================


    =======================================================
    Disclaimer
    The information contained in this e - mail and any attachments
    ( together the "message") is intended for the addressee only and may
    contain confidential and/or privileged information. If you have received
    the message by mistake please delete it and notify the sender and do
    not copy or distribute it or disclose its contents to anyone.

    FINARIS Financial Software Partner GmbH
    Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
    Registered at Frankfurt/Main, HRB 52873

    Managing Directors:
    Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
    =======================================================


  • 4.  Re: [docbook-apps] Wrong PDF output: Custom button-format is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is missing.

    Posted 10-05-2012 12:42
    I'm no expert on fo properties, Daniel, but here is a reference to the
    properties available for margins on an inline:
    http://www.schemacentral.com/sc/fo11/ag-fo_common-margin-properties-inline.html

    And I suspect the box model shown on this page will be helpful in
    visualizing things: http://www.w3schools.com/xslfo/xslfo_blocks.asp

    Something else that might be helpful here: What I did to test your
    properties was hack my system so that I could generate pdf directly from fo
    without rebuilding the fo from scratch, and I plan to make a permanent
    change to my system to make it easy to do that when needed. I'm using ant,
    so I just removed the dependencies from the target that processes the fo
    file through, in our case, the XEP formatter.

    You could do something like that, or, if you haven't already, figure out a
    command line for converting fo to PDF ... and that way you can directly
    insert fo properties in a document, build the pdf, and inspect the results
    until you figure out the required set of properties for the look you want.

    --Aaron

    On Fri, Oct 5, 2012 at 2:56 AM, <daniel.keyes@finaris.de> wrote:

    > Hello Aaron,
    >
    > thanks for the help. The border is now solid, but the right margin is
    > still missing. I tried finding the error by eliminating the other
    > properties, but it didn't work.
    > Any other suggestions how I could fix the problem?
    >
    >
    > Greetings,
    > Daniel Keyes
    >
    >
    >
    >
    > From: Aaron DaMommio <aaron@damommio.com>
    > To: daniel.keyes@finaris.de,
    > Cc: docbook-apps@lists.oasis-open.org
    > Date: 04.10.2012 15:59
    > Subject: Re: [docbook-apps] Wrong PDF output: Custom button-format
    > is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is
    > missing.
    > Sent by: aarondamommio@gmail.com
    > ------------------------------
    >
    >
    >
    > Looks like you're most of the way there, but I don't see any properties in
    > your fo:inline element to add a border. The rest look okay, and work fine
    > in my environment.
    >
    > In the line that starts:
    > <fo:inline background-color
    > add this:
    > <fo:inline *border-style="solid"* background-color
    >
    > And then you may need to set other properties to get the precise look that
    > you want.
    >
    > --Aaron DaMommio
    >
    >
    >
    > On Thu, Oct 4, 2012 at 5:15 AM, <*daniel.keyes@finaris.de*<daniel.keyes@finaris.de>>
    > wrote:
    > > Hello,
    > >
    > > We are currently trying to make our user manual a bit more flexible
    > > regarding its maintenance. In this process, we replaced buttons that have
    > > previously been inserted as screenshots by a new format in Oxygen/
    > Docbook,
    > > basically imitating the original buttons. The new buttons have a
    > light-grey
    > > background, use a purple font, have a purple frame and are based on a
    > custom
    > > style in our Style sheet.
    > > Oxygen and the HTML transformation display the buttons correctly, but the
    > > the purple frame disappears when we transform the document to PDF.
    > >
    > >
    > > I have to admit that I´m not the master of code, but my responsible
    > > co-worker is currently out of office. The code in the XSL stylesheet for
    > the
    > > PDF transformation looks like this:
    > >
    > > <xsl:template match="d:button">
    > > <fo:inline background-color="#D3D3D3" color="#4B0082"
    > > font-family="Courier New" font-weight="bold" text-align="start" >
    > > <xsl:apply-templates/>
    > > </fo:inline>
    > > </xsl:template>
    > >
    > > I can´t see the frame, but it should be there. Did we forget something?
    > > Maybe this is a mistake simply resulting from the missing link between
    > the
    > > various output forms (Editor vs. Html vs. PDF)
    > >
    > > Can anybody help us fixing the problem?
    > >
    > > Thanks.
    > >
    > >
    > > Greetings,
    > >
    > > Daniel Keyes
    > >
    > > =======================================================
    > > Disclaimer
    > > The information contained in this e - mail and any attachments
    > > ( together the "message") is intended for the addressee only and may
    > > contain confidential and/or privileged information. If you have received
    > > the message by mistake please delete it and notify the sender and do
    > > not copy or distribute it or disclose its contents to anyone.
    > >
    > > FINARIS Financial Software Partner GmbH
    > > Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
    > > Registered at Frankfurt/Main, HRB 52873
    > >
    > > Managing Directors:
    > > Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner
    > Märkl
    > > =======================================================
    >
    >
    >
    > --
    > --------------------------------------
    > Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    > dishes.
    > - My blog: *http://aarondamommio.blogspot.com*<http://aarondamommio.blogspot.com/>
    > - Need a juggler? *http://amazingaaronjuggler.blogspot.com/*<http://amazingaaronjuggler.blogspot.com/>
    > =======================================
    >
    >
    > =======================================================
    > Disclaimer
    > The information contained in this e - mail and any attachments
    > ( together the "message") is intended for the addressee only and may
    > contain confidential and/or privileged information. If you have received
    > the message by mistake please delete it and notify the sender and do
    > not copy or distribute it or disclose its contents to anyone.
    >
    > FINARIS Financial Software Partner GmbH
    > Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
    > Registered at Frankfurt/Main, HRB 52873
    >
    > Managing Directors:
    > Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
    > =======================================================




    --
    --------------------------------------
    Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    dishes.
    - My blog: http://aarondamommio.blogspot.com
    - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    =======================================



  • 5.  Re: [docbook-apps] Wrong PDF output: Custom button-format is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is missing.

    Posted 10-05-2012 13:05
    On 10/05/2012 01:42 PM, Aaron DaMommio wrote:
    > I'm no expert on fo properties, Daniel, but here is a reference to the
    > properties available for margins on an inline:
    > http://www.schemacentral.com/sc/fo11/ag-fo_common-margin-properties-inline.html


    Thanks for that Aaron. Not sure how valid the xsd schema is, but it's a
    useful set of pages! Probably better generated from the WD itself.





    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



  • 6.  Re: [docbook-apps] Wrong PDF output: Custom button-format is only displayed in the Oxygen Editor and HTML, but not in PDF. Frame is missing.

    Posted 10-10-2012 08:02
    Thanks for the help, but it is still not working.

    Maybe this will help:

    Definition:

    <xsl:template match="d:button">
    <fo:inline background-color="#D3D3D3" color="#4B0082" font-family="Courier
    New" font-weight="bold" text-align="start" border-style="solid"
    border-width="thin" padding="1pt" >
    <xsl:apply-templates/>
    </fo:inline>
    </xsl:template>

    Editor: Oxygen
    FO- transformator: Saxon 6.5.5
    Sketch(actual state):
    ---------
    | Button
    ---------

    As you can see in the sketch above, the right border is missing. This
    problem only occurs in fo:inline, but not in fo:block.


    Greetings,

    Daniel Keyes

    =======================================================
    Disclaimer
    The information contained in this e - mail and any attachments
    ( together the "message") is intended for the addressee only and may
    contain confidential and/or privileged information. If you have received
    the message by mistake please delete it and notify the sender and do
    not copy or distribute it or disclose its contents to anyone.

    FINARIS Financial Software Partner GmbH
    Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
    Registered at Frankfurt/Main, HRB 52873

    Managing Directors:
    Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
    =======================================================