<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Block Financial (Block Financial) -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
	<xsl:strip-space elements="*"/>
	<!-- return the band index within which the ETI falls -->
	<xsl:template match="UsrAcc/Year/NonCash/Contribution/Event/Entry">
		<xsl:copy>
			<xsl:copy-of select="@*|node()"/>
			<xsl:choose>
				<xsl:when test="(@category='Art&#47;Collectibles') and (@evalMethod != 'Appraisal') and (@evalMethod != 'Comparable Sales') and (@evalMethod != 'Catalog')">
					<xsl:attribute name="evalMethod">Catalog</xsl:attribute>
				</xsl:when>
				<xsl:when test="(@category='Stock&#47;Bonds&#47;MutualFunds') and ((not(@pubTraded)) or (@pubTraded != 'No'))">
					<xsl:attribute name="pubTraded">Yes</xsl:attribute>
				</xsl:when>
				<xsl:when test="(@category='Other-Unlisted Item') and ((@quality='') or (@quantity=''))">
					<xsl:attribute name="quality">Average</xsl:attribute>
					<xsl:attribute name="quantity">1</xsl:attribute>
				</xsl:when>
			</xsl:choose>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Year/NonCash/Contribution/Event">
		<xsl:copy>
			<!-- need specialized UsrAcc/Year/NonCash/Contribution/Event/Entry -->
			<xsl:copy-of select='@*|node()[name(.) != "Entry"]'/>
			<xsl:choose>
				<xsl:when test="(@evtCat='Art&#47;Collectibles') and (@evtEvalmethod != 'Appraisal') and (@evtEvalmethod != 'Comparable Sales') and (@evtEvalmethod != 'Catalog')">
					<xsl:attribute name="evtEvalmethod">Catalog</xsl:attribute>
				</xsl:when>
				<xsl:when test="(@evtCat='Stock&#47;Bonds&#47;MutualFunds') and ((not(@evtPubTrd)) or (@evtPubTrd != 'No'))">
					<xsl:attribute name="evtPubTrd">Yes</xsl:attribute>
				</xsl:when>
				<xsl:when test="@evtCat='General'">
					<xsl:attribute name="evtCat">Clothing/Household Items</xsl:attribute>
					<xsl:attribute name="evtDesc">Clothing/Household Items</xsl:attribute>
				</xsl:when>
			</xsl:choose>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Year/NonCash/Contribution">
		<xsl:copy>
			<!-- need specialized UsrAcc/Year/NonCash/Contribution/Event/Entry -->
			<xsl:copy-of select='@*|node()[name(.) != "Event"]'/>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Year/NonCash">
		<xsl:copy>
			<!-- need specialized UsrAcc/Year/NonCash/Contribution/Event/Entry -->
			<xsl:copy-of select='@*|node()[name(.) != "Contribution"]'/>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Year/Cash">
		<xsl:copy>
			<xsl:copy-of select='@*|node()'/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Year/OPE">
		<xsl:copy>
			<xsl:copy-of select='@*|node()'/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Year/OtherD">
		<xsl:copy>
			<xsl:copy-of select='@*|node()'/>
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Year">
		<xsl:if test="@yr = 2007">
			<xsl:copy>
				<xsl:copy-of select="@*"/>
				<xsl:apply-templates/>
			</xsl:copy>
			<Year yr="2008" ZX="0">
				<Cash ZX="0"/>
				<NonCash ZX="0"/>
				<OPE ZX="0"/>
				<OtherD ZX="0"/>
			</Year>
		</xsl:if>
	</xsl:template>
	<xsl:template match="UsrAcc/Organizations/Organization">
		<xsl:copy>
			<xsl:copy-of select="@name"/>
			<xsl:copy-of select="@addr"/>
			<xsl:attribute name="miles"/>
			<xsl:copy-of select="@*[not(name()='name' or name()='addr')]"/>			
		</xsl:copy>
	</xsl:template>
	<xsl:template match="UsrAcc/Organizations">
		<xsl:copy>
			<xsl:copy-of select="@*|node()[not(name(.)='Organization')]"/>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>	
	<xsl:template match="UsrAcc">
		<xsl:copy>
			<xsl:copy-of select='@name'/>
			<xsl:copy-of select='@verNo'/>
			<xsl:copy-of select='@fName'/>	
			<xsl:copy-of select='@mName'/>
			<xsl:copy-of select='@lName'/>
			<xsl:attribute name="suffix"/>
			<xsl:copy-of select="@tbi"/>
			<xsl:copy-of select="@filingstatus"/>			
			<xsl:attribute name="ssn"/>			
			<xsl:copy-of select="@som"/>
			<xsl:attribute name="valUpdID">2007.0</xsl:attribute>
			<xsl:copy-of select='@*[not(name()="name" or name()="verNo" or name()="fName" or name()="mName" or name()="lName" or name()="tbi" or name()="filingstatus" or name()="ssn" or  name()="som" or name()="valUpdID" )]'/>
			<xsl:copy-of select='node()[name(.) != "Year" and name(.) != "Organizations"]'/>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>
</xsl:stylesheet>
