<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- See also amazonheavy_dynaimage.xsl -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="xml" indent="yes" />
	<xsl:template match="ProductInfo/*">
		<?xml-stylesheet href="http://www.usercreations.com/xsl/unfinished.xsl" type="text/xsl"?>
		<springData version="1.0" xmlns="http://www.usercreations.com/spring">
			<type>
				<Book isPrimary="true" />
			</type>
			<attributes>
				<name>
					<xsl:variable name="displayName" select="ProductName" />
					<xsl:choose>
						<xsl:when test="string-length(substring-before($displayName,':')) &gt; 0">
							<xsl:value-of select="substring-before($displayName,':')" />
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$displayName" />
						</xsl:otherwise>
					</xsl:choose>
				</name>
				<xsl:copy-of select="*" />
			</attributes>
			<update>
				<objectUpdateURI>
					http://xml.amazon.com/onca/xml?v=1.0&amp;t=usercreations-20&amp;dev-t=D1HTPQET64F8JH&amp;AsinSearch={Asin}&amp;type=lite&amp;f=http://weblog.infoworld.com/udell/gems/amazonSpring.xsl 
				</objectUpdateURI>
				<actionUpdateURI>
					http://weblog.infoworld.com/udell/gems/actions.xml
				</actionUpdateURI>
				<visualUpdateURI> 
					{ImageUrlMedium}
				</visualUpdateURI>
			</update>
		</springData>
	</xsl:template>
</xsl:stylesheet>
