You could also customize the template with match="figure" in fo/formal.xsl. Oddly enough, the template for example elements peeks into the mediaobject to get the align value and uses that for the title, but figure does not. I can't explain the difference. But you could borrow the code from example to customize your figure template.

Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


----- Original Message ----- From: "Etienne Botha" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 28, 2008 11:58 PM
Subject: Re: [docbook-apps] How to change default formatting for Figure Titles




DeanNelson wrote:

I would like to make sure that the TITLE alignment mirrors what the image
alignment is. If I can't do that, I would like to change the default
alignment
for the figure titles.


DocBook FO XSL has an attribute set called "component.title.properties"
which you need to customize to include parent::figure in the test for
text-align to be "center". Or you could get the value of the "align"
attribute of the "graphic" child.

--
View this message in context: http://www.nabble.com/How-to-change-default-formatting-for-Figure-Titles-tp15129230p15154232.html
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]

Reply via email to