|
| Author |
Message |
carnuke Newbie

Joined: 13 Apr 2005 Posts: 3
 
|
Posted: Wed Apr 13, 2005 1:45 pm Post subject: |
|
|
Hello. I have an an Alice chatterbot and I want to make a category that passes a search to wikipedia and presents a link for the search page.
This is my category
| Code: | | <br /><category<br /> <pattern>LOOKUP *</pattern><br /> <template><br /> <![CDATA[<br /><a target="_new" href="http://en.wikipedia.org/wiki/Special:Search?search= <set name="topic"><star/></set>">]]> Try Wikipedia article. <![CDATA[</a>]]><br /> </template><br /></category><br /><br /> |
Mmm, it doesn't work. Any botologists out there have any knowledge how to do this?
TIA
Richard |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Wed Apr 13, 2005 6:37 pm Post subject: |
|
|
is comment data, isn't it?
Try taking that all out....
| Code: | | <template><br /><a target="_new" href=".......">click here</a><br /></template> |
_________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
mattaustin Sentinel

Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA
  votes: 1
|
Posted: Wed Apr 13, 2005 6:51 pm Post subject: |
|
|
CDATA isnt comments text inside a CDATA section is ignored by the parser, thst way you can include html...or xml as text... in xml
http://www.w3schools.com/xml/xml_cdata.asp
your example cer would think woudl work _________________ [ matt ] |
|
| Back to top |
|
 |
carnuke Newbie

Joined: 13 Apr 2005 Posts: 3
 
|
Posted: Wed Apr 13, 2005 7:02 pm Post subject: |
|
|
Thanks for your replies. The link in my code works perfectly, BUT it does not extract the value of * and append it to the end of the search string. Thats the part that wont work. Grrr..
any other ideas ??
Thanks. |
|
| Back to top |
|
 |
mattaustin Sentinel

Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA
  votes: 1
|
|
| Back to top |
|
 |
carnuke Newbie

Joined: 13 Apr 2005 Posts: 3
 
|
Posted: Wed Apr 13, 2005 8:34 pm Post subject: |
|
|
Erm... probably not the result breaks the code:
displays
Try Wikipedia article.
in the reply |
|
| Back to top |
|
 |
draget Not Yet a God

Joined: 29 Dec 2004 Posts: 367 Location: Australia
   
|
Posted: Thu Apr 14, 2005 2:37 am Post subject: |
|
|
you didnt close the first tag.
says
should say
??? |
|
| Back to top |
|
 |
|