<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE function PUBLIC "-//XINS//DTD Function//EN" "http://xins.sourceforge.net/dtd/function_1_0.dtd">
<function name="MyFunction"
rcsversion="$Revision: 1.2 $" rcsdate="$Date: 2004/08/05 12:30:37 $">
<description>A simple function that return a "hello" message to the person.</description>
<input>
<param name="gender" required="true" type="gender">
<description>The gender of the person.</description>
</param>
<param name="personLastName" required="true" type="lastName">
<description>The last name of the person.</description>
</param>
</input>
<output>
<resultcode-ref name="NoVowel" />
<param name="message" required="true" type="_text">
<description>The message returned to this person.</description>
</param>
</output>
<!-- Some examples for this function -->
<example num="1" resultcode="_InvalidRequest">
<description>Missing parameter : lastName</description>
<input-example name="personLastName">Bond 007</input-example>
<data-example>
<element-example name="missing-param">
<attribute-example name="param">gender</attribute-example>
</element-example>
<element-example name="invalid-value-for-type">
<attribute-example name="type">lastName</attribute-example>
<attribute-example name="param">personLastName</attribute-example>
</element-example>
</data-example>
</example>
<example num="2" resultcode="NoVowel">
<description>The name does not contain any vowels.</description>
<input-example name="gender">f</input-example>
<input-example name="personLastName">cqfd</input-example>
</example>
<example num="3">
<description>Message returned.</description>
<input-example name="gender">f</input-example>
<input-example name="personLastName">Lee</input-example>
<output-example name="message">Hello Miss Lee</output-example>
</example>
</function>