System.Xml.Xsl.Xslt.XsltInput.ContextInfo.AddNamespace C# (CSharp) Method

AddNamespace() public method

public AddNamespace ( XsltInput input ) : void
input XsltInput
return void
            public void AddNamespace(XsltInput input) {
                if (Ref.Equal(input.LocalName, input.Atoms.Xml)) {
                    Debug.Assert(input.Value == XmlReservedNs.NsXml, "XmlReader must check binding for 'xml' prefix");
                } else {
                    nsList = new NsDecl(nsList, input.LocalName, input.Value);
                }
            }