Ejemplo n.º 1
0
        public void TestBigTest()
        {
            AdornedProcessor processor = new AdornedProcessor();
            processor.Parse(AdornedTextTestDocuments.BigTest);
            XmlDocument document = processor.RenderToXml();

            string documentText = document.OuterXml;
        }
Ejemplo n.º 2
0
        public void RenderProcessor(AdornedProcessor processor, IAdornedReferenceResolver resolver, TextWriter outputTo, string resultKind)
        {
            processor.Preprocess(_preprocessor);
            processor.ResolveReferences(resolver);
            XmlDocument document = processor.RenderToXml();

            XsltArgumentList arguments = new XsltArgumentList();
            arguments.AddParam("result-kind", "", resultKind);

            _renderer.Write(document, outputTo, arguments);
        }