CompileStylesheet() public static method

public static CompileStylesheet ( Compiler compiler ) : QilExpression
compiler System.Xml.Schema.Compiler
return System.Xml.Xsl.Qil.QilExpression
Exemplo n.º 1
0
        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);
        }
Exemplo n.º 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);
        }