<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by LEGO (LEGO) -->
<fo:root media-usage="auto" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rp="http://nistor/report-schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nistor/report-schema ../schemas/report.xsd" xsi:type="rp:root_type_report">
	<rp:params>
		<rp:param name="date-start" required="true"/>
		<rp:param name="date-end" required="false"/>
	</rp:params>
	<rp:recordsets/>
	<fo:layout-master-set>
		<fo:simple-page-master margin-bottom="0.25in" margin-left="0.5in" margin-right="0.5in" margin-top="0.25in" master-name="first" page-height="8.5in" page-width="11in">
			<fo:region-body margin-bottom="0.5in" margin-top="0.5in"/>
			<fo:region-before extent="0.5in"/>
			<fo:region-after extent="0.5in"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="first">
		<fo:static-content flow-name="xsl-region-after">
			<fo:block font-size="10pt" line-height="14pt" text-align="start">Page <fo:page-number/>
			</fo:block>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body" xsi:type="rp:flow_type_report">
			<rp:data>
				<rp:recordsets>
					<rp:recordset name="master">
						<rp:sql><![CDATA[select top 50 Suppliers.CompanyName,Products.ProductName,Products.CategoryID,Categories.CategoryName,Products.UnitsInStock,Products.UnitPrice,Products.UnitsInStock*Products.UnitPrice as ProductPrice	FROM Suppliers INNER JOIN (Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID) ON Suppliers.SupplierID = Products.SupplierID ORDER BY CategoryName]]></rp:sql>
					</rp:recordset>
				</rp:recordsets>
				<fo:block font="Helvetica" font-size="20pt" space-after="0.5in" space-before="0.5in" text-align="center" xsi:type="rp:block_type_report">Products Report: <rp:param-value format="date(MM/dd/yy)" param-reference="date-start"/> - <rp:param-value format="date(MM/dd/yy)" param-reference="date-end"/>
				</fo:block>
				<rp:group group-field-name="CategoryID">
					<fo:block font-weight="bold" space-after="0.25in" space-before="0.25in" text-align="left" text-indent="0.5in" xsi:type="rp:block_type_report">Category: <rp:field-value field-name="CategoryName" recordset-reference="master"/>
					</fo:block>
					<fo:table font-size="10pt" line-height="20pt">
						<fo:table-column column-width="3in"/>
						<fo:table-column column-width="4.5in"/>
						<fo:table-column column-width="1in"/>
						<fo:table-column column-width="1in"/>
						<fo:table-body border-bottom-style="double" border-bottom-width="medium">
							<fo:table-row>
								<fo:table-cell>
									<fo:block font-weight="bold" text-align="center">Product</fo:block>
								</fo:table-cell>
								<fo:table-cell>
									<fo:block font-weight="bold" text-align="center">Supplier</fo:block>
								</fo:table-cell>
								<fo:table-cell>
									<fo:block font-weight="bold" text-align="center">Units</fo:block>
								</fo:table-cell>
								<fo:table-cell>
									<fo:block font-weight="bold" text-align="center">Price</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<rp:detail>
						<fo:table font-size="10pt" line-height="25pt">
							<fo:table-column column-width="3in"/>
							<fo:table-column column-width="4.5in"/>
							<fo:table-column column-width="1in"/>
							<fo:table-column column-width="1in"/>
							<fo:table-body>
								<fo:table-row background-color="white" border-end-style="solid" border-end-width="thin">
									<fo:table-cell>
										<fo:block font-weight="normal" text-align="left" xsi:type="rp:block_type_report">
											<rp:field-value field-name="ProductName" recordset-reference="master"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block font-weight="normal" text-align="left" xsi:type="rp:block_type_report">
											<rp:field-value field-name="CompanyName" recordset-reference="master"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block font-weight="normal" text-align="center" xsi:type="rp:block_type_report">
											<rp:field-value field-name="UnitsInStock" recordset-reference="master"/>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block font-weight="normal" text-align="right" xsi:type="rp:block_type_report">
											<rp:field-value field-name="UnitPrice" recordset-reference="master" format="currency"/>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
					</rp:detail>
					<fo:table font-size="10pt" line-height="20pt">
						<fo:table-column column-width="8.5in"/>
						<fo:table-column column-width="1in"/>
						<fo:table-body border-top-style="double" border-top-width="medium">
							<fo:table-row>
								<fo:table-cell>
									<fo:block font-weight="bold" text-align="left" text-indent="0.5in" xsi:type="rp:block_type_report">Total price:</fo:block>
								</fo:table-cell>
								<fo:table-cell>
									<fo:block font-weight="bold" text-align="right" xsi:type="rp:block_type_report">
										<rp:aggregate-value aggregate="SUM" field-datatype="Double" field-name="ProductPrice" recordset-reference="master" format="currency"/>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
				</rp:group>
				<fo:table font-size="10pt" line-height="20pt">
					<fo:table-column column-width="8.5in"/>
					<fo:table-column column-width="1in"/>
					<fo:table-body border-top-style="double" border-top-width="medium">
						<fo:table-row>
							<fo:table-cell>
								<fo:block font-weight="bold" text-align="left" xsi:type="rp:block_type_report">Total
                                    price:</fo:block>
							</fo:table-cell>
							<fo:table-cell>
								<fo:block font-weight="bold" text-align="right" xsi:type="rp:block_type_report">
									<rp:aggregate-value aggregate="SUM" field-datatype="Double" field-name="ProductPrice" recordset-reference="master" format="currency"/>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</rp:data>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

