What is the correct xslt format for image import scripting.
Here is what I have currently - which does not create the image assets and a PHP notice is thrown - Undefined index: tmp_name
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/photos">
<squizfeed>
<xsl:apply-templates select="photo"/>
</squizfeed>
</xsl:template>
<xsl:template match="photo">
<feeddata action="takeover">
<newhomes>
<newhome>
<searchhomes>
<searchhome assetid="default" autocreate="true">
<assetset>
<asset assettype="Folder" autocreate="true" status="live">
<assetattribute name="name"><xsl:value-of select="set" /> - <xsl:value-of select="set_id" /></assetattribute>
</asset>
</assetset>
</searchhome>
</searchhomes>
</newhome>
</newhomes>
<assetset>
<asset assettype="File" typecode="Image" linktype="type-1" status="live" file_path="/var/www/html/flickr_feed/images/31667502043_aba2ee5e06_b.jpg">
<assetattribute name="assetid" primarykey="true"><xsl:value-of select="squiz_id" /></assetattribute>
<assetattribute name="name"><xsl:value-of select="id" /></assetattribute>
<assetattribute name="alt"><xsl:value-of select="title" /></assetattribute>
<assetattribute name="caption"><xsl:value-of select="title" /></assetattribute>
</asset>
</assetset>
</feeddata>
</xsl:template>
</xsl:stylesheet>