public static XsltElement FirstOrDefaultXsltElement(this XsltElement root, XsltElement element) { var elementName = element.Attribute("name")?.Value; return(root.FirstOrDefaultXsltElement(elementName)); }