I assume here that you have a data model that allows figure titles to be before or after or else only before and that you can't change your data model. What I do is hid the figure title in it's normal location and then regenerate it where I want it.
1. Create a user formatting element, maybe _ufe:FigureTitle for a name. 2. In Print/PDF, mark the figure title element to be hidden. 3. In Print/PDF, add a _ufe:FigureTitle in gentext after for your figure. 4. In Print/PDF, use an XPath expression to get the context for the figure title to use as gentext for the _ufe:FigureTitle.
As I have been telling people, "UFEs are your friend".
You can even do this same trick in the Editor but there is one drawback. The displayed figure title is generated text which the Editor does not let you edit directly and the actual figure title tag is hidden. You can still edit the figure title tag by using the Document Map but this is kind of indirect.
I discovered this trick when I was working on a stylersheet to use AXDocBook for writing specifications. We wanted to use <revhistory> at the chapter level but the datamodel says that <revhistory> is contained in <chapterinfo> which is an optional tag which must come before the tag for the chapter. So our revision histories were appearing before the chapter titles, just wrong.
John Dreystadt Director of Product Management Arbortext
I don't really know much about Styler, because I never use it. Generally, if the title occurs immediately after the figure, you don't need to do anything except make sure that it has "block" formatting, i.e. a text break before and after it. If the title occurs before the figure, you need to save its contents as a variable, and then generate text by placing that same variable after the figure. I know how to do this in FOSI and XSLT, but I do not know the buttons, dialogs, field entries, etc. that you would specifically need for Styler.
I've always said that authors are sly, cunning and devious and bear considerable watching. If there is away to get what they want from the DTD, they'll get there.
I kind of borrowed this from the (seen it referenced as both) Army and/or Navy officers manual from the 70's (the 1870's) the said "Enlisted men are stupid, but extremely sly, cunning and bear considerable watching." Being retired enlisted, I both resent and resemble that remark. 🙂