title: XSLT transforming is throwing error
body: <p>I've xml as below,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16" ?&gt; 
   &lt;AllResidentAndUnitInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
   i:type="ResidentsByUnitInfo" xmlns="http://schemas.datacontract.org/2004/07/FSRSchema"&gt;
      &lt;BillingAddresses&gt;
        &lt;BillingAddress&gt;
          &lt;billing_address1&gt;Some address&lt;/billing_address1&gt; 
          &lt;billing_address2 /&gt; 
          &lt;billing_city&gt;Gilbert&lt;/billing_city&gt; 
          &lt;billing_country i:nil="true"/&gt; 
          &lt;billing_dtmmodified&gt;2010-12-08T01:37:41+05:30&lt;/billing_dtmmodified&gt; 
          &lt;billing_state&gt;AZ&lt;/billing_state&gt; 
          &lt;billing_zipcode&gt;23233&lt;/billing_zipcode&gt;            
        &lt;/BillingAddress&gt;
        &lt;BillingAddress&gt;
         &lt;ResidentsByUnitInfoPropertyUnitBillingAddress&gt;
          &lt;billing_address1&gt;Some address&lt;/billing_address1&gt; 
          &lt;billing_address2 /&gt; 
          &lt;billing_city&gt;Gilbert&lt;/billing_city&gt; 
          &lt;billing_country i:nil="true"/&gt; 
          &lt;billing_dtmmodified&gt;2010-12-08T01:37:41+05:30&lt;/billing_dtmmodified&gt; 
          &lt;billing_state&gt;AZ&lt;/billing_state&gt; 
          &lt;billing_zipcode&gt;23233&lt;/billing_zipcode&gt; 
         &lt;/ResidentsByUnitInfoPropertyUnitBillingAddress&gt;
        &lt;/BillingAddress&gt;
        ....
  
  &lt;/AllResidentAndUnitInfo&gt;
  </code></pre>
  
  <p>I'm transforming into another xml format in C# using the XslCompiledTransform,</p>
  
  <pre><code>&lt;?xml version='1.0' ?&gt;
  &lt;xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
     xmlns:msxsl='urn:schemas-microsoft-com:xslt'
     xmlns:i='http://www.w3.org/2001/XMLSchema-instance' exclude-result-prefixes='msxsl  
     i' version='1.0'&gt;
  &lt;xsl:output method='xml' indent='yes'/&gt;
  &lt;xsl:template match='/AllResidentAndUnitInfo/BillingAddresses/BillingAddress'&gt;
      &lt;Root&gt;
        &lt;Address1&gt;..&lt;/Address2&gt;   
                ...
      &lt;/Root&gt;
  &lt;/xsl:template&gt;
    &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I'm getting the error "Token Text in state Start would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to write an XML fragment." I understood the problem is with the i:nil attributes in the xml. Eventhough I included the namespace of them in XSLT still i'm getting the error.</p>