/// <summary>
 /// Writes the attribute.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="value">The value.</param>
 protected void WriteAttribute(string name, DoubleCollection value)
 {
     if (this.settings.WriteDefaultValues || value != null && value.Count > 0) {
         this.writer.WriteAttributeString(name, value.Format());
     }
 }