I created the following template in the xsl which is using the fo tags:
<xsl:template match="B">
<fo:inline font-weight="bold">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
As per my understanding if in this xsl i write <fo:block> This is a <B> test </B> </fo:block>, the result should be displayed with "test" in bold.
But the "test" is not getting displayed at all. Surely I am making a mistake, what is it ?
"Amit Garg" <[EMAIL PROTECTED]>
06/08/2004 11:56 AM
|
To: <[EMAIL PROTECTED]> cc: Subject: RE: Is there any equivalent for CSS in XSL-FO |
Hi,
You can create your own template for creating the standard formatting attributes. You only need to use that template in each page and by this you can reuse the tags.
-----Original Message-----
From: Amita Rathore [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 11:46 AM
To: [EMAIL PROTECTED]
Subject: Is there any equivalent for CSS in XSL-FO
Hi All,
I am creating a pdf which needs a lot of formatting. Defining the same font size, color for multiple inlines is redundant.
I am looking forward to something similar to CSS. So that I define the formatting at one place and then can reuse the tag whereever required.
Thanks,
--------------------------------------------------------------
Amita Rathore