- From: Jim Donnelly <jdonnelly@saleslogix.com>
- Date: Tue, 23 Sep 2003 09:51:37 -0700
- To: <www-xsl-fo@w3.org>
- Message-ID: <D87AAFD855AD0A4DA3EF32A0618361750169579E@mail.interactcommerce.com>
Hi; Can Formatted Objects be embedded within Formatted Objects? I'm trying to create side-by-side calendars on the same page. Each calendar has a separate and unique header. I've been able to create the side-by side calenders but, each page only contains one header and I need two. In other words each calender needs to be treated as a separate document. That's why I'm trying a different approach. See master styesheet below. The master calls Show_DayCalendar templates, once for each Calendar. The Show_DayCalendar stylesheet is a complete formated template, including root, <fo:layout-master-set> etc... When I run the master stylesheet I get an error Error: root must be root element Any ideas?? <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:include href="DayCalendar525.xsl"/> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="ACTCalendar"> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="calendar-page" page-height="8.5in" page-width="11.0in"> <fo:region-body region-name="calendar-activities" margin-left="0.25in" margin-right="0.25in" margin-top="1.25in" margin-bottom="0.25in"/> </fo:simple-page-master> </fo:layout-master-set> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Main loop once for each Calendar --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <xsl:for-each select="DayCalendar"> <fo:page-sequence master-reference="calendar-page"> <fo:flow flow-name="calendar-activities"> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Calculate the Start and end times based on the number of avaliable Slots --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <fo:table> <fo:table-column column-width="5.25in"/> <fo:table-column column-width="5.25in"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block> <xsl:call-template name="Show_DayCalendar"> </xsl:call-template> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block> <xsl:call-template name="Show_DayCalendar"> </xsl:call-template> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </fo:page-sequence> </xsl:for-each> </fo:root> </xsl:template> </xsl:stylesheet> This e-mail message and all attachments transmitted with it may be confidential and are intended solely for the addressee(s). If you are not the intended recipient or the person responsible for delivering it to the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachment(s) is strictly prohibited. If you receive this email in error, please immediately notify the sender of the message or Best Software, Inc. by e-mailing postmaster@bestsoftware.com and destroy all copies of this message. Best Software, for the protection of our internal systems and those of our customers, does block most email attachments.
Received on Tuesday, 23 September 2003 12:53:29 UTC