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); }
internal void Initialize() { Clear(); if (configuration.IgnoreWhitespace) { Append(xslt.StripSpace("*")); } Append(CreateOutput(configuration.OutputType, configuration.FormatXml)); Append(CreateTemplateCopy()); }