Esempio n. 1
0
        public static TemplateOutputDefinitionFilename Parse(string filename)
        {
            TemplateOutputDefinitionFilename output = new TemplateOutputDefinitionFilename();

            output.AddRange(XmlUtil.ParseComingledXPathExpression(filename));

            return(output);
        }
Esempio n. 2
0
        public List <TemplateOutputDefinitionFilenameResult> GetOutputFilenames()
        {
            List <TemplateOutputDefinitionFilenameResult> outputFilenames = new List <TemplateOutputDefinitionFilenameResult>();

            if (this.OutputMode == TemplateOutputMode.SingleFile)
            {
                outputFilenames.Add(new TemplateOutputDefinitionFilenameResult(null, null, this.OutputAbsolutePath));
            }
            else
            {
                foreach (TemplateOutputDefinition definition in this.TemplateOutputDefinitions)
                {
                    TemplateOutputDefinitionFilename filename = TemplateOutputDefinitionFilename.Parse(definition.FilenameXPath);

                    outputFilenames.AddRange(filename.Compute(definition));
                }
            }

            return(outputFilenames);
        }