Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally style bookmark titles #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tgraham-antenna
Copy link
Contributor

XSL 1.1 supports some styling of bookmark titles (aligned with what PDF supports): https://www.w3.org/TR/xsl11/#fo_bookmark-title

I am using this change with (elsewhere):

    <xsl:template name="bookmark.title.style">
      <xsl:param name="key" select="local-name()"/>

      <xsl:if test="$key = 'book'">
        <xsl:attribute name="color">
          <xsl:value-of select="$muk.blue" />
        </xsl:attribute>
        <xsl:attribute name="font-weight">bold</xsl:attribute>
      </xsl:if>
    </xsl:template>

XSL 1.1 supports some styling of bookmark titles (aligned with what PDF supports): https://www.w3.org/TR/xsl11/#fo_bookmark-title

I am using this change with (elsewhere):

````
    <xsl:template name="bookmark.title.style">
      <xsl:param name="key" select="local-name()"/>

      <xsl:if test="$key = 'book'">
        <xsl:attribute name="color">
          <xsl:value-of select="$muk.blue" />
        </xsl:attribute>
        <xsl:attribute name="font-weight">bold</xsl:attribute>
      </xsl:if>
    </xsl:template>
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant