[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Howto customize title for legalnotice
Did not work :( <xsl:attribute-set name="formal.title.properties"> <xsl:attribute name="color"> <xsl:choose> <xsl:when test = "self::legalnotice">red</xsl:when> <xsl:otherwise>black</xsl:otherwise> </xsl:choose> </xsl:attribute> Did try to go thru the fo/titlepage.xsl -> formal.object.heading -> formal.title.properties. I believe that it should have workerd, but like some other issues that I have posted, i am loosing faith the the 'fop'. Will setup and use standalone xslt processor and see if it makes difference. ~spr Hi, The test is failing because the context node is legalnotice, not legalnotice/title. A legalnotice is handled by the template with match="legalnotice" and mode="titlepage.mode" in fo/titlepage.xsl. It calls the formal.object.heading template, with the context still being the legalnotice element. That template applies the formal.title.properties attribute set. So change: parent::legalnotice to self::legalnotice and it should work. Most of the templates handling titles work with the container of the title through most of the process. That's largely because a given element's title could come from more than one element, e.g., book/title or book/info/title. I don't know of a command line tool that reveals which templates are being used. If someone writes one, please let me know! I generally use an XSL debugger like Oxygen when I have to follow the template sequence. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net -- View this message in context: http://www.nabble.com/Howto-customize-title-for-legalnotice-tf4568304.html#a13056929 Sent from the docbook apps mailing list archive at Nabble.com.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]