invoice-transparent.xslt example

<!--
                 FOR DEMO USE ONLY
       Copyright by Artem Saveliev artem@savelev.com
-->

<?xml version="1.0"	encoding="UTF-8" ?>
<xsl:stylesheet	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"

	xmlns:fox="http://xml.apache.org/fop/extensions" xmlns:print="http://www.broadstr.com/xslfoPrinter">

	<xsl:output	method="xml" indent="yes" omit-xml-declaration="no"	/>

	<xsl:param name="printerName"></xsl:param>
	<xsl:param name="fileName"></xsl:param>

	<xsl:param name="useForm">yes</xsl:param>

	<xsl:include href="invoice.xslt" />

	<xsl:template match="/">
		<fo:root xmlns:fox="http://xml.apache.org/fop/extensions" xmlns:cat="http://www.tridec.com/ecatalog/catalogschema"

			xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:print="http://www.broadstr.com/xslfoPrinter">

			<print:printManifest>

				<!--<out>
					<outputType>file</outputType>
					<format>pdf</format>
					<location><xsl:value-of select="$fileName" /></location>

				</out>
				<out>
					<outputType>print</outputType>
					<format>ps</format>
					<location><xsl:value-of select="$printerName" /></location>

					<tray>2</tray>
				</out>-->
				<out>
					<outputType>screen</outputType>

					<format>pdf</format>
				</out>
			</print:printManifest>
			<xsl:apply-templates select="objects" mode="invoice" />

		</fo:root>
	</xsl:template>


	

	<xsl:attribute-set name="title-cell" use-attribute-sets="title">

	</xsl:attribute-set>


	<xsl:attribute-set name="title-text">

		<xsl:attribute name="font-weight">normal</xsl:attribute>
		<xsl:attribute name="font-family">sans-serif</xsl:attribute>

		<xsl:attribute name="font-size">7pt</xsl:attribute>
		<xsl:attribute name="color">white</xsl:attribute>

		<xsl:attribute name="text-align">center</xsl:attribute>
	</xsl:attribute-set>

	
	<xsl:attribute-set name="title-row">
		<xsl:attribute name="height">0.2in</xsl:attribute>

	</xsl:attribute-set>


	<xsl:attribute-set name="head-cell" use-attribute-sets="head">

	</xsl:attribute-set>


	<xsl:attribute-set name="head-text">

		<xsl:attribute name="font-weight">normal</xsl:attribute>
		<xsl:attribute name="font-family">sans-serif</xsl:attribute>

		<xsl:attribute name="font-size">9pt</xsl:attribute>
		<xsl:attribute name="color">black</xsl:attribute>

		<xsl:attribute name="text-align">center</xsl:attribute>
	</xsl:attribute-set>

	
	<xsl:attribute-set name="head-row">
		<xsl:attribute name="height">0.24in</xsl:attribute>

	</xsl:attribute-set>



	<xsl:attribute-set name="line-cell">

		<xsl:attribute name="border-left-width">0.5pt</xsl:attribute>
		<xsl:attribute name="display-align">center</xsl:attribute>

	</xsl:attribute-set>
	
	<xsl:attribute-set name="line-text" use-attribute-sets="text">

		<xsl:attribute name="text-align">center</xsl:attribute>
		<xsl:attribute name="padding-top">0.03in</xsl:attribute>

	</xsl:attribute-set>
	
	<xsl:attribute-set name="line-row">

		<xsl:attribute name="height">0.15in</xsl:attribute>
	</xsl:attribute-set>



	<xsl:attribute-set name="head-table">
		<xsl:attribute name="table-layout">fixed</xsl:attribute>

		<xsl:attribute name="border-left-width">0.7pt</xsl:attribute>
		<xsl:attribute name="border-right-width">0.7pt</xsl:attribute>

	</xsl:attribute-set>



	<xsl:attribute-set name="box">

		<xsl:attribute name="table-layout">fixed</xsl:attribute>
		<xsl:attribute name="border-width">0.7pt</xsl:attribute>

	</xsl:attribute-set>
	
	
	<!-- Abstract attributes -->


	<xsl:attribute-set name="head">

		<xsl:attribute name="border-style">none</xsl:attribute>
		<xsl:attribute name="border-width">0.5pt</xsl:attribute>

		<xsl:attribute name="display-align">center</xsl:attribute>
	</xsl:attribute-set>

	
	<xsl:attribute-set name="title">
		<xsl:attribute name="border-style">none</xsl:attribute>

		<xsl:attribute name="border-width">0.5pt</xsl:attribute>
		<xsl:attribute name="display-align">center</xsl:attribute>

	</xsl:attribute-set>

	<xsl:attribute-set name="text">

		<xsl:attribute name="font-weight">normal</xsl:attribute>
		<xsl:attribute name="font-family">sans-serif</xsl:attribute>

		<xsl:attribute name="font-size">9pt</xsl:attribute>
		<xsl:attribute name="color">black</xsl:attribute>

	</xsl:attribute-set>

	<xsl:attribute-set name="prePrintedText">

	</xsl:attribute-set>

</xsl:stylesheet>