CompileStylesheet() public static method

public static CompileStylesheet ( Compiler compiler ) : QilExpression
compiler System.Xml.Schema.Compiler
return System.Xml.Xsl.Qil.QilExpression
        public CompilerResults Compile(object stylesheet, XmlResolver xmlResolver, out QilExpression qil)
        {
            Debug.Assert(stylesheet != null);
            Debug.Assert(PrincipalStylesheet == null, "Compiler cannot be reused");

            new XsltLoader().Load(this, stylesheet, xmlResolver);
            qil = QilGenerator.CompileStylesheet(this);
            return(CompilerResults);
        }
Beispiel #2
0
        public CompilerErrorCollection Compile(object stylesheet, XmlResolver xmlResolver, out QilExpression qil)
        {
            Debug.Assert(stylesheet != null);
            Debug.Assert(Root == null, "Compiler cannot be reused");

            new XsltLoader().Load(this, stylesheet, xmlResolver);
            qil = QilGenerator.CompileStylesheet(this);
            SortErrors();
            return(CompilerErrorColl);
        }