private void AddUseAttributeSets(List<XslNode> list)
{
Debug.Assert(_input.LocalName == "use-attribute-sets", "we are positioned on this attribute");
Debug.Assert(list != null && list.Count == 0, "It happened that we always add use-attribute-sets first. Otherwise we can't call list.Clear()");
_compiler.EnterForwardsCompatible();
foreach (string qname in XmlConvert.SplitString(_input.Value))
{
AddInstruction(list, SetLineInfo(f.UseAttributeSet(CreateXPathQName(qname)), _input.BuildLineInfo()));
}
if (!_compiler.ExitForwardsCompatible(_input.ForwardCompatibility))
{
// There were errors in the list, ignore the whole list
list.Clear();
}
}