W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2007

(no subject)

From: Roland Neilands <rneilands@pulsemining.com.au>
Date: Thu, 05 Jul 2007 09:58:42 +1000
Message-ID: <468C3432.4010506@pulsemining.com.au>
To: sol myr <solmyr72@yahoo.com>
CC: www-xsl-fo@w3.org

Sol,

If you're using XSLT to create your FO, then you can use attribute-sets 
for this.

Regards,
Roland 


sol myr wrote:
> Hi,
>  
> Newbie question, please:
> Does FO support 'reusable formatting' definitions, similar to CSS 
> "Class" ?
> For example, suppose I have a document with 2 types of text:
> - Heading, using font size 20pt
> - Content, using font size 13pt
>
> So , a naiive approach produces this page:
> <fo:block font-size="20pt"> Some Heading  </fo:block>
> <fo:block font-size="13pt"> Some content...  </fo:block>
> <fo:block font-size="20pt"> More Heading  </fo:block>
> <fo:block font-size="13pt"> More content...  </fo:block>
>
>
> But this is difficult to maintain (e.g if I change my mind and 
> want all headings to be 25pt).
> Is there a better way ? Does FO support something like the 'Class' 
> notion of CSS , so that you declare that 'MyHeading' means 'font size 
> of 20', and from now on use it, something like:
>  <fo:block class='MyHeading'>
>  
>
> Thanks very much !
>
> ------------------------------------------------------------------------
> Ready for the edge of your seat? Check out tonight's top picks 
> <http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/> on Yahoo! TV. 
Received on Thursday, 5 July 2007 00:00:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:14 GMT