title: Add Stylesheet reference to XML Document in Linq?
body: <p>I create an XML Doc and wanted have a reference to the XSLT file. </p>
  
  <pre><code>//&lt;?xml-stylesheet type="text/xsl" href="OBReport.xslt"?&gt;
  </code></pre>
  
  <p>to this XML generation:</p>
  
  <pre><code>XElement xml = new XElement("ReportedOn",
                      from dl in EL.DocumentLog.ToList()
                      join o in EL.Organization
                      on dl.OrganizationID equals o.OrganizationId
                      where dl.ActionDate &gt;= stDate &amp;
                      dl.ActionDate &lt;= enDate 
                      orderby dl.DefendantName, dl.DocumentName
                      select new XElement("persons",
                                new XAttribute("documentName", dl.DocumentName),
                                new XElement("defendantName", dl.DefendantName),
                                new XElement("actionDate", dl.ActionDate.ToString()),
                                new XElement("startDate", dl.StartDate.ToString()),
                             new XElement("endDate", dl.EndDate.ToString()),
                             new XElement("organizationName" , o.OrganizationName) ));
  </code></pre>