示例#1
0
        public void StripSpace_String_CreatesElement()
        {
            var xslt       = new XsltFactory();
            var elements   = "test";
            var stripSpace = xslt.StripSpace(elements);

            Assert.Equal("strip-space", stripSpace.Name.LocalName);
            Assert.Contains(stripSpace.Attributes(), a => a.Name == "elements" && a.Value == elements);
        }
示例#2
0
 internal void Initialize()
 {
     Clear();
     if (configuration.IgnoreWhitespace)
     {
         Append(xslt.StripSpace("*"));
     }
     Append(CreateOutput(configuration.OutputType, configuration.FormatXml));
     Append(CreateTemplateCopy());
 }