Sails are attached (bent) to the yards by robands.  Depending on the era of the ship they were either bent to the yards directly or to a jackstay above the yard.  There were usually two robands per sail cloth, sometimes both placed between the seams, and somtimes, one on the seam and one halfway between.  The photos below show the two methods.