Do I get you right that you seek something like the styles available in Microsoft Word or OpenOffice Writer? There is no direct equivalent to this in XSL-FO. What you can do, though, if you're working with XSLT is working with xsl:attribute-set (a feature of XSLT), for example.
Other than that you only have the clever cascading of style attributes. Most style attributes are inherited from parent elements if they aren't specified. Here's a simple example: [..] <fo:block font-family="MyFont" font-size="10pt"> <fo:block font-weight="bold" font-size="12pt">MyTitle</fo:block> <fo:block>Some paragraph</fo:block> <fo:block>Some paragraph</fo:block> <fo:block>Some paragraph</fo:block> <fo:block font-weight="bold" font-size="12pt">MyTitle</fo:block> <fo:block>Some <fo:inline font-style="italic">paragraph<fo:inline></fo:block> </fo:block> [..] A third posibility may be to have a two stage XSLT process where you define an intermediate XML format that makes use of style names. You then have to create an XSL stylesheet that can translate those styles to their XSL-FO commands. In the end there are lots of possibilities to do what you want, just maybe not the easy one you seek. I hope that helps. On 23.02.2003 20:19:36 Moataz Omar wrote: > What should I do to give the text a paragraph style name or a character > style name, I mean that I give the text a style name. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
