Re: Use the role attribute to select <mediaobject>
Steinar Bang <[email protected]> Tue, 18 Mar 2003 21:31:52 +0100
| Newsgroups | gmane.text.docbook.db2latex.devel |
|---|---|
| Organization | Probably a good idea |
| Message-ID | <[email protected]> |
>>>>> James Devenish <[email protected]>: > - If we are to support $use.role.for.mediaobject and > $preferred.mediaobject.role, we would have to choose a role (such > as the existing 'html' or 'fo') that corresponds to DB2LaTeX/LaTeX. Why not use a new role value? "tex"? Or "latex"? Then you could add a new <imageobject> for use by DB2LaTeX. The new use of role was done without any changes to the DTD, so the value of role is still defined to be #CDATA. Here's an example of how I currently use this approach: <mediaobject> <imageobject role="html"> <imagedata fileref="images/press_enter.png" format="PNG"/> </imageobject> <imageobject role="fo"> <imagedata fileref="images/press_enter.png" format="PNG" depth="5cm" scalefit="1"/> </imageobject> </mediaobject> If I were to use this with DB2LaTeX, as well as the current HTML and XSL:FO, I would add an extra <imageobject>, with scaling and role "latex", ie.: <mediaobject> <imageobject role="html"> <imagedata fileref="images/press_enter.png" format="PNG"/> </imageobject> <imageobject role="fo"> <imagedata fileref="images/press_enter.png" format="PNG" depth="5cm" scalefit="1"/> </imageobject> <imageobject role="latex"> <imagedata fileref="images/press_enter.png" format="PNG" depth="5cm" scalefit="1"/> </imageobject> </mediaobject> ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en