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
[EMAIL PROTECTED]
----- Original Message -----
From: "spr" <[EMAIL PROTECTED]>
To: <[email protected]>
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
[EMAIL PROTECTED]
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]