<?xml version="1.0" standalone="yes"?>
<!DOCTYPE container>
<html 
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:var="http://www.skyrix.com/od/binding"
  xmlns:const="http://www.skyrix.com/od/constant"
  xmlns:rsrc="OGo:url"
  xmlns:label="OGo:label">

  <head>
    <style type="text/css">
th, td { font-family: Lucida Grande, Bitstream VeraSans, Tahoma, sans-serif; font-size: 12px; line-height: 18px; }
th { font-weight: bold; white-space: nowrap; vertical-align: top; }
    </style>
  </head>
  <body>
    <table cellpadding="2" cellspacing="2" border="0" style="width: 100%; max-width: 600px;">
      <tr>
        <th></th>
        <td><h1 style="font-size: 18px; font-weight: normal; padding-bottom: 9px; border-bottom: 1px solid #ccc;"><var:string
          value="aptSummary"/></h1></td>
      </tr>
      <tr>
        <th align="right"><var:string label:value="calendar_label"/></th>
        <td><var:string value="calendarName"/></td>
      </tr>
      <var:if condition="apt.location.length"
      ><tr>
        <th align="right"><var:string label:value="location_label"/></th>
        <td><var:string value="apt.location"/></td>
      </tr></var:if>
      <var:if condition="aptStartDate.length"
      ><tr>
        <th align="right"><var:string label:value="startDate_label"/></th>
        <td><var:string value="aptStartDate"/></td>
      </tr></var:if>
      <var:if condition="aptEndDate.length"
      ><tr>
        <th align="right"><var:string label:value="endDate_label"/></th>
        <td><var:string value="aptEndDate"/></td>
      </tr></var:if>

      <var:if condition="updatedAttendees.count"
      ><tr>
        <td></td>
        <th align="left" style="font-weight: bold; padding-top: 9px;"><var:string
          label:value="The following attendees(s) were notified"/></th>
      </tr>
      <var:foreach list="updatedAttendees" item="currentRecipient">
      <tr>
        <td></td>
        <td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn" const:escapeHTML="NO"/></a></td>
      </tr></var:foreach>
      </var:if>

      <var:if condition="addedAttendees.count"
      ><tr>
        <td></td>
        <th align="left" style="font-weight: bold; padding-top: 9px;"><var:string
          label:value="The following attendees(s) were added"/></th>
      </tr>
      <var:foreach list="addedAttendees" item="currentRecipient">
      <tr>
        <td></td>
        <td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn" const:escapeHTML="NO"/></a></td>
      </tr></var:foreach>
      </var:if>       

      <var:if condition="deletedAttendees.count"
      ><tr>
        <td></td>
        <th align="left" style="font-weight: bold; padding-top: 9px;"><var:string
          label:value="The following attendees(s) were removed"/></th>
      </tr>
      <var:foreach list="deletedAttendees" item="currentRecipient">
      <tr>
        <td></td>
        <td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn"/></a></td>
      </tr></var:foreach>
      </var:if>
      <var:if condition="apt.comment.length"
      ><tr>
        <th align="right"><var:string label:value="comment_label"/></th>
        <td><var:string value="apt.comment" const:escapeHTML="NO"/></td>
      </tr></var:if>
    </table>
  </body>
</html>
