System.Xml.Xsl.XsltOld.Compiler.PushStylesheet C# (CSharp) Method

PushStylesheet() private method

private PushStylesheet ( Stylesheet stylesheet ) : void
stylesheet Stylesheet
return void
        internal void PushStylesheet(Stylesheet stylesheet)
        {
            if (_stylesheets == null)
            {
                _stylesheets = new Stack();
            }
            Debug.Assert(_stylesheets != null);

            _stylesheets.Push(stylesheet);
            this.stylesheet = stylesheet;
        }

Usage Example

Ejemplo n.º 1
0
        internal Stylesheet CompileImport(Compiler compiler, Uri uri, int id)
        {
            NavigatorInput input = compiler.ResolveDocument(uri);

            compiler.PushInputDocument(input);

            try
            {
                compiler.PushStylesheet(new Stylesheet());
                compiler.Stylesheetid = id;
                CompileDocument(compiler, /*inInclude*/ false);
            }
            catch (XsltCompileException)
            {
                throw;
            }
            catch (Exception e)
            {
                throw new XsltCompileException(e, input.BaseURI, input.LineNumber, input.LinePosition);
            }
            finally
            {
                compiler.PopInputDocument();
            }
            return(compiler.PopStylesheet());
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Compiler::PushStylesheet