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

LoadImport() private method

private LoadImport ( ) : void
return void
        private void LoadImport()
        {
            ContextInfo ctxInfo = _input.GetAttributes(_importIncludeAttributes);

            if (_input.MoveToXsltAttribute(0, "href"))
            {
                // Resolve href right away using the current BaseUri (it might change later)
                Uri uri = ResolveUri(_input.Value, _input.BaseUri);

                // Check for circular references
                if (_documentUriInUse.Contains(uri.ToString()))
                {
                    ReportError(/*[XT0210]*/SR.Xslt_CircularInclude, _input.Value);
                }
                else
                {
                    _curStylesheet.ImportHrefs.Add(uri);
                }
            }
            else
            {
                // The error was already reported. Ignore the instruction
            }

            CheckNoContent();
        }