/// <summary>
        /// Creates a new
        /// <see cref="ColgroupTagWorker"/>
        /// instance.
        /// </summary>
        /// <param name="element">the element</param>
        /// <param name="context">the context</param>
        public ColgroupTagWorker(IElementNode element, ProcessorContext context)
        {
            int?span = CssDimensionParsingUtils.ParseInteger(element.GetAttribute(AttributeConstants.SPAN));

            colgroup = new ColgroupWrapper(span != null ? (int)span : 1);
            colgroup.SetLang(element.GetAttribute(AttributeConstants.LANG));
        }
 /// <summary>Adds a column group.</summary>
 /// <param name="colgroup">the column group</param>
 public virtual void Add(ColgroupWrapper colgroup)
 {
     colgroups.Add(colgroup);
 }