<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns="urn:schemas-bex-biz:Invoice-v3" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:schemas-bex-biz:Invoice-v3">
	<xsl:output indent="yes" method="xml"/>
	<xsl:template match="/">
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="StartInvoice">
		<xsl:element name="Invoice">
			<xsl:apply-templates/>
		</xsl:element>
	</xsl:template>
	<xsl:template match="Invlin">
		<xsl:element name="InvoiceLine">
			<xsl:element name="InvoiceLineType">
				<xsl:attribute name="invoiceLineTypeCode">
					<xsl:value-of select="LineType"/>
				</xsl:attribute>
				<xsl:choose>
					<xsl:when test="LineType='GDS'">Goods and Services</xsl:when>
					<xsl:when test="LineType='CHG'">Charges</xsl:when>
					<xsl:when test="LineType='ALC'">Discounts</xsl:when>
					<xsl:otherwise>Unrecognized code</xsl:otherwise>
				</xsl:choose>
			</xsl:element>
		</xsl:element>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="input.xml" userelativepaths="yes" externalpreview="no" url="input.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="output.xml" destSchemaRoot="Invoice" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="input.xml" srcSchemaRoot="StartInvoice" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="xsl:apply&#x2D;templates" x="188" y="0"/></template><template match="StartInvoice"><block path="xsl:element/xsl:apply&#x2D;templates" x="188" y="80"/></template><template match="Invlin"><block path="xsl:element/xsl:choose" x="238" y="50"/><block path="xsl:element/xsl:choose/=[0]" x="192" y="44"/><block path="" x="68" y="80"/><block path="xsl:element/xsl:choose/=[1]" x="192" y="72"/><block path="xsl:element/xsl:choose/=[2]" x="192" y="80"/></template></MapperBlockPosition><TemplateContext><template match="StartInvoice" mode="" srcContextPath="/StartInvoice" srcContextFile="file:///c:/c/SSDN&#x2D;bugs/gavin/input.xml" targetContextPath="/Invoice" targetContextFile="file:///c:/c/SSDN&#x2D;bugs/gavin/output.xml"/><template match="Invlin" mode="" srcContextPath="" srcContextFile="" targetContextPath="/Invoice/InvoiceLine" targetContextFile="file:///c:/c/ssdn&#x2D;bugs/gavin/output.xml"/></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->