[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Howto customize title for legalnotice
Hmm, I cut and pasted your attribute-set into a simple customization layer based on 1.73.2 fo/docbook.xsl, processed a short book with xsltproc and fop 0.94, and it worked. I also processed it with the fop shell script, and that worked as well. That is, the legalnotice title was rendered in red on the verso titlepage, while other formal titles appeared in black. Have you tried it with a minimal customization layer to see if something else is affecting it? Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "spr" <spremi@yahoo.com> To: <docbook-apps@lists.oasis-open.org> Sent: Friday, October 05, 2007 3:39 AM 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. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]