Subject: Re: class and graphic in FO?
From: yan bai <bytj@xxxxxxxxx>
Date: Sat, 22 Dec 2001 13:05:47 -0800 (PST)
|
Thank you so much, Jeni and Ken.
I am able to use a class-like attribute-set to format
the page now. That is really a smart and clean way.
I also used the external-graphic to display a picture.
I've not checked the book as Ken suggested. But I'll
do so.
Yan
--- Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> wrote:
> Hi Yan,
>
> > Just began to work on a project by using XSL-FO.
> As in html page, we
> > can use CSS to define a class to format a html
> page. I am wondering
> > how I can define a class to do a similar trick b/c
> it is very
> > cumbersome for me to set the text formatting for
> every <fo:block>.
>
> If you're generating XSL-FO using XSLT (as is
> intended), attribute
> sets can be really useful. Define an attribute set
> for each 'class',
> so things like:
>
> <xsl:attribute-set name="paragraph">
> <xsl:attribute name="font-size">12</xsl:attribute>
> <xsl:attribute
> name="text-align">justify</xsl:attribute>
> ...
> </xsl:attribute-set>
>
> You can then use an attribute set on a particular
> fo:block with
> xsl:use-attribute-sets:
>
> <fo:block xsl:use-attribute-sets="paragraph">
> ...
> </fo:block>
>
> Attribute sets can be based on other attribute sets,
> and you can use
> several attribute sets on any particular element if
> you want to (in
> effect having several classes).
>
> Cheers,
>
> Jeni
>
> ---
> Jeni Tennison
> http://www.jenitennison.com/
>
>
> XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
>
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: XPath Question., (continued)
- Avula, Raj - Fri, 21 Dec 2001 13:53:07 -0500 (EST)
- yan bai - Fri, 21 Dec 2001 14:35:24 -0500 (EST)
- G. Ken Holman - Fri, 21 Dec 2001 16:53:40 -0500 (EST)
- Jeni Tennison - Sat, 22 Dec 2001 03:53:34 -0500 (EST)
- yan bai - Sat, 22 Dec 2001 16:05:04 -0500 (EST) <=
- yan bai - Mon, 31 Dec 2001 10:45:49 -0500 (EST)
- Avula, Raj - Fri, 21 Dec 2001 17:53:26 -0500 (EST)
|
|