:-)

Also remember (I believe) that this is a property which gets inherited, so that although the templates which get called don't have those attributes specified within them, they inherit the property through to all fo:block (etc.) element children. The only ones which don't keep the attributes are those which are manually overridden.

BTW, the <xsl:attribute-set/> element is included from an external file referenced by all of my xsl-fo documents:

<!--         Include XSL-FO stylesheet: Global Attributes and Variables -->
<xsl:include href="xml_med7.fo"/>

Web Maestro Clay

On Jan 18, 2005, at 12:42 PM, Luke Shannon wrote:
Hah hah. Just like that. Thanks!

----- Original Message -----
From: "The Web Maestro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 18, 2005 3:39 PM
Subject: Re: Centralizing Fonts

On Jan 18, 2005, at 12:26 PM, Luke Shannon wrote:
Hello;

I have looked around for examples of this but have not found anything.

Is there a way to define all the attributes (font-family,
start-indent, etc)
for fo:block used in the document?

Thanks,

Luke

You mean like this?

:-p

<xsl:attribute-set name="attributes_GLOBAL">
<!-- background-color for overall EOR page - default:#ffffff (white)
-->
<xsl:attribute name="background-color">#ffffff</xsl:attribute>
<!-- color for text - default:#000000 (black) -->
<xsl:attribute name="color">#000000</xsl:attribute>
<!-- font-family for text - default:"courier new, courier,
monospace" -->
<xsl:attribute name="font-family">courier new, courier,
monospace</xsl:attribute>
<!-- NOTE: Changes to font-family affects FOP rendering of EOR and
may require overhaul of template! -->
<!-- font-size for text - default:8pt - -->
<xsl:attribute name="font-size">8pt</xsl:attribute>
<!-- NOTE: Changes to font-size DRASTICALLY affects FOP rendering
of EOR and may require COMPLETE overhaul of template! -->
</xsl:attribute-set>

<fo:page-sequence master-reference="repeating"
force-page-count="no-force">
<fo:static-content flow-name="xsl-region-before">
<fo:block padding="0pt" xsl:use-attribute-sets="attributes_GLOBAL">
<xsl:call-template name="tmpHeader"/>
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block xsl:use-attribute-sets="attributes_GLOBAL">
<xsl:call-template name="tmpFooter"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block xsl:use-attribute-sets="attributes_GLOBAL">
<xsl:call-template name="tmpBody"/>
<fo:block padding="0pt" font-size="1pt">
<fo:marker marker-class-name="table-continued"/>
</fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>

Web Maestro Clay
--
<[EMAIL PROTECTED]> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Web Maestro Clay -- <[EMAIL PROTECTED]> - <http://homepage.mac.com/webmaestro/> My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to