[xsl-fo] : Does FO support reusable style definition, similar to CSS?

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 on Yahoo! TV. 
--0-1936895249-1183578315=:5004
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div>Hi,</div>  <div>&nbsp;</div>  <div>Newbie question, please:</div>  <div>Does FO support 'reusable formatting' definitions, similar to CSS "Class" ?<BR>For example, suppose I have a document with 2 types of text: <BR>- Heading, using font size 20pt<BR>- Content, using font size 13pt<BR><BR>So , a naiive approach produces this page:<BR>&lt;fo:block font-size=<?XML:NAMESPACE PREFIX = FO /><FO:BLOCK font-size="<font" color="navy">"20pt"</FONT>&gt; Some Heading&nbsp; &lt;/fo:block&gt;</FO:BLOCK><BR>&lt;fo:block font-size=<FO:BLOCK font-size="<font" color="navy">"13pt"</FONT>&gt; Some&nbsp;content...&nbsp; &lt;/fo:block&gt;</FO:BLOCK><BR>&lt;fo:block font-size=<FO:BLOCK font-size="<font" color="navy">"20pt"</FONT>&gt; More&nbsp;Heading&nbsp; &lt;/fo:block&gt;</FO:BLOCK><BR>&lt;fo:block font-size=<FO:BLOCK font-size="<font" color="navy">"13pt"</FONT>&gt;&nbsp;More content...&nbsp; &lt;/fo:block&gt;</FO:BLOCK><BR><BR><BR>But this is difficult to maintain&nbsp;(e.g if I change
 my mind and want&nbsp;all headings to be 25pt).</div>  <div>Is there a better way ? Does FO support something like the 'Class' notion of CSS , so that&nbsp;you&nbsp;declare that&nbsp;'MyHeading' means 'font size of 20', and&nbsp;from now on use it, something like:</div>  <div>&nbsp;&lt;fo:block class='MyHeading'&gt;</div>  <div>&nbsp;</div>  <div><FO:BLOCK class=myHeading><BR>Thanks very much !</FO:BLOCK></div><p>&#32;
      <hr size=1>Ready for the edge of your seat? 
<a href="http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/">Check out tonight's top picks</a> on Yahoo! TV. 


--0-1936895249-1183578315=:5004--

Received on Wednesday, 4 July 2007 23:18:56 UTC