It looks like you have the xsl:attribute-set as a child of the fo:flow. I believe it needs to be a child of the root document to work correctly.
-----Original Message----- From: Manuel Reyes [mailto:[EMAIL PROTECTED] Sent: 24 November, 2003 11:37 To: [EMAIL PROTECTED] Subject: RE: attribute-set Well I did as you suggested and ran the files through xalan I have included the data files and the xalan outputs below. What seems to be happening is that when FOP/XALAN processes the files rather then but the parameters into the fo:block that calls them it insert into the fo:flow section, so if I do not define an attribute on another block it is overridden with the attribute-set parameters. <!-- attribute-set-test.xsl --> <fo:flow flow-name="xsl-region-body" font-size="10pt"> <xsl:attribute-set name="title_block"> <xsl:attribute name="font-size"><xsl:value-of select="report_generics/title_font_size"/></xsl:attribute> <xsl:attribute name="font-weight"><xsl:value-of select="report_generics/title_font_weight"/></xsl:attribute> <xsl:attribute name="text-align"><xsl:value-of select="report_generics/title_text_align"/></xsl:attribute> </xsl:attribute-set> <fo:block xsl:use-attribute-sets="title_table_block">TEST USING ATTRIBUTE SET</fo:block> <fo:block text-align="left">LEFT ALIGN</fo:block> <fo:block text-align="left" font-weight="bold">LEFT ALIGN / BOLD</fo:block> <fo:block text-align="right">RIGHT ALIGN</fo:block> <fo:block text-align="right" font-weight="bold" font-size="20pt">RIGHT ALIGN / BOLD / 20pt FONT</fo:block> </fo:flow> <!-- attribute-set-test.xml --> <?xml version="1.0" encoding="UTF-8"?> <data> <report_generics> <title_font_size>10pt</title_font_size> <title_font_weight>bold</title_font_weight> <title_text_align>right</title_text_align> </report_generics> </data> <!-- XALAN output using BOLD in XML data file --> <fo:flow font-size="10pt" flow-name="xsl-region-body" font-weight="bold" text-align="right"> <fo:block>TEST USING ATTRIBUTE SET</fo:block> <fo:block text-align="left">LEFT ALIGN</fo:block> <fo:block font-weight="bold" text-align="left">LEFT ALIGN / BOLD</fo:block> <fo:block font-weight="bold" text-align="right">RIGHT ALIGN / BOLD</fo:block> <fo:block font-size="20pt" font-weight="bold" text-align="right">RIGHT ALIGN / BOLD / 20pt FONT</fo:block> </fo:flow> <!-- XALAN output using NORMAL in XML data file --> <fo:flow font-size="10pt" flow-name="xsl-region-body" font-weight="normal" text-align="right"> <fo:block>TEST USING ATTRIBUTE SET</fo:block> <fo:block text-align="left">LEFT ALIGN</fo:block> <fo:block font-weight="bold" text-align="left">LEFT ALIGN / BOLD</fo:block> <fo:block font-weight="bold" text-align="right">RIGHT ALIGN / BOLD</fo:block> <fo:block font-size="20pt" font-weight="bold" text-align="right">RIGHT ALIGN / BOLD / 20pt FONT</fo:block> </fo:flow> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------- -- Visit our Internet site at http://www.reuters.com Get closer to the financial markets with Reuters Messaging - for more information and to register, visit http://www.reuters.com/messaging Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]