OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Footnote marks missing

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']">
ÂÂÂ <!--for a multiline text citation -->
ÂÂÂ <fo:block xsl:use-attribute-sets="zitatlayout.properties">
ÂÂÂÂÂ <xsl:apply-templates/>
ÂÂÂ </fo:block>
 <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 name="figure.properties">
ÂÂÂ <xsl:attribute name="keep-together.within-column">
ÂÂÂÂÂ <xsl:choose>
ÂÂÂÂÂÂÂ <xsl:when test="count(d:mediaobject) &gt; 1">inherit</xsl:when>
ÂÂÂÂÂÂÂ <xsl:otherwise>always</xsl:otherwise>
ÂÂÂÂÂ </xsl:choose>
ÂÂÂ </xsl:attribute>
 <xsl:template match="d:para[not(parent::d:footnote)]"> <!-- In compacted lists adjust the para distance -->
ÂÂÂ <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>

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"> <!-\- In kompakten Listen para-Abstand
anpassen -\->
This templates overrides the following template that injects footnote
marks into the footnote:

<xsl:template match="d:footnote/d:para[1]
  <!-- this only works if the first thing in a footnote is a para, -->
  <!-- which is ok, because it usually is. -->
    <xsl:call-template name="format.footnote.mark">
      <xsl:with-param name="mark">
        <xsl:apply-templates select="ancestor::d:footnote"

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



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

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]