示例#1
0
        public void Stylesheet_CreatesElement()
        {
            var xslt       = new XsltFactory();
            var stylesheet = xslt.Stylesheet();

            Assert.Equal("stylesheet", stylesheet.Name.LocalName);
            Assert.Contains(stylesheet.Attributes(), a => a.Name == "version" && a.Value == "1.0");
            Assert.Contains(stylesheet.Attributes(), a => a.Name == XNamespace.Xmlns + "xsl" && a.Value == XsltElement.XslNamespace.NamespaceName);
        }
示例#2
0
 public void Clear()
 {
     rootElement = xslt.Stylesheet();
 }