docbook-apps

  • 1.  Turning off admonition graphics

    Posted 02-26-2014 16:49
    I would like for admonition graphics to not be displayed in both HTML and PDF output. Based on the documentation, this seems to be a trivial thing to accomplish. I simply set the following in my customization layers:

    <xsl:param name="admon.graphics" select="0"/>

    And yet, the admonition graphics are still appearing in both HTML and FO output. Is this a bug in the 1.78.1 stylesheets? I actually thought the stylesheets were supposed to default to *not* displaying the admonition graphics?



    ------
    David Goss , Technical Writer
    Frontier Science | www.fstrf.org
    4033 Maple Rd, Amherst, NY 14226
    (716) 834-0900 extension 7218










  • 2.  Re: Turning off admonition graphics

    Posted 02-26-2014 17:09
    Silly me, I've answered my own question. The issue was not with the stylesheets or my customization layer, but rather with oXygen.

    Apparently oXygen set up some parameters in the transformation scenarios that were overriding my own stylesheets. After removing those parameters, this problem (and a few other oddities) were fixed.





    ------
    David Goss , Technical Writer
    Frontier Science | www.fstrf.org
    4033 Maple Rd, Amherst, NY 14226
    (716) 834-0900 extension 7218







    ----- Original Message -----

    From: "David Goss" <goss@fstrf.org>
    To: docbook-apps@lists.oasis-open.org
    Sent: Wednesday, February 26, 2014 11:48:51 AM
    Subject: Turning off admonition graphics

    I would like for admonition graphics to not be displayed in both HTML and PDF output. Based on the documentation, this seems to be a trivial thing to accomplish. I simply set the following in my customization layers:

    <xsl:param name="admon.graphics" select="0"/>

    And yet, the admonition graphics are still appearing in both HTML and FO output. Is this a bug in the 1.78.1 stylesheets? I actually thought the stylesheets were supposed to default to *not* displaying the admonition graphics?



    ------
    David Goss , Technical Writer
    Frontier Science | www.fstrf.org
    4033 Maple Rd, Amherst, NY 14226
    (716) 834-0900 extension 7218











  • 3.  Re: [docbook-apps] Turning off admonition graphics

    Posted 02-26-2014 17:26
    Hi David,
    You are correct on both counts. The admon.graphics param controls that
    feature, and it is set to zero (off) by default. I just confirmed with
    the stock 1.78.1 stylesheets. So the question is why doesn't it work
    for you?

    The param value triggers a choice of templates (from fo/admon.xsl):

    <xsl:template match="note|important|warning|caution|tip">
    <xsl:choose>
    <xsl:when test="$admon.graphics != 0">
    <xsl:call-template name="graphical.admonition"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="nongraphical.admonition"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>

    Has the template named nongraphical.admonition been customized?

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 2/26/2014 8:48 AM, David Goss wrote:
    > I would like for admonition graphics to not be displayed in both HTML and PDF output. Based on the documentation, this seems to be a trivial thing to accomplish. I simply set the following in my customization layers:
    >
    > <xsl:param name="admon.graphics" select="0"/>
    >
    > And yet, the admonition graphics are still appearing in both HTML and FO output. Is this a bug in the 1.78.1 stylesheets? I actually thought the stylesheets were supposed to default to *not* displaying the admonition graphics?
    >
    >
    >
    > ------
    > David Goss , Technical Writer
    > Frontier Science | www.fstrf.org
    > 4033 Maple Rd, Amherst, NY 14226
    > (716) 834-0900 extension 7218
    >
    >
    >
    >
    >
    >
    >
    >