Re: FW: Defining a font and referencing

At 2003-05-19 14:55 -0400, Jeremy Nix wrote:
>I want to know if it is possible to define a set of fonts...i.e.:
><fo:font size=... weight=... famil=...>
>....
>and then assign id's to them and reference them in <fo:block 
>font="REFERENCE"> tags throughout an xsl document?

Yes, if you are using XSLT to generate your XSL-FO, because XSLT allows you 
to generate the XSL-FO using constructs along the lines of:

<xsl:attribute-set name="my-font-details">
   <xsl:attribute name="font-family">Arial</xsl:attribute>
   <xsl:attribute name="font-weight">bold</xsl:attribute>
   ...
   <xsl:attribute name="font-size">12pt</xsl:attribute>
</xsl:attribute-set>
...
<block xsl:use-attribute-sets="my-font-details">
   ...
</block>

But no, if you are looking for such a construct in the FO vocabulary 
itself.  The XSLT technique produces the FO vocabulary in "long form" with 
all of the attributes attached to the <block> element.  There is no 
referencing in the FO vocabulary of elements and attributes.

I hope this helps.

............. Ken

--
Upcoming hands-on courses: (registration still open!)
-      (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 0-13-140374-5                              Definitive XSL-FO
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-11-X              Practical Formatting Using XSL-FO
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc

Received on Monday, 19 May 2003 15:42:15 UTC