Example #1
0
        public void Copy_None_CreatesElement()
        {
            var xslt = new XsltFactory();
            var text = xslt.Copy();

            Assert.Equal("copy", text.Name.LocalName);
            Assert.False(text.Attributes().Any());
        }
Example #2
0
        public XElement CreateTemplateCopy()
        {
            var copyArg         = "@*|node()";
            var templateElement = xslt.Template(copyArg);
            var copyElement     = xslt.Copy();

            copyElement.Add(xslt.ApplyTemplates(copyArg));
            templateElement.Add(copyElement);

            return(templateElement);
        }