Skip to content

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
codepo8 committed Jun 20, 2010
1 parent 2cff901 commit 70f9a42
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions museums.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
<execute><![CDATA[
var out = '';
var res = y.query("select href from html where url='http://collectionsonline.nmsi.ac.uk/info.php?page=0&v=1&s=trevithick&type=all&t=objects&f=&d=' and xpath='//div[@class="+'"'+"content"+'"'+"]/p[@align="+'"'+"center"+'"'+"]/a'").results;
var out = '';
for each(var i in res..a){
var url = 'http://collectionsonline.nmsi.ac.uk/'+(i.@['href']);
var url = url.replace('&amp;','&');
var inner = y.query("select * from html where url = '"+url+"' and xpath='//div//td//img'").results;
y.log(inner);
out += inner;
}
response.object = <foo></foo>;
response.object = <foo>{inner}</foo>;
]]></execute>
</select>
</bindings>
Expand Down

0 comments on commit 70f9a42

Please sign in to comment.