public void Process(Document input, Stage stage)
        {
            Log.Debug("Rendering {0} \n from: {1} \n ..to: {2}.", Renderer.GetType().Name, input.SourceFullPath, input.TargetFullPath);
            Document output = stage.CloneAndPost(input);

            Renderer.Render(input, output);
        }
        public void Process(Document source, Stage stage)
        {
            Document template = Influx.Documents.First();

            string t = template.Text;
            string s = source.Text;
            Document d = stage.CloneAndPost(source);
            d.Text = t + s;
        }
Exemple #3
0
        public void Process(Document source, Stage stage)
        {
            Document template = Influx.Documents.First();

            string   t = template.Text;
            string   s = source.Text;
            Document d = stage.CloneAndPost(source);

            d.Text = t + s;
        }
        public void Process(Document input, Stage output)
        {
            StringBuilder builder = new StringBuilder(input.Text);

            foreach(Document doc in input.Attachments)
            {
                builder.Append(doc.Text);
            }

            foreach(Document doc in Influx.Documents)
            {
                builder.Append(doc.Text);
            }

            Document result = output.CloneAndPost(input);
            result.Text = builder.ToString();
        }
Exemple #5
0
        public void Process(Document input, Stage output)
        {
            StringBuilder builder = new StringBuilder(input.Text);

            foreach (Document doc in input.Attachments)
            {
                builder.Append(doc.Text);
            }

            foreach (Document doc in Influx.Documents)
            {
                builder.Append(doc.Text);
            }

            Document result = output.CloneAndPost(input);

            result.Text = builder.ToString();
        }
Exemple #6
0
        public void Process(Document input, Stage output)
        {
            var pkp       = new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory);
            var generator = new StructureGenerator(pkp);

            var profile = (Profile)FhirParser.ParseResourceFromXml(input.Text);

            foreach (var structure in profile.Structure)
            {
                var result = generator
                             .generateStructureTable(structure, false, profile)
                             .ToString(System.Xml.Linq.SaveOptions.DisableFormatting);

                Document document = output.CloneAndPost(input);
                document.SetFilename(pkp.GetLinkForLocalStructure(profile, structure));
                document.Text = result;
            }
        }
        public void Process(Document input, Stage output)
        {
            var pkp = new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory);
            var generator = new StructureGenerator(pkp);

            var profile = (Profile)FhirParser.ParseResourceFromXml(input.Text);

            foreach (var structure in profile.Structure)
            {
                var result = generator
                        .generateStructureTable(structure, false, profile)
                        .ToString(System.Xml.Linq.SaveOptions.DisableFormatting);

                Document document = output.CloneAndPost(input);
                document.SetFilename(pkp.GetLinkForLocalStructure(profile, structure));
                document.Text = result;
            }
        }      
 public void Process(Document input, Stage stage)
 {
     Log.Debug("Rendering {0} \n from: {1} \n ..to: {2}.", Renderer.GetType().Name, input.SourceFullPath, input.TargetFullPath);
     Document output = stage.CloneAndPost(input);
     Renderer.Render(input, output);
 }