[alicebot-archcomm] Spec for Li

mehri foreverlinux at yahoo.com
Thu Aug 31 21:14:57 PDT 2006


What is the behavior for conditional Li's whenever none of the Li's match?  I've seen some interpreters choose the first li and I've seen some return an empty string.  

Here is the 1.0.1 spec section below and it's missing what you are to do when none of the Li's match up.


 				The singlePredicateCondition type of condition is processed as follows:

 				Reading each contained li in order: 			
 			 					If the li is a valueOnlyListItem type, then compare the contents of the value attribute of the li with the value of the predicate specified by the name attribute of the enclosing condition. 					 							If they match, then return the contents of the li and stop processing this condition. 						 							If they do not match, continue processing the condition. 						 				 					If the li is a defaultListItem type, then return the contents of the li and stop processing this condition. 				
and 

 				The multiPredicateCondition type of condition is processed as follows:

 			
 			 				Reading each contained li in order: 			
 			 					If the li is a nameValueListItem type, then compare the contents of the value attribute of the li with the value of the predicate specified by the name attribute of the li. 					 							If they match, then return the contents of the li and stop processing this condition. 						 							If they do not match, continue processing the condition. 						 				 					If the li is a defaultListItem type, then return the contents of the li and stop processing this condition. 				 




More information about the alicebot-archcomm mailing list