docbook-apps

  • 1.  Processing instructions ignored in biblioentry and bibliomixed

    Posted 01-13-2013 00:07
    I have FO processing instructions to insert punctuation such as
    apostrophes and dashes. Typical PIs are:

    <xsl:template match="processing-instruction('apos')">
    <fo:character character="’"/>
    <xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="processing-instruction('endash')">
    <fo:character character="–"/>
    <xsl:apply-templates/>
    </xsl:template>

    These do not work for text that is within biblioentry or bibliomixed
    elements. Other combinations of elements do work, such as text in a
    <citetitle> element that is not nested in biblioentry or bibliomixed.
    There is nothing in either of those templates that excludes processing
    instructions, so I'm wondering what else might be affecting this.





  • 2.  Re: [docbook-apps] Processing instructions ignored in biblioentry and bibliomixed

    Posted 01-14-2013 21:58
    Hi Dave,
    The reason they don't work is because everything inside biblioentry is
    processed in mode="bibliography.mode" and everything inside bibliomixed is
    processed in mode="bibliomixed.mode". It uses modes because many
    bibliography elements are rearranged for presentation.

    If you use both biblioentry and bibliomixed elements, you will need a set of
    templates for both modes.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net

    --------------------------------------------------
    From: "Xmplar" <info@xmplar.biz>
    Sent: Saturday, January 12, 2013 4:07 PM
    To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
    Subject: [docbook-apps] Processing instructions ignored in biblioentry and
    bibliomixed

    > I have FO processing instructions to insert punctuation such as
    > apostrophes and dashes. Typical PIs are:
    >
    > <xsl:template match="processing-instruction('apos')">
    > <fo:character character="’"/>
    > <xsl:apply-templates/>
    > </xsl:template>
    >
    > <xsl:template match="processing-instruction('endash')">
    > <fo:character character="–"/>
    > <xsl:apply-templates/>
    > </xsl:template>
    >
    > These do not work for text that is within biblioentry or bibliomixed
    > elements. Other combinations of elements do work, such as text in a
    > <citetitle> element that is not nested in biblioentry or bibliomixed.
    > There is nothing in either of those templates that excludes processing
    > instructions, so I'm wondering what else might be affecting this.
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >