<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8"/><xsl:template match="/">
<XMM_Movie_Database>
	<xsl:for-each select="data/record">
		<Movie>
			<MovieID><xsl:value-of select="videodata/videoid"/></MovieID>
			<Title><xsl:value-of select="videodata/title"/></Title>
			<Media><xsl:value-of select="videodata/format"/></Media>
			<Genre><xsl:value-of select="videodata/contentsmaingenrelist/maingenre"/></Genre>
			<Year><xsl:value-of select="videodata/releaseyear"/></Year>
			<Length><xsl:value-of select="videodata/length"/></Length>
			<Plot></Plot>
			<Cover><xsl:value-of select="videodata/image1/filename"/></Cover>
			<PersonalRating>0</PersonalRating>
			<URL></URL>
			<Purchase></Purchase>
			<Actors>
			</Actors>
			<Director></Director>
			<Position><xsl:value-of select="videodata/referenceno"/></Position>
			<Country></Country>
			<UPC><xsl:value-of select="videodata/barcode"/></UPC>
			<Rating></Rating>
		</Movie>
	</xsl:for-each>
</XMM_Movie_Database>
</xsl:template>

</xsl:stylesheet>