The following sample shows how tc:conditional can be used to include the appropriate pronoun based on the gender of an individual. In this sample, the pronoun he/she or his/her is based on whether the claimant is male or female.
<tc:document version="1.0" mime-type="application/msword" name="Conditional" xmlns:tc="http://www.w3.org/1999/XSL/Transform"> |
|
Header |
<tc:header> <tc:filter name="UserSelectedClaimant" searchCondition="Involved" displayString="Contact/FirstName;Contact/Name;DefaultCategory/Name" displayFormat="* * - *" label="Please select the Claimant"/> </tc:header> |
Content |
<tc:content> <tc:data select="Contact"><tc:data select="FirstName" /> <tc:data select="Name" /> <tc:loop select="AddressList"><tc:data select="Street" /> <tc:data select="City" />, <tc:data select="State" /> <tc:data select="PostalCode" /></tc:loop> Dear <tc:data select="Prefix" /> <tc:data select="FirstName" /> <tc:data select="Name" /></tc:data> We were notified of your recent auto accident with <tc:filter select="UserSelectedClaimant"><tc:data select="Contact"><tc:data select="FirstName" /> <tc:data select="Name" />. <tc:conditional compare="Detail[CONT]/DetailValue[Gender],Male">He</tc:conditional><tc:conditional compare="Detail[CONT]/DetailValue[Gender],Female">She</tc:conditional></tc:data></tc:filter> has reported that the accident occurred on <tc:detail select="CLAM_AUTO/AccidentDate" />. |
|
Based on <tc:filter select="UserSelectedClaimant"><tc:data select="Contact"><tc:conditional compare="Detail[CONT]/DetailValue[Gender],Male">his</tc:conditional><tc:conditional compare="Detail[CONT]/DetailValue[Gender],Female">her</tc:conditional></tc:data></tc:filter> report the following people were involved in the auto accident. <tc:search link="Involved"><tc:data select="Contact"><tc:data select="FirstName" /> <tc:data select="Name" /></tc:data> - <tc:data select="DefaultCategory/Name" /> </tc:filter> Sincerely, <tc:loop select="AssigneeList" qualifier="Type_TreePosition=CLAM_ADST"><tc:data select="User"><tc:data select="Contact"><tc:data select="FirstName" /> <tc:data select="Name" /></tc:data></tc:data></tc:loop> </tc:document> |