0

Search Monkey Data Extraction App Newbie Help

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.

by
2 Replies
  • Never mind, I figured it out.

    The page gets sent through HTML Tidy which changes all the tags into uppercase, so I needed to modify the XPath.
    0
  • QUOTE (andymurd @ May 2 2009, 07:22 PM) <{POST_SNAPBACK}>
    Never mind, I figured it out.

    The page gets sent through HTML Tidy which changes all the tags into uppercase, so I needed to modify the XPath.


    The same thing happens to me.
    What XPath are you using?
    0

Recent Posts

in General Discussion at YDN