Hi Clay, I really appreciate your time to clarify my confusion. Yes, of course I did learn a very useful topic about xsl:attribute-set. Your document has given me quite a detail idea of its usage. I can also follow the same pattern for writing my FO template.
Thank you very much. Jasmin -----Original Message----- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 12:30 PM To: [EMAIL PROTECTED] Subject: Re: xsl-fo question for <fo:block> Jasmin, My bad, you can ignore this. I created a "template" for building my pages, and I created a set of attributes. Normally, the top of my FO template includes an xsl:attribute-set section and I left it off of the "template". Sorry for any confusion for leaving that in there (although it did give you the opportunity to learn a bit about the xsl:attribute-set... ;-p Have a nice day! Web Maestro Clay p.s. For your viewing pleasure, here's the top of my normal document, to give you an idea of how an xsl:attribute-set would be used. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- Version 1.2 - Last Modified 2003/03/05 by CL --> <!-- ATTRIBUTES and VARIABLES SECTION - begin --> <xsl:attribute-set name="attNormal"> <!-- attNormal | attribute set: font-family,font-size,color & background-color) of entire EOR --> <xsl:attribute name="background-color">#ffffff</xsl:attribute> <!-- background-color for overall EOR page - default:#ffffff (white) --> <xsl:attribute name="color">#000000</xsl:attribute> <!-- color for text - default:#000000 (black) --> <xsl:attribute name="font-family">courier new, courier, monospace</xsl:attribute> <!-- font-family for text - default:"courier new,courier,monospace" --> <!-- NOTE: Changes to font-family affects FOP rendering of EOR and may require overhaul of template! --> <xsl:attribute name="font-size">8pt</xsl:attribute> <!-- font-size for text - default:8pt - --> <!-- NOTE: Changes to font-size DRASTICALLY affects FOP rendering of EOR and may require COMPLETE overhaul of template! --> </xsl:attribute-set> <xsl:variable name="varNormalBGColor">#ffffff</xsl:variable> <!-- varNormalBGColor | background-color for EOR - default:#ffffff (white) --> <xsl:variable name="varHeadingBGColor">#dddddd</xsl:variable> <!-- varHeadingBGColor | background-color for "headings" (e.g., Reduction Explanation) - default:#dddddd (light gray) --> <xsl:variable name="varAccentBGColor">#ccffff</xsl:variable> <!-- varAccentBGColor | background-color for highlights (e.g., alternating ICD9/Bill Detail lines.) - default:#ccffff (teal) --> <xsl:variable name="varWIWCHeading2BGColor">#999999</xsl:variable> <!-- varWIWCHeading2BGColor | background-color for Tally table "heading" areas (WIWC Percentage Tally Chart) - default=#999999 (gray) --> <!-- varHeadingFontSize | font-size for Headings - default=9pt - --> <xsl:variable name="varHeadingFontSize">9pt</xsl:variable> <!-- ATTRIBUTES and VARIABLES SECTION - end --> Jasmin Mehta wrote: > Hello Clay, > > I did understand the whole code. But couldn't get the meaning for > > xsl:use-attribute-sets="attNormal" in <fo:block> > > Can you pl explain? > > Thanks > Jasmin > > -----Original Message----- > From: Clay Leeds [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 11:41 AM > To: [EMAIL PROTECTED] > Subject: Re: xsl-fo question for <fo:block> > > Jasmin, > > Jasmin Mehta wrote: > >>I haven't create any table yet in my xsl-fo. I don't know how to do > > it? > >>Can you pl help me with small example? > > > You mean something like this?: > > ;-P > > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <xsl:template match="/document"> > <fo:root> > <!-- defines page layout --> > <fo:layout-master-set> > <fo:simple-page-master master-name="repeating" > page-height="28cm" page-width="22cm" margin-top="1cm" > margin-bottom="1.3cm" margin-left="1cm" margin-right="1cm"> > <fo:region-body margin-bottom="6.5cm" margin-top="7.6cm"/> > <fo:region-before extent="7.6cm"/> > <fo:region-after extent="6.5cm"/> > </fo:simple-page-master> > <fo:page-sequence-master master-name="repeating_pm"> > <fo:repeatable-page-master-reference > master-name="repeating"/> > </fo:page-sequence-master> > </fo:layout-master-set> > <!-- DEFINE PAGE SEQUENCE - repeating --> > <fo:page-sequence master-reference="repeating"> > <fo:static-content flow-name="xsl-region-before"> > <fo:block padding="0pt" xsl:use-attribute-sets="attNormal"> > <xsl:call-template name="tmpHeader"/> > </fo:block> > </fo:static-content> > <fo:static-content flow-name="xsl-region-after"> > <fo:block xsl:use-attribute-sets="attNormal"> > <xsl:call-template name="tmpFooter"/> > </fo:block> > </fo:static-content> > <fo:flow flow-name="xsl-region-body"> > <fo:block> > <xsl:call-template name="tmpBody"/> > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > </xsl:template> -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc --------------------------------------------------------------------- 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]