Hi all,
I've been experimenting with my 1st search monkey app, to provide enhanced results for twitter profiles and I've hit a brick wall with getting my data extraction app to work. The URL trigger I'm using is
http://twitter.com/* and I'm testing with the page
http://twitter.com/andymurd.
Here is the data extraction XSLT:
CODE
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<adjunctcontainer>
<adjunct id="smid:{$smid}" version="1.0">
<item rel="rel:Tweep">
<item rel="dc:source" resource="{$CURRURL}"/>
<item rel="media:thumbnail" resource="{//img[@id='profile-image']}"/>
</item>
</adjunct>
</adjunctcontainer>
</xsl:template>
</xsl:stylesheet>
The media:thumbnail resource never gets populated, and yet the XPath query works fine in the YQL console. I see the following warnings in the testing box at the bottom of the page:
* WARNING: Unrecognized attribute value on resource: (empty)
* WARNING: Value (empty) for attribute resource is not a valid absolute URI
This has me completely stumped, so does anyone have any suggestions? Thanks.