Skip to content

Instantly share code, notes, and snippets.

@lmatt-bit
Created November 11, 2014 06:43
Show Gist options
  • Select an option

  • Save lmatt-bit/f14c8087724a5cdf66d5 to your computer and use it in GitHub Desktop.

Select an option

Save lmatt-bit/f14c8087724a5cdf66d5 to your computer and use it in GitHub Desktop.
create an xslt
XNamespace xsl = "http://www.w3.org/1999/XSL/Transform";
var root = new XElement(xsl + "stylesheet", new XAttribute("version", "1.0"), new XAttribute(XNamespace.Xmlns + "xsl", xsl));
var template = new XElement(xsl + "template", new XAttribute("match", "/"));
template.Add(items);
root.Add(template);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment