Hi!
I am using PogramD 4.5.
I tried using <if> tag as in example:
<category>
<pattern> HI </pattern>
<template>
<if name="user_name" value="ANONYMOUS">
<random>
<li> Hello, Dear Visitor! </li>
<li> Hi, Dear Visitor! </li>
<li> Welcome, Dear Visitor! </li>
<li> Hiya, Dear Visitor! </li>
</random>
<else/>
<random>
<li> Hello, <get name="user_name"/>! </li>
<li> Hi, <get name="user_name"/>! </li>
<li> Welcome, <get name="user_name"/>! </li>
<li> Hiya, <get name="user_name"/>! </li>
</random>
</if>
</template>
</category>
But I am getting the following error:
[10:06:58] Error parsing
"file:/C:/ProgramD_new/aiml/standard/std_personality.ai
ml": cvc-complex-type.2.4.a: Invalid content was found starting with
element 'if
'. One of '{"
http://alicebot.org/2001/AIML-1.0.1":star,
"
http://alicebot.org/2001/AIML-1.0.1":that, "
http://alicebot.org/2001/AIML-1.0.1":input,
"
http://alicebot.org/2001/AIML-1.0.1":thatstar,
"
http://alicebot.org/2001/AIML-1.0.1":topicstar
, "
http://alicebot.org/2001/AIML-1.0.1":get,
"
http://alicebot.org/2001/AIML-1.0.
1":bot, "
http://alicebot.org/2001/AIML-1.0.1":sr,
"
http://alicebot.org/2001/AIML-1.0.1":date, "
http://alicebot.org/2001/AIML-1.0.1":id,
"
http://alicebot.org/2001/AIML-1.0.1":size, "
http://alicebot.org/2001/AIML-1.0.1":version,
"
http://alicebot.org/2001/AIML-1.0.1":uppercase,
"
http://alicebot.org/2001/AIML-1.0.1":lowerc
ase, "
http://alicebot.org/2001/AIML-1.0.1":formal,
"
http://alicebot.org/2001/AIML-1.0.1":sentence, "
http://alicebot.org/2001/AIML-1.0.1":condition,
"
http://alicebot.org/2001/AIML-1.0.1":random,
"
http://alicebot.org/2001/AIML-1.0.1":set, "ht
tp://alicebot.org/2001/AIML-1.0.1":gossip,
"
http://alicebot.org/2001/AIML-1.0.1"
:srai, "
http://alicebot.org/2001/AIML-1.0.1":person,
"
http://alicebot.org/2001/AIML-1.0.1":person2, "
http://alicebot.org/2001/AIML-1.0.1":gender,
"
http://alicebot.org/2001/AIML-1.0.1":think,
"
http://alicebot.org/2001/AIML-1.0.1":learn, "htt
p://alicebot.org/2001/AIML-1.0.1":system,
"
http://alicebot.org/2001/AIML-1.0.1":
javascript, WC[##other:"
http://alicebot.org/2001/AIML-1.0.1"]}' is
expected.
[10:06:59] 842 unique categories loaded in 2.078 seconds.
Can you please help me?
Regards,____________________________________________________________
Deepti Chhawsaria | Capgemini | Mumbai
Associate Consultant | Oracle Service Line
Direct: +91 22 5642 6173 | Mob. +91 9820136918 |
mail:
deepti.chhawsaria@...
____________________________________________________________
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer