<?xml version='1.0' ?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output name="labelName" method="xml" indent="yes"/>
	<xsl:output name="upc" method="xml" indent="yes"/>
	<xsl:template match="/">
	<xsl:for-each-group select="document/*" group-starting-with="release">
    <xsl:result-document href="section{position()}.html">  
		<document>
			<xsl:for-each select="music_database/label/product">
				<release>
					<xsl:attribute name="title">
						<xsl:value-of select="product_title"/>
					</xsl:attribute>
					<xsl:attribute name="labelName">
						<xsl:value-of select="../label_name"/>
					</xsl:attribute>
					<xsl:attribute name="catalogNumber">
						<xsl:value-of select="cat_number"/>
					</xsl:attribute>
					<xsl:attribute name="releaseDate">
						<xsl:value-of select="scheduled_release_date"/>
					</xsl:attribute>
					<xsl:attribute name="upc">
						<xsl:value-of select="upc"/>
					</xsl:attribute>
					<xsl:attribute name="coverArtFilename"><xsl:text>FLO_</xsl:text>
						<xsl:value-of select="cat_number"/><xsl:text>.jpg</xsl:text>
					</xsl:attribute>
					<track-list>
						<xsl:for-each select="track">
							<track>
								<xsl:attribute name="title">
									<xsl:value-of select="track_title"/>
								</xsl:attribute>
								<xsl:attribute name="mixTitle">
									<xsl:value-of select="track_version"/>
								</xsl:attribute>
								<xsl:attribute name="artistName">
									<xsl:value-of select="artist/artist_name"/>
								</xsl:attribute>
								<xsl:attribute name="genreId">
									<xsl:value-of select="style_labeldef"/>
								</xsl:attribute>
								<xsl:attribute name="length">
									<xsl:value-of select="duration"/>
								</xsl:attribute>
								<xsl:attribute name="isrc">
									<xsl:value-of select="isrc"/>
								</xsl:attribute>
								<xsl:attribute name="composer">
									<xsl:value-of select="composer"/>
								</xsl:attribute>
								<xsl:attribute name="lyricist">
									<xsl:value-of select="lyricist"/>
								</xsl:attribute>
								<xsl:attribute name="wavFilename">
									<xsl:value-of select="track_key"/><xsl:text>.wav</xsl:text>
								</xsl:attribute>
							</track>
						</xsl:for-each>
					</track-list>
				</release>
			</xsl:for-each>
			</document>
			</xsl:result-document>
</xsl:for-each-group>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="BreakpointStylus" userelativepaths="yes" externalpreview="no" url="20070301151501.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="" ><advancedProp name="sInitialMode" value=""/><advancedProp name="bXsltOneIsOkay" value="true"/><advancedProp name="bSchemaAware" value="false"/><advancedProp name="bXml11" value="false"/><advancedProp name="iValidation" value="0"/><advancedProp name="bExtensions" value="true"/><advancedProp name="iWhitespace" value="0"/><advancedProp name="sInitialTemplate" value=""/><advancedProp name="bTinyTree" value="true"/><advancedProp name="bWarnings" value="true"/><advancedProp name="bUseDTD" value="false"/></scenario></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="MappingOutput.xml" destSchemaRoot="document" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="20070301151501.xml" srcSchemaRoot="music_database" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="document/xsl:for&#x2D;each/release/track&#x2D;list/xsl:for&#x2D;each" x="286" y="114"/><block path="document/xsl:for&#x2D;each" x="146" y="79"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->