docbook-apps

Expand all | Collapse all

any problems with DocBook XSL 1.79.0?

  • 1.  any problems with DocBook XSL 1.79.0?

    Posted 10-21-2015 22:36
    It has been about a week since candidate DocBook XSL 1.79.0 was
    released, and it has been downloaded about 150 times. Has anyone who
    has tried it run into any problems yet? If so, please let me know so
    they can be fixed for the 1.79.1 release.

    --
    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net



  • 2.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-21-2015 23:44
    Hi Bob,

    Here's a problem with the background-color of admons that I ran into
    while trying to create a PDF using FOP 1.1. This error does not occur
    when using 1.78.1.

    The error message:

    Oct 21, 2015 7:21:56 PM org.apache.fop.events.LoggingEventListener processEvent
    SEVERE: Invalid property value encountered in background-color="":
    org.apache.fop.fo.expr.PropertyException:
    file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    defined ; property:'background-color' (See position 2859:397)
    org.apache.fop.fo.expr.PropertyException:
    file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    defined ; property:'background-color' ...

    Here's a fo file excerpt:

    <fo:block id="idm178084196336" space-before.optimum="1em"
    space-before.minimum="0.8em"
    space-before.maximum="1.2em" space-after.optimum="1em"
    space-after.minimum="0.8em"
    space-after.maximum="1.2em" padding=".1in"
    padding-top=".1in" margin="0.05in"
    font-style="italic" border-top="0.5pt solid grey"
    border-bottom="1pt solid grey"
    background-color="" margin-left="0.25in" margin-right="0.25in">
    <fo:block keep-with-next.within-column="always"
    font-size="12pt" font-weight="bold"
    hyphenate="true">Note</fo:block>
    <fo:block>
    <fo:block space-before.optimum="1em" space-before.minimum="0.8em"
    space-before.maximum="1.2em"
    >
    It is tidier to import resources into the project
    <fo:inline
    font-size="10pt" font-family="monospace"
    >Content/Resources</fo:inline> folder. If you choose
    this option any links to images, CSS files, or JavaScript files
    will be adjusted to point to the resources in the
    <fo:inline
    font-size="10pt" font-family="monospace"
    >Content/Resources</fo:inline> folder.
    </fo:block>
    </fo:block>
    </fo:block>

    Here's the DocBook source code:

    <note>
    <para>
    It is tidier to import resources into the project
    <filename>Content/Resources</filename> folder. If you choose
    this option any links to images, CSS files, or JavaScript files
    will be adjusted to point to the resources in the
    <filename>Content/Resources</filename> folder.
    </para>
    </note>

    Here's the customization override of the fo/docbook.xsl file:

    <xsl:attribute-set name="nongraphical.admonition.properties">
    <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
    <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
    <xsl:attribute name="padding">.1in</xsl:attribute>
    <xsl:attribute name="padding-top">.1in</xsl:attribute>
    <xsl:attribute name="margin">0.05in</xsl:attribute>

    <xsl:attribute name="font-style">italic</xsl:attribute>
    <xsl:attribute name="border-top">0.5pt solid grey</xsl:attribute>
    <xsl:attribute name="border-bottom">1pt solid grey</xsl:attribute>

    <xsl:attribute name="background-color">
    <xsl:choose>
    <xsl:when test="self::d:note">#edf9ff</xsl:when>
    <xsl:when test="self::d:warning">#fff1dc</xsl:when>
    </xsl:choose>
    </xsl:attribute>
    </xsl:attribute-set>

    If you need more information let me know.

    And thanks very much for all the work you've done on DocBook--it's
    greatly appreciated.

    On 21 October 2015 at 18:35, Bob Stayton <bobs@sagehill.net> wrote:
    > It has been about a week since candidate DocBook XSL 1.79.0 was released,
    > and it has been downloaded about 150 times. Has anyone who has tried it run
    > into any problems yet? If so, please let me know so they can be fixed for
    > the 1.79.1 release.
    >
    > --
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >



    --

    Peter Lavin
    Telephone: 1 416 461 4991
    Mobile: 1 416 882 9194
    Skype: peter.lavin
    (GMT -05:00 Canada/US Eastern)



  • 3.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-21-2015 23:57
    Hi Peter,
    I don't think that's a problem specific to 1.79.0, because that should
    not work in 1.78.1 either. In your customization, when you do an
    xsl:choose for an attribute in an attribute-set, there must be a
    fallback value in an xsl:otherwise clause, like:

    <xsl:otherwise>inherit</xsl:otherwise>

    FOP is rejecting the empty attribute value.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 10/21/2015 4:43 PM, Peter Lavin wrote:
    > Hi Bob,
    >
    > Here's a problem with the background-color of admons that I ran into
    > while trying to create a PDF using FOP 1.1. This error does not occur
    > when using 1.78.1.
    >
    > The error message:
    >
    > Oct 21, 2015 7:21:56 PM org.apache.fop.events.LoggingEventListener processEvent
    > SEVERE: Invalid property value encountered in background-color="":
    > org.apache.fop.fo.expr.PropertyException:
    > file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    > defined ; property:'background-color' (See position 2859:397)
    > org.apache.fop.fo.expr.PropertyException:
    > file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    > defined ; property:'background-color' ...
    >
    > Here's a fo file excerpt:
    >
    > <fo:block id="idm178084196336" space-before.optimum="1em"
    > space-before.minimum="0.8em"
    > space-before.maximum="1.2em" space-after.optimum="1em"
    > space-after.minimum="0.8em"
    > space-after.maximum="1.2em" padding=".1in"
    > padding-top=".1in" margin="0.05in"
    > font-style="italic" border-top="0.5pt solid grey"
    > border-bottom="1pt solid grey"
    > background-color="" margin-left="0.25in" margin-right="0.25in">
    > <fo:block keep-with-next.within-column="always"
    > font-size="12pt" font-weight="bold"
    > hyphenate="true">Note</fo:block>
    > <fo:block>
    > <fo:block space-before.optimum="1em" space-before.minimum="0.8em"
    > space-before.maximum="1.2em"
    > >
    > It is tidier to import resources into the project
    > <fo:inline
    > font-size="10pt" font-family="monospace"
    > >Content/Resources</fo:inline> folder. If you choose
    > this option any links to images, CSS files, or JavaScript files
    > will be adjusted to point to the resources in the
    > <fo:inline
    > font-size="10pt" font-family="monospace"
    > >Content/Resources</fo:inline> folder.
    > </fo:block>
    > </fo:block>
    > </fo:block>
    >
    > Here's the DocBook source code:
    >
    > <note>
    > <para>
    > It is tidier to import resources into the project
    > <filename>Content/Resources</filename> folder. If you choose
    > this option any links to images, CSS files, or JavaScript files
    > will be adjusted to point to the resources in the
    > <filename>Content/Resources</filename> folder.
    > </para>
    > </note>
    >
    > Here's the customization override of the fo/docbook.xsl file:
    >
    > <xsl:attribute-set name="nongraphical.admonition.properties">
    > <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
    > <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    > <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    > <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
    > <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
    > <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
    > <xsl:attribute name="padding">.1in</xsl:attribute>
    > <xsl:attribute name="padding-top">.1in</xsl:attribute>
    > <xsl:attribute name="margin">0.05in</xsl:attribute>
    >
    > <xsl:attribute name="font-style">italic</xsl:attribute>
    > <xsl:attribute name="border-top">0.5pt solid grey</xsl:attribute>
    > <xsl:attribute name="border-bottom">1pt solid grey</xsl:attribute>
    >
    > <xsl:attribute name="background-color">
    > <xsl:choose>
    > <xsl:when test="self::d:note">#edf9ff</xsl:when>
    > <xsl:when test="self::d:warning">#fff1dc</xsl:when>
    > </xsl:choose>
    > </xsl:attribute>
    > </xsl:attribute-set>
    >
    > If you need more information let me know.
    >
    > And thanks very much for all the work you've done on DocBook--it's
    > greatly appreciated.
    >
    > On 21 October 2015 at 18:35, Bob Stayton <bobs@sagehill.net> wrote:
    >> It has been about a week since candidate DocBook XSL 1.79.0 was released,
    >> and it has been downloaded about 150 times. Has anyone who has tried it run
    >> into any problems yet? If so, please let me know so they can be fixed for
    >> the 1.79.1 release.
    >>
    >> --
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >
    >
    >



  • 4.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-22-2015 01:19
    In 1.78.1 this customization applies the right background-color and no
    error is thrown. By adding an 'otherwise' clause and using 1.79.0 the
    SEVERE error becomes a warning:

    WARNING: background-color="inherit" on fo:block, but no explicit value
    found on the parent FO.

    However, the background color is _not_ applied as it was in 1.78.1.

    On 21 October 2015 at 19:57, Bob Stayton <bobs@sagehill.net> wrote:
    > Hi Peter,
    > I don't think that's a problem specific to 1.79.0, because that should not
    > work in 1.78.1 either. In your customization, when you do an xsl:choose for
    > an attribute in an attribute-set, there must be a fallback value in an
    > xsl:otherwise clause, like:
    >
    > <xsl:otherwise>inherit</xsl:otherwise>
    >
    > FOP is rejecting the empty attribute value.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > On 10/21/2015 4:43 PM, Peter Lavin wrote:
    >>
    >> Hi Bob,
    >>
    >> Here's a problem with the background-color of admons that I ran into
    >> while trying to create a PDF using FOP 1.1. This error does not occur
    >> when using 1.78.1.
    >>
    >> The error message:
    >>
    >> Oct 21, 2015 7:21:56 PM org.apache.fop.events.LoggingEventListener
    >> processEvent
    >> SEVERE: Invalid property value encountered in background-color="":
    >> org.apache.fop.fo.expr.PropertyException:
    >> file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    >> defined ; property:'background-color' (See position 2859:397)
    >> org.apache.fop.fo.expr.PropertyException:
    >> file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    >> defined ; property:'background-color' ...
    >>
    >> Here's a fo file excerpt:
    >>
    >> <fo:block id="idm178084196336" space-before.optimum="1em"
    >> space-before.minimum="0.8em"
    >> space-before.maximum="1.2em" space-after.optimum="1em"
    >> space-after.minimum="0.8em"
    >> space-after.maximum="1.2em" padding=".1in"
    >> padding-top=".1in" margin="0.05in"
    >> font-style="italic" border-top="0.5pt solid grey"
    >> border-bottom="1pt solid grey"
    >> background-color="" margin-left="0.25in" margin-right="0.25in">
    >> <fo:block keep-with-next.within-column="always"
    >> font-size="12pt" font-weight="bold"
    >> hyphenate="true">Note</fo:block>
    >> <fo:block>
    >> <fo:block space-before.optimum="1em"
    >> space-before.minimum="0.8em"
    >> space-before.maximum="1.2em"
    >> >
    >> It is tidier to import resources into the project
    >> <fo:inline
    >> font-size="10pt" font-family="monospace"
    >> >Content/Resources</fo:inline> folder. If you choose
    >> this option any links to images, CSS files, or JavaScript files
    >> will be adjusted to point to the resources in the
    >> <fo:inline
    >> font-size="10pt" font-family="monospace"
    >> >Content/Resources</fo:inline> folder.
    >> </fo:block>
    >> </fo:block>
    >> </fo:block>
    >>
    >> Here's the DocBook source code:
    >>
    >> <note>
    >> <para>
    >> It is tidier to import resources into the project
    >> <filename>Content/Resources</filename> folder. If you choose
    >> this option any links to images, CSS files, or JavaScript files
    >> will be adjusted to point to the resources in the
    >> <filename>Content/Resources</filename> folder.
    >> </para>
    >> </note>
    >>
    >> Here's the customization override of the fo/docbook.xsl file:
    >>
    >> <xsl:attribute-set name="nongraphical.admonition.properties">
    >> <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
    >> <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    >> <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    >> <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
    >> <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
    >> <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
    >> <xsl:attribute name="padding">.1in</xsl:attribute>
    >> <xsl:attribute name="padding-top">.1in</xsl:attribute>
    >> <xsl:attribute name="margin">0.05in</xsl:attribute>
    >>
    >> <xsl:attribute name="font-style">italic</xsl:attribute>
    >> <xsl:attribute name="border-top">0.5pt solid grey</xsl:attribute>
    >> <xsl:attribute name="border-bottom">1pt solid grey</xsl:attribute>
    >>
    >> <xsl:attribute name="background-color">
    >> <xsl:choose>
    >> <xsl:when test="self::d:note">#edf9ff</xsl:when>
    >> <xsl:when test="self::d:warning">#fff1dc</xsl:when>
    >> </xsl:choose>
    >> </xsl:attribute>
    >> </xsl:attribute-set>
    >>
    >> If you need more information let me know.
    >>
    >> And thanks very much for all the work you've done on DocBook--it's
    >> greatly appreciated.
    >>
    >> On 21 October 2015 at 18:35, Bob Stayton <bobs@sagehill.net> wrote:
    >>>
    >>> It has been about a week since candidate DocBook XSL 1.79.0 was released,
    >>> and it has been downloaded about 150 times. Has anyone who has tried it
    >>> run
    >>> into any problems yet? If so, please let me know so they can be fixed
    >>> for
    >>> the 1.79.1 release.
    >>>
    >>> --
    >>> Bob Stayton
    >>> Sagehill Enterprises
    >>> bobs@sagehill.net
    >>>
    >>> ---------------------------------------------------------------------
    >>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>>
    >>
    >>
    >>
    >



    --

    Peter Lavin
    Telephone: 1 416 461 4991
    Mobile: 1 416 882 9194
    Skype: peter.lavin
    (GMT -05:00 Canada/US Eastern)



  • 5.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-22-2015 17:47
    Hi Peter,
    I misunderstood the problem. I assumed that you were processing an
    admonition element that was not a note or warning, in which case your
    customization would generate a blank value for background-color.

    Looking more closely at your FO output, it seems you are getting an
    empty attribute value for the note element. But I'm not able to
    duplicate that problem. When I copy your note element to a sample
    DocBook 5 document, and your customization to a simple namespaced
    customization XSL, I get the correct colors for note and warning.

    The fact that you are getting the other custom properties such as border
    indicates that the attribute-set is working. But it seems the d:note
    and d:warning element names are not matching in your process but they
    are in mine.

    Are you sure you are importing the namespaced version of the DocBook
    stylesheet? If not, you will get a warning that it is stripping the
    namespace, the stylesheet will convert the DB5 content to DB4 before
    proceeding, and then the d:note won't match the converted element.
    That's the only thing I can think of.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 10/21/2015 6:18 PM, Peter Lavin wrote:
    > In 1.78.1 this customization applies the right background-color and no
    > error is thrown. By adding an 'otherwise' clause and using 1.79.0 the
    > SEVERE error becomes a warning:
    >
    > WARNING: background-color="inherit" on fo:block, but no explicit value
    > found on the parent FO.
    >
    > However, the background color is _not_ applied as it was in 1.78.1.
    >
    > On 21 October 2015 at 19:57, Bob Stayton <bobs@sagehill.net> wrote:
    >> Hi Peter,
    >> I don't think that's a problem specific to 1.79.0, because that should not
    >> work in 1.78.1 either. In your customization, when you do an xsl:choose for
    >> an attribute in an attribute-set, there must be a fallback value in an
    >> xsl:otherwise clause, like:
    >>
    >> <xsl:otherwise>inherit</xsl:otherwise>
    >>
    >> FOP is rejecting the empty attribute value.
    >>
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >>
    >> On 10/21/2015 4:43 PM, Peter Lavin wrote:
    >>>
    >>> Hi Bob,
    >>>
    >>> Here's a problem with the background-color of admons that I ran into
    >>> while trying to create a PDF using FOP 1.1. This error does not occur
    >>> when using 1.78.1.
    >>>
    >>> The error message:
    >>>
    >>> Oct 21, 2015 7:21:56 PM org.apache.fop.events.LoggingEventListener
    >>> processEvent
    >>> SEVERE: Invalid property value encountered in background-color="":
    >>> org.apache.fop.fo.expr.PropertyException:
    >>> file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    >>> defined ; property:'background-color' (See position 2859:397)
    >>> org.apache.fop.fo.expr.PropertyException:
    >>> file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    >>> defined ; property:'background-color' ...
    >>>
    >>> Here's a fo file excerpt:
    >>>
    >>> <fo:block id="idm178084196336" space-before.optimum="1em"
    >>> space-before.minimum="0.8em"
    >>> space-before.maximum="1.2em" space-after.optimum="1em"
    >>> space-after.minimum="0.8em"
    >>> space-after.maximum="1.2em" padding=".1in"
    >>> padding-top=".1in" margin="0.05in"
    >>> font-style="italic" border-top="0.5pt solid grey"
    >>> border-bottom="1pt solid grey"
    >>> background-color="" margin-left="0.25in" margin-right="0.25in">
    >>> <fo:block keep-with-next.within-column="always"
    >>> font-size="12pt" font-weight="bold"
    >>> hyphenate="true">Note</fo:block>
    >>> <fo:block>
    >>> <fo:block space-before.optimum="1em"
    >>> space-before.minimum="0.8em"
    >>> space-before.maximum="1.2em"
    >>> >
    >>> It is tidier to import resources into the project
    >>> <fo:inline
    >>> font-size="10pt" font-family="monospace"
    >>> >Content/Resources</fo:inline> folder. If you choose
    >>> this option any links to images, CSS files, or JavaScript files
    >>> will be adjusted to point to the resources in the
    >>> <fo:inline
    >>> font-size="10pt" font-family="monospace"
    >>> >Content/Resources</fo:inline> folder.
    >>> </fo:block>
    >>> </fo:block>
    >>> </fo:block>
    >>>
    >>> Here's the DocBook source code:
    >>>
    >>> <note>
    >>> <para>
    >>> It is tidier to import resources into the project
    >>> <filename>Content/Resources</filename> folder. If you choose
    >>> this option any links to images, CSS files, or JavaScript files
    >>> will be adjusted to point to the resources in the
    >>> <filename>Content/Resources</filename> folder.
    >>> </para>
    >>> </note>
    >>>
    >>> Here's the customization override of the fo/docbook.xsl file:
    >>>
    >>> <xsl:attribute-set name="nongraphical.admonition.properties">
    >>> <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
    >>> <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    >>> <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    >>> <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
    >>> <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
    >>> <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
    >>> <xsl:attribute name="padding">.1in</xsl:attribute>
    >>> <xsl:attribute name="padding-top">.1in</xsl:attribute>
    >>> <xsl:attribute name="margin">0.05in</xsl:attribute>
    >>>
    >>> <xsl:attribute name="font-style">italic</xsl:attribute>
    >>> <xsl:attribute name="border-top">0.5pt solid grey</xsl:attribute>
    >>> <xsl:attribute name="border-bottom">1pt solid grey</xsl:attribute>
    >>>
    >>> <xsl:attribute name="background-color">
    >>> <xsl:choose>
    >>> <xsl:when test="self::d:note">#edf9ff</xsl:when>
    >>> <xsl:when test="self::d:warning">#fff1dc</xsl:when>
    >>> </xsl:choose>
    >>> </xsl:attribute>
    >>> </xsl:attribute-set>
    >>>
    >>> If you need more information let me know.
    >>>
    >>> And thanks very much for all the work you've done on DocBook--it's
    >>> greatly appreciated.
    >>>
    >>> On 21 October 2015 at 18:35, Bob Stayton <bobs@sagehill.net> wrote:
    >>>>
    >>>> It has been about a week since candidate DocBook XSL 1.79.0 was released,
    >>>> and it has been downloaded about 150 times. Has anyone who has tried it
    >>>> run
    >>>> into any problems yet? If so, please let me know so they can be fixed
    >>>> for
    >>>> the 1.79.1 release.
    >>>>
    >>>> --
    >>>> Bob Stayton
    >>>> Sagehill Enterprises
    >>>> bobs@sagehill.net
    >>>>
    >>>> ---------------------------------------------------------------------
    >>>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>>>
    >>>
    >>>
    >>>
    >>
    >
    >
    >



  • 6.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-22-2015 18:05
    You are exactly right. I'm importing the non-namespaced version.
    Sorry for the "noise".

    --
    Excuse brevity. Sent from mobile device.
    On Oct 22, 2015 1:46 PM, "Bob Stayton" <bobs@sagehill.net> wrote:

    > Hi Peter,
    > I misunderstood the problem. I assumed that you were processing an
    > admonition element that was not a note or warning, in which case your
    > customization would generate a blank value for background-color.
    >
    > Looking more closely at your FO output, it seems you are getting an empty
    > attribute value for the note element. But I'm not able to duplicate that
    > problem. When I copy your note element to a sample DocBook 5 document, and
    > your customization to a simple namespaced customization XSL, I get the
    > correct colors for note and warning.
    >
    > The fact that you are getting the other custom properties such as border
    > indicates that the attribute-set is working. But it seems the d:note and
    > d:warning element names are not matching in your process but they are in
    > mine.
    >
    > Are you sure you are importing the namespaced version of the DocBook
    > stylesheet? If not, you will get a warning that it is stripping the
    > namespace, the stylesheet will convert the DB5 content to DB4 before
    > proceeding, and then the d:note won't match the converted element. That's
    > the only thing I can think of.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > On 10/21/2015 6:18 PM, Peter Lavin wrote:
    >
    >> In 1.78.1 this customization applies the right background-color and no
    >> error is thrown. By adding an 'otherwise' clause and using 1.79.0 the
    >> SEVERE error becomes a warning:
    >>
    >> WARNING: background-color="inherit" on fo:block, but no explicit value
    >> found on the parent FO.
    >>
    >> However, the background color is _not_ applied as it was in 1.78.1.
    >>
    >> On 21 October 2015 at 19:57, Bob Stayton <bobs@sagehill.net> wrote:
    >>
    >>> Hi Peter,
    >>> I don't think that's a problem specific to 1.79.0, because that should
    >>> not
    >>> work in 1.78.1 either. In your customization, when you do an xsl:choose
    >>> for
    >>> an attribute in an attribute-set, there must be a fallback value in an
    >>> xsl:otherwise clause, like:
    >>>
    >>> <xsl:otherwise>inherit</xsl:otherwise>
    >>>
    >>> FOP is rejecting the empty attribute value.
    >>>
    >>> Bob Stayton
    >>> Sagehill Enterprises
    >>> bobs@sagehill.net
    >>>
    >>> On 10/21/2015 4:43 PM, Peter Lavin wrote:
    >>>
    >>>>
    >>>> Hi Bob,
    >>>>
    >>>> Here's a problem with the background-color of admons that I ran into
    >>>> while trying to create a PDF using FOP 1.1. This error does not occur
    >>>> when using 1.78.1.
    >>>>
    >>>> The error message:
    >>>>
    >>>> Oct 21, 2015 7:21:56 PM org.apache.fop.events.LoggingEventListener
    >>>> processEvent
    >>>> SEVERE: Invalid property value encountered in background-color="":
    >>>> org.apache.fop.fo.expr.PropertyException:
    >>>> file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    >>>> defined ; property:'background-color' (See position 2859:397)
    >>>> org.apache.fop.fo.expr.PropertyException:
    >>>> file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion
    >>>> defined ; property:'background-color' ...
    >>>>
    >>>> Here's a fo file excerpt:
    >>>>
    >>>> <fo:block id="idm178084196336" space-before.optimum="1em"
    >>>> space-before.minimum="0.8em"
    >>>> space-before.maximum="1.2em" space-after.optimum="1em"
    >>>> space-after.minimum="0.8em"
    >>>> space-after.maximum="1.2em" padding=".1in"
    >>>> padding-top=".1in" margin="0.05in"
    >>>> font-style="italic" border-top="0.5pt solid grey"
    >>>> border-bottom="1pt solid grey"
    >>>> background-color="" margin-left="0.25in"
    >>>> margin-right="0.25in">
    >>>> <fo:block keep-with-next.within-column="always"
    >>>> font-size="12pt" font-weight="bold"
    >>>> hyphenate="true">Note</fo:block>
    >>>> <fo:block>
    >>>> <fo:block space-before.optimum="1em"
    >>>> space-before.minimum="0.8em"
    >>>> space-before.maximum="1.2em"
    >>>> >
    >>>> It is tidier to import resources into the project
    >>>> <fo:inline
    >>>> font-size="10pt" font-family="monospace"
    >>>> >Content/Resources</fo:inline> folder. If you choose
    >>>> this option any links to images, CSS files, or JavaScript
    >>>> files
    >>>> will be adjusted to point to the resources in the
    >>>> <fo:inline
    >>>> font-size="10pt" font-family="monospace"
    >>>> >Content/Resources</fo:inline> folder.
    >>>> </fo:block>
    >>>> </fo:block>
    >>>> </fo:block>
    >>>>
    >>>> Here's the DocBook source code:
    >>>>
    >>>> <note>
    >>>> <para>
    >>>> It is tidier to import resources into the project
    >>>> <filename>Content/Resources</filename> folder. If you choose
    >>>> this option any links to images, CSS files, or JavaScript
    >>>> files
    >>>> will be adjusted to point to the resources in the
    >>>> <filename>Content/Resources</filename> folder.
    >>>> </para>
    >>>> </note>
    >>>>
    >>>> Here's the customization override of the fo/docbook.xsl file:
    >>>>
    >>>> <xsl:attribute-set name="nongraphical.admonition.properties">
    >>>> <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
    >>>> <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
    >>>> <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
    >>>> <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
    >>>> <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
    >>>> <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
    >>>> <xsl:attribute name="padding">.1in</xsl:attribute>
    >>>> <xsl:attribute name="padding-top">.1in</xsl:attribute>
    >>>> <xsl:attribute name="margin">0.05in</xsl:attribute>
    >>>>
    >>>> <xsl:attribute name="font-style">italic</xsl:attribute>
    >>>> <xsl:attribute name="border-top">0.5pt solid grey</xsl:attribute>
    >>>> <xsl:attribute name="border-bottom">1pt solid grey</xsl:attribute>
    >>>>
    >>>> <xsl:attribute name="background-color">
    >>>> <xsl:choose>
    >>>> <xsl:when test="self::d:note">#edf9ff</xsl:when>
    >>>> <xsl:when test="self::d:warning">#fff1dc</xsl:when>
    >>>> </xsl:choose>
    >>>> </xsl:attribute>
    >>>> </xsl:attribute-set>
    >>>>
    >>>> If you need more information let me know.
    >>>>
    >>>> And thanks very much for all the work you've done on DocBook--it's
    >>>> greatly appreciated.
    >>>>
    >>>> On 21 October 2015 at 18:35, Bob Stayton <bobs@sagehill.net> wrote:
    >>>>
    >>>>>
    >>>>> It has been about a week since candidate DocBook XSL 1.79.0 was
    >>>>> released,
    >>>>> and it has been downloaded about 150 times. Has anyone who has tried
    >>>>> it
    >>>>> run
    >>>>> into any problems yet? If so, please let me know so they can be fixed
    >>>>> for
    >>>>> the 1.79.1 release.
    >>>>>
    >>>>> --
    >>>>> Bob Stayton
    >>>>> Sagehill Enterprises
    >>>>> bobs@sagehill.net
    >>>>>
    >>>>> ---------------------------------------------------------------------
    >>>>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>>>> For additional commands, e-mail:
    >>>>> docbook-apps-help@lists.oasis-open.org
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>>
    >>>
    >>
    >>
    >>



  • 7.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-22-2015 00:15
    Hi Bob,

    I built one of our books using the fo stylesheets, and it came out clean. Not an extensive test, but it does build a book with an index, a glossary, and a fair number of customizations.

    I built an epub using the epub2 stylesheets and got the following message from epubcheck (both epubcheck 3.0.1 and 4.0.0):

    ERROR: xliff.epub/OEBPS/content.opf: Obsolete or irregular DOCTYPE statement. The DOCTYPE can be removed.
    WARNING: xliff.epub/OEBPS/toc.ncx: Irregular DOCTYPE: found '-//W3C//DTD XHTML 1.1//EN', expecting ''.

    I removed all of my customizations, and got the same error with the standard stylesheets, so I'm pretty sure that the problem is not in my customizations.

    The same book run through the epub3 stylesheets does not generate this error, so it looks like it is specific to epub2.

    I'll keep using the stylesheets and let you know if I see anything else.

    Thanks for everything you do to support the stylesheets.

    Dick
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net



    On Oct 21, 2015, at 15:35, Bob Stayton <bobs@sagehill.net> wrote:

    > It has been about a week since candidate DocBook XSL 1.79.0 was released, and it has been downloaded about 150 times. Has anyone who has tried it run into any problems yet? If so, please let me know so they can be fixed for the 1.79.1 release.
    >
    > --
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >




  • 8.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-22-2015 00:53
    Hi Bob,

    As a followup, it looks like this is a problem that existed in 1.78.1. Looking back at my files and email, I see that this was discussed in 2013 and was attributed to a quirk in Saxon.

    The issue comes up in xhtml-1_1/docbook.xsl which has the following line:

    <xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>

    Once set, saxon will put that DOCTYPE into everything, even if the output has a different namespace.

    I resolved this locally by removing the doctype-public and doctype-system attributes from this line in docbook.xsl, maketoc.xsl. and profile-docbook.xsl.

    I forget why this couldn't be changed in the distributed stylesheets (maybe a problem with xsltproc or another xslt processor), but if it can be changed, that would be helpful.

    Thanks,
    Dick
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net



    On Oct 21, 2015, at 17:15, Richard Hamilton <hamilton@xmlpress.net> wrote:

    > Hi Bob,
    >
    > I built one of our books using the fo stylesheets, and it came out clean. Not an extensive test, but it does build a book with an index, a glossary, and a fair number of customizations.
    >
    > I built an epub using the epub2 stylesheets and got the following message from epubcheck (both epubcheck 3.0.1 and 4.0.0):
    >
    > ERROR: xliff.epub/OEBPS/content.opf: Obsolete or irregular DOCTYPE statement. The DOCTYPE can be removed.
    > WARNING: xliff.epub/OEBPS/toc.ncx: Irregular DOCTYPE: found '-//W3C//DTD XHTML 1.1//EN', expecting ''.
    >
    > I removed all of my customizations, and got the same error with the standard stylesheets, so I'm pretty sure that the problem is not in my customizations.
    >
    > The same book run through the epub3 stylesheets does not generate this error, so it looks like it is specific to epub2.
    >
    > I'll keep using the stylesheets and let you know if I see anything else.
    >
    > Thanks for everything you do to support the stylesheets.
    >
    > Dick
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    >
    >
    > On Oct 21, 2015, at 15:35, Bob Stayton <bobs@sagehill.net> wrote:
    >
    >> It has been about a week since candidate DocBook XSL 1.79.0 was released, and it has been downloaded about 150 times. Has anyone who has tried it run into any problems yet? If so, please let me know so they can be fixed for the 1.79.1 release.
    >>
    >> --
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >




  • 9.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 11-04-2015 00:11
    Hi Dick,
    Sorry for the slow response. If you look in the xhtml directory, there
    is a special master file named docbook-no-doctype.xsl, which is
    identical to docbook.xsl except it omits that <xsl:output> directive.
    Switching to that solved the problem in some cases. But no one ever did
    it for xhtml-1_1 for epub 2 documents.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 10/21/2015 5:52 PM, Richard Hamilton wrote:
    > Hi Bob,
    >
    > As a followup, it looks like this is a problem that existed in
    > 1.78.1. Looking back at my files and email, I see that this was
    > discussed in 2013 and was attributed to a quirk in Saxon.
    >
    > The issue comes up in xhtml-1_1/docbook.xsl which has the following
    > line:
    >
    > <xsl:output method="xml" encoding="UTF-8" indent="no"
    > doctype-public="-//W3C//DTD XHTML 1.1//EN"
    > doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
    >
    > Once set, saxon will put that DOCTYPE into everything, even if the
    > output has a different namespace.
    >
    > I resolved this locally by removing the doctype-public and
    > doctype-system attributes from this line in docbook.xsl, maketoc.xsl.
    > and profile-docbook.xsl.
    >
    > I forget why this couldn't be changed in the distributed stylesheets
    > (maybe a problem with xsltproc or another xslt processor), but if it
    > can be changed, that would be helpful.
    >
    > Thanks, Dick ------- XML Press XML for Technical Communicators
    > http://xmlpress.net hamilton@xmlpress.net
    >
    >
    >
    > On Oct 21, 2015, at 17:15, Richard Hamilton <hamilton@xmlpress.net>
    > wrote:
    >
    >> Hi Bob,
    >>
    >> I built one of our books using the fo stylesheets, and it came out
    >> clean. Not an extensive test, but it does build a book with an
    >> index, a glossary, and a fair number of customizations.
    >>
    >> I built an epub using the epub2 stylesheets and got the following
    >> message from epubcheck (both epubcheck 3.0.1 and 4.0.0):
    >>
    >> ERROR: xliff.epub/OEBPS/content.opf: Obsolete or irregular DOCTYPE
    >> statement. The DOCTYPE can be removed. WARNING:
    >> xliff.epub/OEBPS/toc.ncx: Irregular DOCTYPE: found '-//W3C//DTD
    >> XHTML 1.1//EN', expecting '>> 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">'.
    >>
    >> I removed all of my customizations, and got the same error with the
    >> standard stylesheets, so I'm pretty sure that the problem is not in
    >> my customizations.
    >>
    >> The same book run through the epub3 stylesheets does not generate
    >> this error, so it looks like it is specific to epub2.
    >>
    >> I'll keep using the stylesheets and let you know if I see anything
    >> else.
    >>
    >> Thanks for everything you do to support the stylesheets.
    >>
    >> Dick ------- XML Press XML for Technical Communicators
    >> http://xmlpress.net hamilton@xmlpress.net
    >>
    >>
    >>
    >> On Oct 21, 2015, at 15:35, Bob Stayton <bobs@sagehill.net> wrote:
    >>
    >>> It has been about a week since candidate DocBook XSL 1.79.0 was
    >>> released, and it has been downloaded about 150 times. Has anyone
    >>> who has tried it run into any problems yet? If so, please let me
    >>> know so they can be fixed for the 1.79.1 release.
    >>>
    >>> -- Bob Stayton Sagehill Enterprises bobs@sagehill.net
    >>>
    >>> ---------------------------------------------------------------------
    >>>
    >>>
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>> For additional commands, e-mail:
    >>> docbook-apps-help@lists.oasis-open.org
    >>>
    >>
    >
    >
    >



  • 10.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 11-04-2015 20:46
    Hi Bob,

    Thanks for the information. No need to apologize for the delay; I have a workaround, so time was not an issue.

    One follow-up, to make sure I understand the situation.

    docbook.xsl without the <xsl:output> directive works fine with Saxon. When is that directive needed? Is this an incompatibility between Saxon and other processors or is something else going on?

    Thanks,
    Dick
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net



    On Nov 3, 2015, at 16:10, Bob Stayton <bobs@sagehill.net> wrote:

    > Hi Dick,
    > Sorry for the slow response. If you look in the xhtml directory, there
    > is a special master file named docbook-no-doctype.xsl, which is
    > identical to docbook.xsl except it omits that <xsl:output> directive.
    > Switching to that solved the problem in some cases. But no one ever did it for xhtml-1_1 for epub 2 documents.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > On 10/21/2015 5:52 PM, Richard Hamilton wrote:
    >> Hi Bob,
    >>
    >> As a followup, it looks like this is a problem that existed in
    >> 1.78.1. Looking back at my files and email, I see that this was
    >> discussed in 2013 and was attributed to a quirk in Saxon.
    >>
    >> The issue comes up in xhtml-1_1/docbook.xsl which has the following
    >> line:
    >>
    >> <xsl:output method="xml" encoding="UTF-8" indent="no"
    >> doctype-public="-//W3C//DTD XHTML 1.1//EN"
    >> doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
    >>
    >> Once set, saxon will put that DOCTYPE into everything, even if the
    >> output has a different namespace.
    >>
    >> I resolved this locally by removing the doctype-public and
    >> doctype-system attributes from this line in docbook.xsl, maketoc.xsl.
    >> and profile-docbook.xsl.
    >>
    >> I forget why this couldn't be changed in the distributed stylesheets
    >> (maybe a problem with xsltproc or another xslt processor), but if it
    >> can be changed, that would be helpful.
    >>
    >> Thanks, Dick ------- XML Press XML for Technical Communicators
    >> http://xmlpress.net hamilton@xmlpress.net
    >>
    >>
    >>
    >> On Oct 21, 2015, at 17:15, Richard Hamilton <hamilton@xmlpress.net>
    >> wrote:
    >>
    >>> Hi Bob,
    >>>
    >>> I built one of our books using the fo stylesheets, and it came out
    >>> clean. Not an extensive test, but it does build a book with an
    >>> index, a glossary, and a fair number of customizations.
    >>>
    >>> I built an epub using the epub2 stylesheets and got the following
    >>> message from epubcheck (both epubcheck 3.0.1 and 4.0.0):
    >>>
    >>> ERROR: xliff.epub/OEBPS/content.opf: Obsolete or irregular DOCTYPE
    >>> statement. The DOCTYPE can be removed. WARNING:
    >>> xliff.epub/OEBPS/toc.ncx: Irregular DOCTYPE: found '-//W3C//DTD
    >>> XHTML 1.1//EN', expecting '>>> 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">'.
    >>>
    >>> I removed all of my customizations, and got the same error with the
    >>> standard stylesheets, so I'm pretty sure that the problem is not in
    >>> my customizations.
    >>>
    >>> The same book run through the epub3 stylesheets does not generate
    >>> this error, so it looks like it is specific to epub2.
    >>>
    >>> I'll keep using the stylesheets and let you know if I see anything
    >>> else.
    >>>
    >>> Thanks for everything you do to support the stylesheets.
    >>>
    >>> Dick ------- XML Press XML for Technical Communicators
    >>> http://xmlpress.net hamilton@xmlpress.net
    >>>
    >>>
    >>>
    >>> On Oct 21, 2015, at 15:35, Bob Stayton <bobs@sagehill.net> wrote:
    >>>
    >>>> It has been about a week since candidate DocBook XSL 1.79.0 was
    >>>> released, and it has been downloaded about 150 times. Has anyone
    >>>> who has tried it run into any problems yet? If so, please let me
    >>>> know so they can be fixed for the 1.79.1 release.
    >>>>
    >>>> -- Bob Stayton Sagehill Enterprises bobs@sagehill.net
    >>>>
    >>>> ---------------------------------------------------------------------
    >>>>
    >>>>
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>>> For additional commands, e-mail:
    >>>> docbook-apps-help@lists.oasis-open.org
    >>>>
    >>>
    >>
    >>
    >>




  • 11.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-29-2015 10:25
    Hi Bob,

    we use DBDoclet (http://www.dbdoclet.org/) to auto-generate
    API-Documentation for DocBook.

    Using the DocBook 1.79.0 stylesheets for html and fo output formats, the
    following behavior also occurred with prior stylesheet versions:

    When rendering a derived class in java the following output appears
    (notice the trailing comma):

    public final class Foo extends,
    Bar
    {
    }

    The corresponding Docbook source generated by DBDoclet looks like the
    following:



    <para>The Foo class.</para>


    <classsynopsis class="class" language="java">
    <ooclass>
    <modifier>public</modifier>
    <modifier>final</modifier>
    <modifier>class</modifier>
    <classname>Foo</classname>
    </ooclass>
    <ooclass>
    <classname>
    Bar
    </classname>
    </ooclass>
    </classsynopsis>



    I think this is rooted in the implementation of the following match
    which does not recognize being called from a classsynopsis:

    <xsl:template match="ooclass|oointerface|ooexception" mode="java">
    <xsl:choose>
    <xsl:when test="preceding-sibling::*">
    <xsl:text>, </xsl:text>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text> </xsl:text>
    </xsl:otherwise>
    </xsl:choose>

    <xsl:apply-templates select="." mode="common.html.attributes"/>
    <xsl:call-template name="id.attribute"/>
    <xsl:apply-templates mode="java"/>

    </xsl:template>

    I think that the dbdoclet output is correct and this is a bug in the
    stylesheets.

    Otherwise the 1.79.0 release seems to be working great over here.

    Regards,

    Torsten



  • 12.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-29-2015 16:38
    Hi Torsten,
    Thanks for the report. It is unfortunate that it wasn't filed as a bug
    report earlier so it could be fixed. I'm unclear how to fix this as I'm
    not very familiar with the synop templates. I'm concerned about
    introducing further bugs into a release that's about to go out.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 10/29/2015 3:25 AM, Torsten Stolpmann wrote:
    > Hi Bob,
    >
    > we use DBDoclet (http://www.dbdoclet.org/) to auto-generate
    > API-Documentation for DocBook.
    >
    > Using the DocBook 1.79.0 stylesheets for html and fo output formats, the
    > following behavior also occurred with prior stylesheet versions:
    >
    > When rendering a derived class in java the following output appears
    > (notice the trailing comma):
    >
    > public final class Foo extends,
    > Bar
    > {
    > }
    >
    > The corresponding Docbook source generated by DBDoclet looks like the
    > following:
    >
    >

    >
    > <para>The Foo class.</para>
    >

    >
    > <classsynopsis class="class" language="java">
    > <ooclass>
    > <modifier>public</modifier>
    > <modifier>final</modifier>
    > <modifier>class</modifier>
    > <classname>Foo</classname>
    > </ooclass>
    > <ooclass>
    > <classname>
    > Bar
    > </classname>
    > </ooclass>
    > </classsynopsis>
    >

    >

    >
    > I think this is rooted in the implementation of the following match
    > which does not recognize being called from a classsynopsis:
    >
    > <xsl:template match="ooclass|oointerface|ooexception" mode="java">
    > <xsl:choose>
    > <xsl:when test="preceding-sibling::*">
    > <xsl:text>, </xsl:text>
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:text> </xsl:text>
    > </xsl:otherwise>
    > </xsl:choose>
    >
    > <xsl:apply-templates select="." mode="common.html.attributes"/>
    > <xsl:call-template name="id.attribute"/>
    > <xsl:apply-templates mode="java"/>
    >

    > </xsl:template>
    >
    > I think that the dbdoclet output is correct and this is a bug in the
    > stylesheets.
    >
    > Otherwise the 1.79.0 release seems to be working great over here.
    >
    > Regards,
    >
    > Torsten
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >



  • 13.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-29-2015 16:58
    Hi Bob,

    sounds reasonable.

    A tempting approach would be to check if the match is not the first
    occurrence of ooclass|oointerface|ooexception in a classsynopsis and
    there is a following sibling instead (including moving the choose
    statement behind the span).

    Then again this might of course break other stuff I do not now about.

    Please let me know if I can assist in getting this resolved in a future
    release.

    Do you need a bug filed for this at the Sourceforge Tracker?

    Regards,

    Torsten

    On 29.10.2015 17:38, Bob Stayton wrote:
    > Hi Torsten,
    > Thanks for the report. It is unfortunate that it wasn't filed as a bug
    > report earlier so it could be fixed. I'm unclear how to fix this as I'm
    > not very familiar with the synop templates. I'm concerned about
    > introducing further bugs into a release that's about to go out.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    > On 10/29/2015 3:25 AM, Torsten Stolpmann wrote:
    >> Hi Bob,
    >>
    >> we use DBDoclet (http://www.dbdoclet.org/) to auto-generate
    >> API-Documentation for DocBook.
    >>
    >> Using the DocBook 1.79.0 stylesheets for html and fo output formats, the
    >> following behavior also occurred with prior stylesheet versions:
    >>
    >> When rendering a derived class in java the following output appears
    >> (notice the trailing comma):
    >>
    >> public final class Foo extends,
    >> Bar
    >> {
    >> }
    >>
    >> The corresponding Docbook source generated by DBDoclet looks like the
    >> following:
    >>
    >>

    >>
    >> <para>The Foo class.</para>
    >>

    >>
    >> <classsynopsis class="class" language="java">
    >> <ooclass>
    >> <modifier>public</modifier>
    >> <modifier>final</modifier>
    >> <modifier>class</modifier>
    >> <classname>Foo</classname>
    >> </ooclass>
    >> <ooclass>
    >> <classname>
    >> Bar
    >> </classname>
    >> </ooclass>
    >> </classsynopsis>
    >>

    >>

    >>
    >> I think this is rooted in the implementation of the following match
    >> which does not recognize being called from a classsynopsis:
    >>
    >> <xsl:template match="ooclass|oointerface|ooexception" mode="java">
    >> <xsl:choose>
    >> <xsl:when test="preceding-sibling::*">
    >> <xsl:text>, </xsl:text>
    >> </xsl:when>
    >> <xsl:otherwise>
    >> <xsl:text> </xsl:text>
    >> </xsl:otherwise>
    >> </xsl:choose>
    >>
    >> <xsl:apply-templates select="." mode="common.html.attributes"/>
    >> <xsl:call-template name="id.attribute"/>
    >> <xsl:apply-templates mode="java"/>
    >>

    >> </xsl:template>
    >>
    >> I think that the dbdoclet output is correct and this is a bug in the
    >> stylesheets.
    >>
    >> Otherwise the 1.79.0 release seems to be working great over here.
    >>
    >> Regards,
    >>
    >> Torsten
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >>
    >>



  • 14.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-29-2015 17:12
    Hi,

    I am the author of dbdoclet and for my own transformation I did the
    following customization of the synop stylesheet. I also use
    attribute-sets for the keywords to have syntax highlighting. I also try
    to deal with annotation and the indentation.
    I hope this is helpful for somebody.

    Regards,
    Michael




    ]>

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">

    <xsl:output method="xml" />

    <xsl:param name="line-length" select="80" />

    <xsl:template match="processing-instruction('line-break')">
    <fo:block />
    </xsl:template>

    <xsl:template match="classsynopsisinfo" mode="java">
    <xsl:if test="@role = 'comment'">
    <xsl:text>&RE;  </xsl:text>
    </xsl:if>
    <fo:inline xsl:use-attribute-sets="synopsis.comment">
    <xsl:apply-templates mode="java" />
    </fo:inline>

    </xsl:template>

    <xsl:template match="classsynopsis" mode="java">
    <fo:block wrap-option="wrap" white-space-collapse="false"
    linefeed-treatment="preserve"
    xsl:use-attribute-sets="monospace.verbatim.properties">

    <xsl:apply-templates select="ooclass[1]" mode="java" />

    <xsl:if test="ooclass[position() > 1]">
    <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    <xsl:text> extends </xsl:text>
    </fo:inline>
    <xsl:apply-templates select="ooclass[position() > 1]"
    mode="java" />
    <xsl:if test="oointerface|ooexception">
    <xsl:text>&RE;  </xsl:text>
    </xsl:if>
    </xsl:if>
    <xsl:if test="oointerface">
    <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    <xsl:text> implements </xsl:text>
    </fo:inline>
    <xsl:apply-templates select="oointerface" mode="java" />
    <xsl:if test="ooexception">
    <xsl:text>&RE;    </xsl:text>
    </xsl:if>
    </xsl:if>
    <xsl:if test="ooexception">
    <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    <xsl:text>throws</xsl:text>
    </fo:inline>
    <xsl:apply-templates select="ooexception" mode="java" />
    </xsl:if>
    <xsl:text> {&RE;</xsl:text>
    <xsl:apply-templates
    select="constructorsynopsis
    |destructorsynopsis
    |fieldsynopsis
    |methodsynopsis
    |classsynopsisinfo"
    mode="java" />
    <xsl:text>}</xsl:text>
    </fo:block>
    </xsl:template>

    <xsl:template match="fieldsynopsis" mode="java">
    <fo:block wrap-option='wrap' white-space-collapse='false'
    linefeed-treatment="preserve"
    xsl:use-attribute-sets="monospace.verbatim.properties">
    <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
    <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">0em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">0em</xsl:attribute>
    <xsl:text>  </xsl:text>
    <xsl:apply-templates mode="java" />
    <xsl:text>;</xsl:text>
    <xsl:call-template name="synop-break" />
    </fo:block>
    </xsl:template>

    <xsl:template mode="java"
    match="constructorsynopsis|destructorsynopsis|methodsynopsis">
    <xsl:variable name="start-modifiers"
    select="modifier[following-sibling::*[name(.) !=
    'modifier']]" />
    <xsl:variable name="notmod" select="*[name(.) != 'modifier']" />
    <xsl:variable name="end-modifiers"
    select="modifier[preceding-sibling::*[name(.) !=
    'modifier']]" />
    <xsl:variable name="decl">
    <xsl:text>  </xsl:text>
    <xsl:apply-templates select="$start-modifiers"
    mode="java" />

    <xsl:if test="name($notmod[1]) != 'methodname'">
    <xsl:apply-templates select="$notmod[1]" mode="java" />
    </xsl:if>
    <xsl:apply-templates select="methodname" mode="java" />
    </xsl:variable>
    <fo:block wrap-option='wrap' white-space-collapse='false'
    linefeed-treatment="preserve"
    xsl:use-attribute-sets="monospace.verbatim.properties">
    <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
    <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
    <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
    <xsl:attribute name="space-after.minimum">0em</xsl:attribute>
    <xsl:attribute name="space-after.optimum">0em</xsl:attribute>
    <xsl:attribute name="space-after.maximum">0em</xsl:attribute>
    <xsl:copy-of select="$decl" />
    <xsl:text>(</xsl:text>

    <xsl:variable name="decl-length">
    <xsl:call-template name="get-decl-length">
    <xsl:with-param name="indent"
    select="string-length($decl)" />
    </xsl:call-template>
    </xsl:variable>

    <xsl:variable name="decl-first-param-length">
    <xsl:call-template name="get-decl-first-param-length">
    <xsl:with-param name="indent"
    select="string-length($decl)" />
    </xsl:call-template>
    </xsl:variable>

    <xsl:variable name="decl-last-line">
    <xsl:choose>
    <xsl:when test="contains($decl, ' ')">
    <xsl:value-of select="substring-after($decl,
    ' ')" />
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$decl" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="max-param-length">
    <xsl:for-each select="methodparam">
    <xsl:sort select="string-length(concat(type, ' ',
    parameter))"
    data-type="number" />
    <xsl:if test="position() = last()">
    <xsl:value-of select="string-length(concat(type,
    ' ', parameter))" />
    </xsl:if>
    </xsl:for-each>
    </xsl:variable>


    <xsl:variable name="indent">
    <xsl:choose>
    <xsl:when
    test="((string-length($decl-last-line) +
    $max-param-length) > $line-length)
    and (string-length($decl-last-line) > ($line-length -
    $max-param-length))">
    <xsl:value-of select="$line-length -
    $max-param-length + 1" />
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of
    select="string-length($decl-last-line) + 1" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:apply-templates select="methodparam" mode="java">
    <xsl:with-param name="indent" select="$indent" />
    <xsl:with-param name="decl-length" select="$decl-length" />
    <xsl:with-param name="decl-first-param-length"
    select="$decl-first-param-length" />
    </xsl:apply-templates>
    <xsl:text>)</xsl:text>
    <xsl:if test="exceptionname">
    <fo:inline xsl:use-attribute-sets="synopsis.keyword">

    <xsl:text>&RE;    throws </xsl:text>
    </fo:inline>
    <xsl:apply-templates select="exceptionname"
    mode="java" />
    </xsl:if>
    <xsl:if test="modifier[preceding-sibling::*[name(.) !=
    'modifier']]">
    <xsl:text> </xsl:text>
    <xsl:apply-templates select="$end-modifiers"
    mode="java" />
    </xsl:if>
    <xsl:text>;</xsl:text>
    </fo:block>
    <xsl:call-template name="synop-break" />
    </xsl:template>

    <xsl:template match="ooclass" mode="java">
    <xsl:if test="position() > 1">
    <xsl:text>, </xsl:text>
    </xsl:if>
    <xsl:apply-templates mode="java" />
    </xsl:template>

    <xsl:template match="oointerface" mode="java">
    <xsl:choose>
    <xsl:when test="name(preceding-sibling::*[1]) = 'oointerface'">

    <xsl:text>,&RE;             </xsl:text>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text></xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:apply-templates mode="java" />
    </xsl:template>

    <xsl:template match="classname" mode="java">
    <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
    <xsl:text>, </xsl:text>
    </xsl:if>
    <fo:inline xsl:use-attribute-sets="synopsis.name">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    </xsl:template>

    <xsl:template match="interfacename" mode="java">
    <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
    <xsl:text>, </xsl:text>
    </xsl:if>
    <fo:inline xsl:use-attribute-sets="synopsis.name">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    </xsl:template>

    <xsl:template match="exceptionname" mode="java">
    <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">

    <xsl:text>,&RE;           </xsl:text>
    </xsl:if>
    <fo:inline xsl:use-attribute-sets="synopsis.name">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    </xsl:template>

    <xsl:template match="methodname" mode="java">
    <fo:inline xsl:use-attribute-sets="synopsis.name">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    </xsl:template>

    <xsl:template match="methodparam" mode="java">
    <xsl:param name="indent" select="0"/>
    <xsl:param name="decl-length" select="0" />
    <xsl:param name="decl-first-param-length" select="0" />
    <xsl:if
    test="not(preceding-sibling::methodparam) and
    $decl-first-param-length > $line-length">
    <xsl:text>&RE;</xsl:text>
    <xsl:if test="$indent > 0">
    <xsl:call-template name="copy-string">
    <xsl:with-param name="string" select="' '" />
    <xsl:with-param name="count" select="$indent" />
    </xsl:call-template>
    </xsl:if>
    </xsl:if>
    <xsl:if test="preceding-sibling::methodparam">
    <xsl:choose>
    <xsl:when test="$decl-length > $line-length">
    <xsl:text>,&RE;</xsl:text>
    <xsl:if test="$indent > 0">
    <xsl:call-template name="copy-string">
    <xsl:with-param name="string" select="' '" />
    <xsl:with-param name="count" select="$indent" />
    </xsl:call-template>
    </xsl:if>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text>, </xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:if>
    <xsl:apply-templates mode="java" />
    </xsl:template>

    <xsl:template name="get-decl-length">
    <xsl:param name="indent">
    0
    </xsl:param>
    <xsl:variable name="buffer">
    <xsl:for-each select="methodparam">
    <xsl:if test="position()>1">
    <xsl:text>, </xsl:text>
    </xsl:if>
    <xsl:value-of select="type" />
    <xsl:text> </xsl:text>
    <xsl:value-of select="parameter" />
    <xsl:text> </xsl:text>
    </xsl:for-each>
    </xsl:variable>
    <xsl:value-of select="$indent + string-length($buffer)" />
    </xsl:template>

    <xsl:template name="get-decl-first-param-length">
    <xsl:param name="indent">
    0
    </xsl:param>
    <xsl:variable name="buffer">
    <xsl:value-of select="methodparam[1]/type" />
    <xsl:text> </xsl:text>
    <xsl:value-of select="methodparam[1]/parameter" />
    <xsl:text> </xsl:text>
    </xsl:variable>
    <xsl:value-of select="$indent + string-length($buffer)" />
    </xsl:template>

    <xsl:template match="type" mode="java">
    <fo:inline keep-together="always" wrap-option="no-wrap"
    xsl:use-attribute-sets="synopsis.type">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    <xsl:text> </xsl:text>
    </xsl:template>

    <xsl:template match="varname" mode="java">
    <fo:inline xsl:use-attribute-sets="synopsis.name">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    <xsl:choose>
    <xsl:when test="name(.. ) = 'fieldsynopsis'">
    <xsl:if test="count(../initializer) > 0">
    <xsl:text> </xsl:text>
    </xsl:if>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text> </xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>

    <xsl:template match="parameter" mode="java">
    <fo:inline xsl:use-attribute-sets="synopsis.name">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    </xsl:template>

    <xsl:template match="modifier" mode="java">
    <xsl:choose>
    <xsl:when test="@role = 'annotation'">
    <fo:inline xsl:use-attribute-sets="synopsis.annotation">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    </xsl:when>
    <xsl:otherwise>
    <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    <xsl:apply-templates mode="java" />
    </fo:inline>
    </xsl:otherwise>
    </xsl:choose>

    <xsl:choose>
    <xsl:when test="@role = 'annotation'">
    <xsl:choose>
    <xsl:when test="local-name(..)='ooclass'">
    <xsl:text>&RE;</xsl:text>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text>&RE;  </xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text> </xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>

    </xsl:stylesheet>


    Am 29.10.2015 um 17:58 schrieb Torsten Stolpmann:
    > Hi Bob,
    >
    > sounds reasonable.
    >
    > A tempting approach would be to check if the match is not the first
    > occurrence of ooclass|oointerface|ooexception in a classsynopsis and
    > there is a following sibling instead (including moving the choose
    > statement behind the span).
    >
    > Then again this might of course break other stuff I do not now about.
    >
    > Please let me know if I can assist in getting this resolved in a
    > future release.
    >
    > Do you need a bug filed for this at the Sourceforge Tracker?
    >
    > Regards,
    >
    > Torsten
    >
    > On 29.10.2015 17:38, Bob Stayton wrote:
    >> Hi Torsten,
    >> Thanks for the report. It is unfortunate that it wasn't filed as a bug
    >> report earlier so it could be fixed. I'm unclear how to fix this as I'm
    >> not very familiar with the synop templates. I'm concerned about
    >> introducing further bugs into a release that's about to go out.
    >>
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >>
    >> On 10/29/2015 3:25 AM, Torsten Stolpmann wrote:
    >>> Hi Bob,
    >>>
    >>> we use DBDoclet (http://www.dbdoclet.org/) to auto-generate
    >>> API-Documentation for DocBook.
    >>>
    >>> Using the DocBook 1.79.0 stylesheets for html and fo output formats,
    >>> the
    >>> following behavior also occurred with prior stylesheet versions:
    >>>
    >>> When rendering a derived class in java the following output appears
    >>> (notice the trailing comma):
    >>>
    >>> public final class Foo extends,
    >>> Bar
    >>> {
    >>> }
    >>>
    >>> The corresponding Docbook source generated by DBDoclet looks like the
    >>> following:
    >>>
    >>>

    >>>
    >>> <para>The Foo class.</para>
    >>>

    >>>
    >>> <classsynopsis class="class" language="java">
    >>> <ooclass>
    >>> <modifier>public</modifier>
    >>> <modifier>final</modifier>
    >>> <modifier>class</modifier>
    >>> <classname>Foo</classname>
    >>> </ooclass>
    >>> <ooclass>
    >>> <classname>
    >>> Bar
    >>> </classname>
    >>> </ooclass>
    >>> </classsynopsis>
    >>>

    >>>

    >>>
    >>> I think this is rooted in the implementation of the following match
    >>> which does not recognize being called from a classsynopsis:
    >>>
    >>> <xsl:template match="ooclass|oointerface|ooexception" mode="java">
    >>> <xsl:choose>
    >>> <xsl:when test="preceding-sibling::*">
    >>> <xsl:text>, </xsl:text>
    >>> </xsl:when>
    >>> <xsl:otherwise>
    >>> <xsl:text> </xsl:text>
    >>> </xsl:otherwise>
    >>> </xsl:choose>
    >>>
    >>> <xsl:apply-templates select="." mode="common.html.attributes"/>
    >>> <xsl:call-template name="id.attribute"/>
    >>> <xsl:apply-templates mode="java"/>
    >>>

    >>> </xsl:template>
    >>>
    >>> I think that the dbdoclet output is correct and this is a bug in the
    >>> stylesheets.
    >>>
    >>> Otherwise the 1.79.0 release seems to be working great over here.
    >>>
    >>> Regards,
    >>>
    >>> Torsten
    >>>
    >>> ---------------------------------------------------------------------
    >>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>>
    >>>
    >>>
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >




  • 15.  Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

    Posted 10-31-2015 15:04
    Hi Michael,

    thanks a lot, this is very helpful and really improves the document quality.

    Also many thanks for creating and maintaining dbdoclet all these years,
    this is much appreciated and has been indispensible for us the last 10
    years.

    Regards,

    Torsten

    On 29.10.2015 18:12, Michael Fuchs wrote:
    > Hi,
    >
    > I am the author of dbdoclet and for my own transformation I did the
    > following customization of the synop stylesheet. I also use
    > attribute-sets for the keywords to have syntax highlighting. I also try
    > to deal with annotation and the indentation.
    > I hope this is helpful for somebody.
    >
    > Regards,
    > Michael
    >
    >
    > >
    >
    > ]>
    >
    > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    > xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
    >
    > <xsl:output method="xml" />
    >
    > <xsl:param name="line-length" select="80" />
    >
    > <xsl:template match="processing-instruction('line-break')">
    > <fo:block />
    > </xsl:template>
    >
    > <xsl:template match="classsynopsisinfo" mode="java">
    > <xsl:if test="@role = 'comment'">
    > <xsl:text>&RE;  </xsl:text>
    > </xsl:if>
    > <fo:inline xsl:use-attribute-sets="synopsis.comment">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    >
    > </xsl:template>
    >
    > <xsl:template match="classsynopsis" mode="java">
    > <fo:block wrap-option="wrap" white-space-collapse="false"
    > linefeed-treatment="preserve"
    > xsl:use-attribute-sets="monospace.verbatim.properties">
    >
    > <xsl:apply-templates select="ooclass[1]" mode="java" />
    >
    > <xsl:if test="ooclass[position() > 1]">
    > <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    > <xsl:text> extends </xsl:text>
    > </fo:inline>
    > <xsl:apply-templates select="ooclass[position() > 1]"
    > mode="java" />
    > <xsl:if test="oointerface|ooexception">
    > <xsl:text>&RE;  </xsl:text>
    > </xsl:if>
    > </xsl:if>
    > <xsl:if test="oointerface">
    > <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    > <xsl:text> implements </xsl:text>
    > </fo:inline>
    > <xsl:apply-templates select="oointerface" mode="java" />
    > <xsl:if test="ooexception">
    > <xsl:text>&RE;    </xsl:text>
    > </xsl:if>
    > </xsl:if>
    > <xsl:if test="ooexception">
    > <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    > <xsl:text>throws</xsl:text>
    > </fo:inline>
    > <xsl:apply-templates select="ooexception" mode="java" />
    > </xsl:if>
    > <xsl:text> {&RE;</xsl:text>
    > <xsl:apply-templates
    > select="constructorsynopsis
    > |destructorsynopsis
    > |fieldsynopsis
    > |methodsynopsis
    > |classsynopsisinfo"
    > mode="java" />
    > <xsl:text>}</xsl:text>
    > </fo:block>
    > </xsl:template>
    >
    > <xsl:template match="fieldsynopsis" mode="java">
    > <fo:block wrap-option='wrap' white-space-collapse='false'
    > linefeed-treatment="preserve"
    > xsl:use-attribute-sets="monospace.verbatim.properties">
    > <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
    > <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
    > <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
    > <xsl:attribute name="space-after.minimum">0em</xsl:attribute>
    > <xsl:attribute name="space-after.optimum">0em</xsl:attribute>
    > <xsl:attribute name="space-after.maximum">0em</xsl:attribute>
    > <xsl:text>  </xsl:text>
    > <xsl:apply-templates mode="java" />
    > <xsl:text>;</xsl:text>
    > <xsl:call-template name="synop-break" />
    > </fo:block>
    > </xsl:template>
    >
    > <xsl:template mode="java"
    > match="constructorsynopsis|destructorsynopsis|methodsynopsis">
    > <xsl:variable name="start-modifiers"
    > select="modifier[following-sibling::*[name(.) !=
    > 'modifier']]" />
    > <xsl:variable name="notmod" select="*[name(.) != 'modifier']" />
    > <xsl:variable name="end-modifiers"
    > select="modifier[preceding-sibling::*[name(.) !=
    > 'modifier']]" />
    > <xsl:variable name="decl">
    > <xsl:text>  </xsl:text>
    > <xsl:apply-templates select="$start-modifiers"
    > mode="java" />
    >
    > <xsl:if test="name($notmod[1]) != 'methodname'">
    > <xsl:apply-templates select="$notmod[1]" mode="java" />
    > </xsl:if>
    > <xsl:apply-templates select="methodname" mode="java" />
    > </xsl:variable>
    > <fo:block wrap-option='wrap' white-space-collapse='false'
    > linefeed-treatment="preserve"
    > xsl:use-attribute-sets="monospace.verbatim.properties">
    > <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
    > <xsl:attribute name="space-before.optimum">0em</xsl:attribute>
    > <xsl:attribute name="space-before.maximum">0em</xsl:attribute>
    > <xsl:attribute name="space-after.minimum">0em</xsl:attribute>
    > <xsl:attribute name="space-after.optimum">0em</xsl:attribute>
    > <xsl:attribute name="space-after.maximum">0em</xsl:attribute>
    > <xsl:copy-of select="$decl" />
    > <xsl:text>(</xsl:text>
    >
    > <xsl:variable name="decl-length">
    > <xsl:call-template name="get-decl-length">
    > <xsl:with-param name="indent"
    > select="string-length($decl)" />
    > </xsl:call-template>
    > </xsl:variable>
    >
    > <xsl:variable name="decl-first-param-length">
    > <xsl:call-template name="get-decl-first-param-length">
    > <xsl:with-param name="indent"
    > select="string-length($decl)" />
    > </xsl:call-template>
    > </xsl:variable>
    >
    > <xsl:variable name="decl-last-line">
    > <xsl:choose>
    > <xsl:when test="contains($decl, ' ')">
    > <xsl:value-of select="substring-after($decl,
    > ' ')" />
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:value-of select="$decl" />
    > </xsl:otherwise>
    > </xsl:choose>
    > </xsl:variable>
    > <xsl:variable name="max-param-length">
    > <xsl:for-each select="methodparam">
    > <xsl:sort select="string-length(concat(type, ' ',
    > parameter))"
    > data-type="number" />
    > <xsl:if test="position() = last()">
    > <xsl:value-of
    > select="string-length(concat(type, ' ', parameter))" />
    > </xsl:if>
    > </xsl:for-each>
    > </xsl:variable>
    >
    >
    > <xsl:variable name="indent">
    > <xsl:choose>
    > <xsl:when
    > test="((string-length($decl-last-line) +
    > $max-param-length) > $line-length)
    > and (string-length($decl-last-line) > ($line-length -
    > $max-param-length))">
    > <xsl:value-of select="$line-length -
    > $max-param-length + 1" />
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:value-of
    > select="string-length($decl-last-line) + 1" />
    > </xsl:otherwise>
    > </xsl:choose>
    > </xsl:variable>
    > <xsl:apply-templates select="methodparam" mode="java">
    > <xsl:with-param name="indent" select="$indent" />
    > <xsl:with-param name="decl-length" select="$decl-length" />
    > <xsl:with-param name="decl-first-param-length"
    > select="$decl-first-param-length" />
    > </xsl:apply-templates>
    > <xsl:text>)</xsl:text>
    > <xsl:if test="exceptionname">
    > <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    > <xsl:text>&RE;    throws </xsl:text>
    > </fo:inline>
    > <xsl:apply-templates select="exceptionname"
    > mode="java" />
    > </xsl:if>
    > <xsl:if test="modifier[preceding-sibling::*[name(.) !=
    > 'modifier']]">
    > <xsl:text> </xsl:text>
    > <xsl:apply-templates select="$end-modifiers"
    > mode="java" />
    > </xsl:if>
    > <xsl:text>;</xsl:text>
    > </fo:block>
    > <xsl:call-template name="synop-break" />
    > </xsl:template>
    >
    > <xsl:template match="ooclass" mode="java">
    > <xsl:if test="position() > 1">
    > <xsl:text>, </xsl:text>
    > </xsl:if>
    > <xsl:apply-templates mode="java" />
    > </xsl:template>
    >
    > <xsl:template match="oointerface" mode="java">
    > <xsl:choose>
    > <xsl:when test="name(preceding-sibling::*[1]) = 'oointerface'">
    > <xsl:text>,&RE;             </xsl:text>
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:text></xsl:text>
    > </xsl:otherwise>
    > </xsl:choose>
    > <xsl:apply-templates mode="java" />
    > </xsl:template>
    >
    > <xsl:template match="classname" mode="java">
    > <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
    > <xsl:text>, </xsl:text>
    > </xsl:if>
    > <fo:inline xsl:use-attribute-sets="synopsis.name">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > </xsl:template>
    >
    > <xsl:template match="interfacename" mode="java">
    > <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
    > <xsl:text>, </xsl:text>
    > </xsl:if>
    > <fo:inline xsl:use-attribute-sets="synopsis.name">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > </xsl:template>
    >
    > <xsl:template match="exceptionname" mode="java">
    > <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
    > <xsl:text>,&RE;           </xsl:text>
    > </xsl:if>
    > <fo:inline xsl:use-attribute-sets="synopsis.name">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > </xsl:template>
    >
    > <xsl:template match="methodname" mode="java">
    > <fo:inline xsl:use-attribute-sets="synopsis.name">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > </xsl:template>
    >
    > <xsl:template match="methodparam" mode="java">
    > <xsl:param name="indent" select="0"/>
    > <xsl:param name="decl-length" select="0" />
    > <xsl:param name="decl-first-param-length" select="0" />
    > <xsl:if
    > test="not(preceding-sibling::methodparam) and
    > $decl-first-param-length > $line-length">
    > <xsl:text>&RE;</xsl:text>
    > <xsl:if test="$indent > 0">
    > <xsl:call-template name="copy-string">
    > <xsl:with-param name="string" select="' '" />
    > <xsl:with-param name="count" select="$indent" />
    > </xsl:call-template>
    > </xsl:if>
    > </xsl:if>
    > <xsl:if test="preceding-sibling::methodparam">
    > <xsl:choose>
    > <xsl:when test="$decl-length > $line-length">
    > <xsl:text>,&RE;</xsl:text>
    > <xsl:if test="$indent > 0">
    > <xsl:call-template name="copy-string">
    > <xsl:with-param name="string" select="' '" />
    > <xsl:with-param name="count"
    > select="$indent" />
    > </xsl:call-template>
    > </xsl:if>
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:text>, </xsl:text>
    > </xsl:otherwise>
    > </xsl:choose>
    > </xsl:if>
    > <xsl:apply-templates mode="java" />
    > </xsl:template>
    >
    > <xsl:template name="get-decl-length">
    > <xsl:param name="indent">
    > 0
    > </xsl:param>
    > <xsl:variable name="buffer">
    > <xsl:for-each select="methodparam">
    > <xsl:if test="position()>1">
    > <xsl:text>, </xsl:text>
    > </xsl:if>
    > <xsl:value-of select="type" />
    > <xsl:text> </xsl:text>
    > <xsl:value-of select="parameter" />
    > <xsl:text> </xsl:text>
    > </xsl:for-each>
    > </xsl:variable>
    > <xsl:value-of select="$indent + string-length($buffer)" />
    > </xsl:template>
    >
    > <xsl:template name="get-decl-first-param-length">
    > <xsl:param name="indent">
    > 0
    > </xsl:param>
    > <xsl:variable name="buffer">
    > <xsl:value-of select="methodparam[1]/type" />
    > <xsl:text> </xsl:text>
    > <xsl:value-of select="methodparam[1]/parameter" />
    > <xsl:text> </xsl:text>
    > </xsl:variable>
    > <xsl:value-of select="$indent + string-length($buffer)" />
    > </xsl:template>
    >
    > <xsl:template match="type" mode="java">
    > <fo:inline keep-together="always" wrap-option="no-wrap"
    > xsl:use-attribute-sets="synopsis.type">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > <xsl:text> </xsl:text>
    > </xsl:template>
    >
    > <xsl:template match="varname" mode="java">
    > <fo:inline xsl:use-attribute-sets="synopsis.name">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > <xsl:choose>
    > <xsl:when test="name(.. ) = 'fieldsynopsis'">
    > <xsl:if test="count(../initializer) > 0">
    > <xsl:text> </xsl:text>
    > </xsl:if>
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:text> </xsl:text>
    > </xsl:otherwise>
    > </xsl:choose>
    > </xsl:template>
    >
    > <xsl:template match="parameter" mode="java">
    > <fo:inline xsl:use-attribute-sets="synopsis.name">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > </xsl:template>
    >
    > <xsl:template match="modifier" mode="java">
    > <xsl:choose>
    > <xsl:when test="@role = 'annotation'">
    > <fo:inline xsl:use-attribute-sets="synopsis.annotation">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > </xsl:when>
    > <xsl:otherwise>
    > <fo:inline xsl:use-attribute-sets="synopsis.keyword">
    > <xsl:apply-templates mode="java" />
    > </fo:inline>
    > </xsl:otherwise>
    > </xsl:choose>
    >
    > <xsl:choose>
    > <xsl:when test="@role = 'annotation'">
    > <xsl:choose>
    > <xsl:when test="local-name(..)='ooclass'">
    > <xsl:text>&RE;</xsl:text>
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:text>&RE;  </xsl:text>
    > </xsl:otherwise>
    > </xsl:choose>
    > </xsl:when>
    > <xsl:otherwise>
    > <xsl:text> </xsl:text>
    > </xsl:otherwise>
    > </xsl:choose>
    > </xsl:template>
    >
    > </xsl:stylesheet>
    >
    >
    > Am 29.10.2015 um 17:58 schrieb Torsten Stolpmann:
    >> Hi Bob,
    >>
    >> sounds reasonable.
    >>
    >> A tempting approach would be to check if the match is not the first
    >> occurrence of ooclass|oointerface|ooexception in a classsynopsis and
    >> there is a following sibling instead (including moving the choose
    >> statement behind the span).
    >>
    >> Then again this might of course break other stuff I do not now about.
    >>
    >> Please let me know if I can assist in getting this resolved in a
    >> future release.
    >>
    >> Do you need a bug filed for this at the Sourceforge Tracker?
    >>
    >> Regards,
    >>
    >> Torsten
    >>
    >> On 29.10.2015 17:38, Bob Stayton wrote:
    >>> Hi Torsten,
    >>> Thanks for the report. It is unfortunate that it wasn't filed as a bug
    >>> report earlier so it could be fixed. I'm unclear how to fix this as I'm
    >>> not very familiar with the synop templates. I'm concerned about
    >>> introducing further bugs into a release that's about to go out.
    >>>
    >>> Bob Stayton
    >>> Sagehill Enterprises
    >>> bobs@sagehill.net
    >>>
    >>> On 10/29/2015 3:25 AM, Torsten Stolpmann wrote:
    >>>> Hi Bob,
    >>>>
    >>>> we use DBDoclet (http://www.dbdoclet.org/) to auto-generate
    >>>> API-Documentation for DocBook.
    >>>>
    >>>> Using the DocBook 1.79.0 stylesheets for html and fo output formats,
    >>>> the
    >>>> following behavior also occurred with prior stylesheet versions:
    >>>>
    >>>> When rendering a derived class in java the following output appears
    >>>> (notice the trailing comma):
    >>>>
    >>>> public final class Foo extends,
    >>>> Bar
    >>>> {
    >>>> }
    >>>>
    >>>> The corresponding Docbook source generated by DBDoclet looks like the
    >>>> following:
    >>>>
    >>>>

    >>>>
    >>>> <para>The Foo class.</para>
    >>>>

    >>>>
    >>>> <classsynopsis class="class" language="java">
    >>>> <ooclass>
    >>>> <modifier>public</modifier>
    >>>> <modifier>final</modifier>
    >>>> <modifier>class</modifier>
    >>>> <classname>Foo</classname>
    >>>> </ooclass>
    >>>> <ooclass>
    >>>> <classname>
    >>>> Bar
    >>>> </classname>
    >>>> </ooclass>
    >>>> </classsynopsis>
    >>>>

    >>>>

    >>>>
    >>>> I think this is rooted in the implementation of the following match
    >>>> which does not recognize being called from a classsynopsis:
    >>>>
    >>>> <xsl:template match="ooclass|oointerface|ooexception" mode="java">
    >>>> <xsl:choose>
    >>>> <xsl:when test="preceding-sibling::*">
    >>>> <xsl:text>, </xsl:text>
    >>>> </xsl:when>
    >>>> <xsl:otherwise>
    >>>> <xsl:text> </xsl:text>
    >>>> </xsl:otherwise>
    >>>> </xsl:choose>
    >>>>
    >>>> <xsl:apply-templates select="." mode="common.html.attributes"/>
    >>>> <xsl:call-template name="id.attribute"/>
    >>>> <xsl:apply-templates mode="java"/>
    >>>>

    >>>> </xsl:template>
    >>>>
    >>>> I think that the dbdoclet output is correct and this is a bug in the
    >>>> stylesheets.
    >>>>
    >>>> Otherwise the 1.79.0 release seems to be working great over here.
    >>>>
    >>>> Regards,
    >>>>
    >>>> Torsten
    >>>>
    >>>> ---------------------------------------------------------------------
    >>>> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >>>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>>>
    >>>>
    >>>>
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >