- From: sol myr <solmyr72@yahoo.com>
- Date: Wed, 4 Jul 2007 12:45:15 -0700 (PDT)
- To: www-xsl-fo@w3.org
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> </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><fo:block font-size=<?XML:NAMESPACE PREFIX = FO /><FO:BLOCK font-size="<font" color="navy">"20pt"</FONT>> Some Heading </fo:block></FO:BLOCK><BR><fo:block font-size=<FO:BLOCK font-size="<font" color="navy">"13pt"</FONT>> Some content... </fo:block></FO:BLOCK><BR><fo:block font-size=<FO:BLOCK font-size="<font" color="navy">"20pt"</FONT>> More Heading </fo:block></FO:BLOCK><BR><fo:block font-size=<FO:BLOCK font-size="<font" color="navy">"13pt"</FONT>> More content... </fo:block></FO:BLOCK><BR><BR><BR>But this is difficult to maintain (e.g if I change
my mind and want all headings to be 25pt).</div> <div>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:</div> <div> <fo:block class='MyHeading'></div> <div> </div> <div><FO:BLOCK class=myHeading><BR>Thanks very much !</FO:BLOCK></div><p> 
<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