Centralizing Fonts

2005-01-18 Thread Luke Shannon
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



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



Re: Centralizing Fonts

2005-01-18 Thread Luke Shannon
Sorry, replying to my own post.

fo:flow flow-name=xsl-region-body font-family=Helvetica
start-indent=1em font-size=12pt

There were a bunch of block in the document had font-family Arial, which
doesn't exist, so a default font was being displayed making me think that
the above wasn't working.

- Original Message - 
From: Luke Shannon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 3:26 PM
Subject: Centralizing Fonts


 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



 -
 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]



Re: Centralizing Fonts

2005-01-18 Thread Luke Shannon
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:#ff (white) 
 --
 xsl:attribute name=background-color#ff/xsl:attribute
 !-- color for text - default:#00 (black) --
 xsl:attribute name=color#00/xsl:attribute
 !-- font-family for text - default:courier new, courier, 
 monospace --
 xsl:attribute name=font-familycourier 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-size8pt/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]



Re: Centralizing Fonts

2005-01-18 Thread The Web Maestro
:-)
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:#ff (white)
--
xsl:attribute name=background-color#ff/xsl:attribute
!-- color for text - default:#00 (black) --
xsl:attribute name=color#00/xsl:attribute
!-- font-family for text - default:courier new, courier,
monospace --
xsl:attribute name=font-familycourier 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-size8pt/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]