System.Xml.Xsl.Xslt.XsltLoader.XslCopy C# (CSharp) Method

XslCopy() private method

private XslCopy ( ) : XslNode
return XslNode
        private XslNode XslCopy()
        {
            ContextInfo ctxInfo = _input.GetAttributes(_copyAttributes);

            bool copyNamespaces = ParseYesNoAttribute(0, "copy-namespaces") != TriState.False;
            bool inheritNamespaces = ParseYesNoAttribute(1, "inherit-namespaces") != TriState.False;
            if (!copyNamespaces) ReportNYI("xsl:copy[@copy-namespaces    = 'no']");
            if (!inheritNamespaces) ReportNYI("xsl:copy[@inherit-namespaces = 'no']");

            List<XslNode> content = new List<XslNode>();
            if (_input.MoveToXsltAttribute(2, "use-attribute-sets"))
            {
                AddUseAttributeSets(content);
            }

            ParseTypeAttribute(3);
            ParseValidationAttribute(4, /*defVal:*/false);

            return SetInfo(f.Copy(), LoadEndTag(LoadInstructions(content)), ctxInfo);
        }