font-size/font-family has no effect

Posted by kman on Stack Overflow See other posts from Stack Overflow or by kman
Published on 2010-05-24T14:18:44Z Indexed on 2010/05/24 14:21 UTC
Read the original article Hit count: 235

Filed under:
|
|

This is a related issue to my previous question.

I have modified the code suggested for preface headings to modify the p tags underneath the headings.

<xsl:template match="topic[title='Preface']/body/section/p">
        <fo:block xsl:use-attribute-sets="preface.p">
            <xsl:apply-imports/>
        </fo:block>
    </xsl:template>

<xsl:attribute-set name="preface.p">
        <xsl:attribute name="font-family">Helvetica</xsl:attribute>
        <xsl:attribute name="color">red</xsl:attribute>
        <xsl:attribute name="font-size">8pt</xsl:attribute>
    </xsl:attribute-set>

The color changes the desired text - and only the desired text, so I know it is grabbing the correct nodes. However, the font family and size have no effect.

Does anyone know of anything I can check that might be over-riding the code?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about font-size