public void Copy_None_CreatesElement() { var xslt = new XsltFactory(); var text = xslt.Copy(); Assert.Equal("copy", text.Name.LocalName); Assert.False(text.Attributes().Any()); }
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); }