docbook-apps

  • 1.  Footnote marks missing

    Posted 02-08-2019 12:50
    In my book I noticed that footnote marks are missing. I didnot change
    anything with respect to footnote marks in the configuration of oxygen
    or in the customization file. I use oxygen 20.1 and the inbuilt saxon
    6.5 to produce a pdf.

    I need some advice to have footnote marks at the footnote:




    The "a" is not used before "Die Begriffe..."

    Regards
    Bernhard
    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




  • 2.  Re: [docbook-apps] Footnote marks missing

    Posted 02-08-2019 16:11
    That's odd.  My footnotes are numbered, not lettered.  How is it that
    your footnotes are lettered?  Can you supply a sample of the markup you
    used?

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 2/8/2019 4:49 AM, Bernhard Kleine wrote:
    >
    > In my book I noticed that footnote marks are missing. I didnot change
    > anything with respect to footnote marks in the configuration of oxygen
    > or in the customization file. I use oxygen 20.1 and the inbuilt saxon
    > 6.5 to produce a pdf.
    >
    > I need some advice to have footnote marks at the footnote:
    >
    >
    >
    >
    > The "a" is not used before "Die Begriffe..."
    >
    > Regards
    > Bernhard
    > --
    > spitzhalde9
    > D-79853 lenzkirch
    > bernhard.kleine@gmx.net
    > www.b-kleine.com,www.urseetal.net
    > -
    > thunderbird mit enigmail
    > GPG schlüssel: D5257409
    > fingerprint:
    > 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



  • 3.  Re: [docbook-apps] Footnote marks missing

    Posted 02-08-2019 16:18
    die Schmetterlinge<footnote label="a">
                    <para>Die Begriffe Falter und Schmetterling sind meines
    Wissens gleichbedeutend und
                        werden in gleichem Sinne verwendet.</para>
                </footnote> vor,

    Am 08.02.2019 um 17:11 schrieb Bob Stayton:
    >
    > That's odd.  My footnotes are numbered, not lettered.  How is it that
    > your footnotes are lettered?  Can you supply a sample of the markup
    > you used?
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    > On 2/8/2019 4:49 AM, Bernhard Kleine wrote:
    >>
    >> In my book I noticed that footnote marks are missing. I didnot change
    >> anything with respect to footnote marks in the configuration of
    >> oxygen or in the customization file. I use oxygen 20.1 and the
    >> inbuilt saxon 6.5 to produce a pdf.
    >>
    >> I need some advice to have footnote marks at the footnote:
    >>
    >>
    >>
    >>
    >> The "a" is not used before "Die Begriffe..."
    >>
    >> Regards
    >> Bernhard
    >> --
    >> spitzhalde9
    >> D-79853 lenzkirch
    >> bernhard.kleine@gmx.net
    >> www.b-kleine.com, www.urseetal.net
    >> -
    >> thunderbird mit enigmail
    >> GPG schlüssel: D5257409
    >> fingerprint:
    >> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




  • 4.  Re: [docbook-apps] Footnote marks missing

    Posted 02-08-2019 17:10
    Hi Bernhard,

    I just copied and pasted your example into my document and processed it
    with Oxygen's default docbook PDF transformation, and I see the footnote
    mark "a" in both the paragraph and before the footnote paragraph.  The
    stylesheet uses the same template to generate the mark, so I'm not sure
    why it is not working for you.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 2/8/2019 8:18 AM, Bernhard Kleine wrote:
    >
    >  die Schmetterlinge<footnote label="a">
    >                 <para>Die Begriffe Falter und Schmetterling sind
    > meines Wissens gleichbedeutend und
    >                     werden in gleichem Sinne verwendet.</para>
    >             </footnote> vor,
    >
    > Am 08.02.2019 um 17:11 schrieb Bob Stayton:
    >>
    >> That's odd.  My footnotes are numbered, not lettered.  How is it that
    >> your footnotes are lettered?  Can you supply a sample of the markup
    >> you used?
    >>
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >> On 2/8/2019 4:49 AM, Bernhard Kleine wrote:
    >>>
    >>> In my book I noticed that footnote marks are missing. I didnot
    >>> change anything with respect to footnote marks in the configuration
    >>> of oxygen or in the customization file. I use oxygen 20.1 and the
    >>> inbuilt saxon 6.5 to produce a pdf.
    >>>
    >>> I need some advice to have footnote marks at the footnote:
    >>>
    >>>
    >>>
    >>>
    >>> The "a" is not used before "Die Begriffe..."
    >>>
    >>> Regards
    >>> Bernhard
    >>> --
    >>> spitzhalde9
    >>> D-79853 lenzkirch
    >>> bernhard.kleine@gmx.net
    >>> www.b-kleine.com,www.urseetal.net
    >>> -
    >>> thunderbird mit enigmail
    >>> GPG schlüssel: D5257409
    >>> fingerprint:
    >>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
    > --
    > spitzhalde9
    > D-79853 lenzkirch
    > bernhard.kleine@gmx.net
    > www.b-kleine.com,www.urseetal.net
    > -
    > thunderbird mit enigmail
    > GPG schlüssel: D5257409
    > fingerprint:
    > 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



  • 5.  Re: [docbook-apps] Footnote marks missing

    Posted 02-08-2019 17:21
    I did the same and got a footnote mark. Using the previous  oxygen
    configuration but not my customization file (attached) I got the
    footnote mark. I cannot see what it is in the customization that blocks
    footnote marks.

    Please help

    Regards

    Bernhard

    Am 08.02.2019 um 18:09 schrieb Bob Stayton:
    >
    > Hi Bernhard,
    >
    > I just copied and pasted your example into my document and processed
    > it with Oxygen's default docbook PDF transformation, and I see the
    > footnote mark "a" in both the paragraph and before the footnote
    > paragraph.  The stylesheet uses the same template to generate the
    > mark, so I'm not sure why it is not working for you.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    > On 2/8/2019 8:18 AM, Bernhard Kleine wrote:
    >>
    >>  die Schmetterlinge<footnote label="a">
    >>                 <para>Die Begriffe Falter und Schmetterling sind
    >> meines Wissens gleichbedeutend und
    >>                     werden in gleichem Sinne verwendet.</para>
    >>             </footnote> vor,
    >>
    >> Am 08.02.2019 um 17:11 schrieb Bob Stayton:
    >>>
    >>> That's odd.  My footnotes are numbered, not lettered.  How is it
    >>> that your footnotes are lettered?  Can you supply a sample of the
    >>> markup you used?
    >>>
    >>> Bob Stayton
    >>> Sagehill Enterprises
    >>> bobs@sagehill.net
    >>> On 2/8/2019 4:49 AM, Bernhard Kleine wrote:
    >>>>
    >>>> In my book I noticed that footnote marks are missing. I didnot
    >>>> change anything with respect to footnote marks in the configuration
    >>>> of oxygen or in the customization file. I use oxygen 20.1 and the
    >>>> inbuilt saxon 6.5 to produce a pdf.
    >>>>
    >>>> I need some advice to have footnote marks at the footnote:
    >>>>
    >>>>
    >>>>
    >>>>
    >>>> The "a" is not used before "Die Begriffe..."
    >>>>
    >>>> Regards
    >>>> Bernhard
    >>>> --
    >>>> spitzhalde9
    >>>> D-79853 lenzkirch
    >>>> bernhard.kleine@gmx.net
    >>>> www.b-kleine.com, www.urseetal.net
    >>>> -
    >>>> thunderbird mit enigmail
    >>>> GPG schlüssel: D5257409
    >>>> fingerprint:
    >>>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
    >> --
    >> spitzhalde9
    >> D-79853 lenzkirch
    >> bernhard.kleine@gmx.net
    >> www.b-kleine.com, www.urseetal.net
    >> -
    >> thunderbird mit enigmail
    >> GPG schlüssel: D5257409
    >> fingerprint:
    >> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




  • 6.  Re: [docbook-apps] Footnote marks missing

    Posted 02-09-2019 16:00
    When I run into a problem like this, I start commenting out templates in
    my customization until I find the one causing the problem, then examine
    that one in more detail.  If you find the culprit but cannot see why it
    is wrong, post it here.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    On 2/8/2019 9:20 AM, Bernhard Kleine wrote:
    >
    > I did the same and got a footnote mark. Using the previous oxygen
    > configuration but not my customization file (attached) I got the
    > footnote mark. I cannot see what it is in the customization that
    > blocks footnote marks.
    >
    > Please help
    >
    > Regards
    >
    > Bernhard
    >
    > Am 08.02.2019 um 18:09 schrieb Bob Stayton:
    >>
    >> Hi Bernhard,
    >>
    >> I just copied and pasted your example into my document and processed
    >> it with Oxygen's default docbook PDF transformation, and I see the
    >> footnote mark "a" in both the paragraph and before the footnote
    >> paragraph.  The stylesheet uses the same template to generate the
    >> mark, so I'm not sure why it is not working for you.
    >>
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >> On 2/8/2019 8:18 AM, Bernhard Kleine wrote:
    >>>
    >>>  die Schmetterlinge<footnote label="a">
    >>>                 <para>Die Begriffe Falter und Schmetterling sind
    >>> meines Wissens gleichbedeutend und
    >>>                     werden in gleichem Sinne verwendet.</para>
    >>>             </footnote> vor,
    >>>
    >>> Am 08.02.2019 um 17:11 schrieb Bob Stayton:
    >>>>
    >>>> That's odd.  My footnotes are numbered, not lettered.  How is it
    >>>> that your footnotes are lettered?  Can you supply a sample of the
    >>>> markup you used?
    >>>>
    >>>> Bob Stayton
    >>>> Sagehill Enterprises
    >>>> bobs@sagehill.net
    >>>> On 2/8/2019 4:49 AM, Bernhard Kleine wrote:
    >>>>>
    >>>>> In my book I noticed that footnote marks are missing. I didnot
    >>>>> change anything with respect to footnote marks in the
    >>>>> configuration of oxygen or in the customization file. I use oxygen
    >>>>> 20.1 and the inbuilt saxon 6.5 to produce a pdf.
    >>>>>
    >>>>> I need some advice to have footnote marks at the footnote:
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>> The "a" is not used before "Die Begriffe..."
    >>>>>
    >>>>> Regards
    >>>>> Bernhard
    >>>>> --
    >>>>> spitzhalde9
    >>>>> D-79853 lenzkirch
    >>>>> bernhard.kleine@gmx.net
    >>>>> www.b-kleine.com,www.urseetal.net
    >>>>> -
    >>>>> thunderbird mit enigmail
    >>>>> GPG schlüssel: D5257409
    >>>>> fingerprint:
    >>>>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
    >>> --
    >>> spitzhalde9
    >>> D-79853 lenzkirch
    >>> bernhard.kleine@gmx.net
    >>> www.b-kleine.com,www.urseetal.net
    >>> -
    >>> thunderbird mit enigmail
    >>> GPG schlüssel: D5257409
    >>> fingerprint:
    >>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
    > --
    > spitzhalde9
    > D-79853 lenzkirch
    > bernhard.kleine@gmx.net
    > www.b-kleine.com,www.urseetal.net
    > -
    > thunderbird mit enigmail
    > GPG schlüssel: D5257409
    > fingerprint:
    > 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09



  • 7.  Re: [docbook-apps] Footnote marks missing

    Posted 02-11-2019 09:04
    I did as you advised. I found the offending template:

    <xsl:template match="d:para"> anpassen -\->
        <xsl:variable name="keep.together">
          <xsl:call-template name="pi.dbfo_keep-together"/>
        </xsl:variable>
        <fo:block xsl:use-attribute-sets="para.properties">
          <xsl:if test="$keep.together != ''">
            <xsl:attribute name="keep-together.within-column"><xsl:value-of
              select="$keep.together"/></xsl:attribute>
          </xsl:if>
          <xsl:if test="ancestor::*/@spacing = 'compact'">
            <xsl:attribute name="space-before.optimum">0.15em</xsl:attribute>
            <xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>
            <xsl:attribute name="space-before.maximum">.2em</xsl:attribute>
            <xsl:attribute name="font-size">12pt</xsl:attribute>
          </xsl:if>
          <xsl:call-template name="anchor"/>
          <xsl:apply-templates/>
        </fo:block>
      </xsl:template>

    As I cannot why this removes footnote marks, maybe you can explain it to
    me and please show how to overcome the problem.

    Bernhard Kleine

    Am 09.02.2019 um 17:00 schrieb Bob Stayton:
    >
    > When I run into a problem like this, I start commenting out templates
    > in my customization until I find the one causing the problem, then
    > examine that one in more detail.  If you find the culprit but cannot
    > see why it is wrong, post it here.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09




  • 8.  Re: [docbook-apps] Footnote marks missing

    Posted 02-11-2019 15:32
    On 11.2.2019 10:03, Bernhard Kleine wrote:
    > I did as you advised. I found the offending template:
    >
    > <xsl:template match="d:para"> > anpassen -\->

    This templates overrides the following template that injects footnote
    marks into the footnote:

    <xsl:template match="d:footnote/d:para[1]
    |d:footnote/d:simpara[1]
    |d:footnote/d:formalpara[1]"
    priority="2">


    <fo:block>
    <xsl:call-template name="format.footnote.mark">
    <xsl:with-param name="mark">
    <xsl:apply-templates select="ancestor::d:footnote"
    mode="footnote.number"/>
    </xsl:with-param>
    </xsl:call-template>
    <xsl:apply-templates/>
    </fo:block>
    </xsl:template>

    The easiest fix would be to change match attribute in your template to

    d:para[not(parent::d:footnote)]


    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML and Web consulting and training services
    DocBook/DITA customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    Bringing you XML Prague conference http://xmlprague.cz
    ------------------------------------------------------------------




  • 9.  Re: [docbook-apps] Footnote marks missing

    Posted 02-11-2019 21:48
    works! Thanks a lot Bernhard

    Am 11.02.2019 um 16:32 schrieb Jirka Kosek:
    > On 11.2.2019 10:03, Bernhard Kleine wrote:
    >> I did as you advised. I found the offending template:
    >>
    >> <xsl:template match="d:para"> >> anpassen -\->
    > This templates overrides the following template that injects footnote
    > marks into the footnote:
    >
    > <xsl:template match="d:footnote/d:para[1]
    > |d:footnote/d:simpara[1]
    > |d:footnote/d:formalpara[1]"
    > priority="2">
    >
    >
    > <fo:block>
    > <xsl:call-template name="format.footnote.mark">
    > <xsl:with-param name="mark">
    > <xsl:apply-templates select="ancestor::d:footnote"
    > mode="footnote.number"/>
    > </xsl:with-param>
    > </xsl:call-template>
    > <xsl:apply-templates/>
    > </fo:block>
    > </xsl:template>
    >
    > The easiest fix would be to change match attribute in your template to
    >
    > d:para[not(parent::d:footnote)]
    >
    >
    > Jirka
    >
    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09





  • 10.  Re: [docbook-apps] Footnote marks missing

    Posted 02-11-2019 22:05
    unfortunately it works only for the preface. for the whole book I
    encountered the following error:

    Ambiguous rule match for /book[1]/part[3]/chapter[1]/para[3]
    Matches both "d:para[not(parent::d:footnote)]" on line 280 of file:/F:/EigeneDateien/Schmetterlingsbuechlein/xslt/fo/Falterbuechlein_4.xsl
    and "d:para[@role = 'zitat']" on line 261 of file:/F:/EigeneDateien/Schmetterlingsbuechlein/xslt/fo/Falterbuechlein_4.xsl


    Do you have a solution?
    Regards Bernhard

     <xsl:template match="d:para[@role = 'zitat']">
       
        <fo:block xsl:use-attribute-sets="zitatlayout.properties">
          <xsl:apply-templates/>
        </fo:block>
      </xsl:template>
      <xsl:attribute-set name="zitatlayout.properties">
        <xsl:attribute name="margin-left">2em</xsl:attribute>
        <xsl:attribute name="margin-right">2em</xsl:attribute>
        <xsl:attribute name="font-size">13pt</xsl:attribute>
      </xsl:attribute-set>
      <xsl:attribute-set name="figure.properties">
        <xsl:attribute name="keep-together.within-column">
          <xsl:choose>
            <xsl:when test="count(d:mediaobject) > 1">inherit</xsl:when>
            <xsl:otherwise>always</xsl:otherwise>
          </xsl:choose>
        </xsl:attribute>
      </xsl:attribute-set>
      <xsl:template match="d:para[not(parent::d:footnote)]">
        <xsl:variable name="keep.together">
          <xsl:call-template name="pi.dbfo_keep-together"/>
        </xsl:variable>
        <fo:block xsl:use-attribute-sets="para.properties">
          <xsl:if test="$keep.together != ''">
            <xsl:attribute name="keep-together.within-column"><xsl:value-of
              select="$keep.together"/></xsl:attribute>
          </xsl:if>
          <xsl:if test="ancestor::*/@spacing = 'compact'">
            <xsl:attribute name="space-before.optimum">0.15em</xsl:attribute>
            <xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>
            <xsl:attribute name="space-before.maximum">.2em</xsl:attribute>
            <xsl:attribute name="font-size">12pt</xsl:attribute>
          </xsl:if>
          <xsl:call-template name="anchor"/>
          <xsl:apply-templates/>
        </fo:block>
      </xsl:template> 

    Am 11.02.2019 um 22:48 schrieb Bernhard Kleine:
    > works! Thanks a lot Bernhard
    >
    > Am 11.02.2019 um 16:32 schrieb Jirka Kosek:
    >> On 11.2.2019 10:03, Bernhard Kleine wrote:
    >>> I did as you advised. I found the offending template:
    >>>
    >>> <xsl:template match="d:para"> >>> anpassen -\->
    >> This templates overrides the following template that injects footnote
    >> marks into the footnote:
    >>
    >> <xsl:template match="d:footnote/d:para[1]
    >> |d:footnote/d:simpara[1]
    >> |d:footnote/d:formalpara[1]"
    >> priority="2">
    >>
    >>
    >> <fo:block>
    >> <xsl:call-template name="format.footnote.mark">
    >> <xsl:with-param name="mark">
    >> <xsl:apply-templates select="ancestor::d:footnote"
    >> mode="footnote.number"/>
    >> </xsl:with-param>
    >> </xsl:call-template>
    >> <xsl:apply-templates/>
    >> </fo:block>
    >> </xsl:template>
    >>
    >> The easiest fix would be to change match attribute in your template to
    >>
    >> d:para[not(parent::d:footnote)]
    >>
    >>
    >> Jirka
    >>
    --
    spitzhalde9
    D-79853 lenzkirch
    bernhard.kleine@gmx.net
    www.b-kleine.com, www.urseetal.net
    -
    thunderbird mit enigmail
    GPG schlüssel: D5257409
    fingerprint:
    08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09