Example #1
0
        public void AddAttributeSet(XslAttributeSet set)
        {
            XslAttributeSet xslAttributeSet = this.attrSets[set.Name] as XslAttributeSet;

            if (xslAttributeSet != null)
            {
                xslAttributeSet.Merge(set);
                this.attrSets[set.Name] = xslAttributeSet;
            }
            else
            {
                this.attrSets[set.Name] = set;
            }
        }
Example #2
0
        public void AddAttributeSet(XslAttributeSet set)
        {
            XslAttributeSet existing = attrSets [set.Name] as XslAttributeSet;

            // The latter set will have higher priority
            if (existing != null)
            {
                existing.Merge(set);
                attrSets [set.Name] = existing;
            }
            else
            {
                attrSets [set.Name] = set;
            }
        }