Namespace in XML selects everything using XSLT
<p>The following XSLT perfectly selects nodes from the given XML when the namespace <code>xmlns="http://tempuri.org/BaseSchema"</code> is not present.</p>

<p><strong>Issue</strong> : When the namespace <code>xmlns="http://tempuri.org/BaseSchema"</code> is present in the XML, as is the case for the real problem, the XSLT selects everything from the XML and not the nodes as mentioned in XSLT.</p>

<p>The input file cannot be modified to remove the namespace. Does anyone know how to ignore or suppress the effect of the namespace.</p>

<p><strong>XML</strong></p>

<pre><code>&lt;event xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/BaseSchema" &gt;
    &lt;name&gt;Pancake&lt;/name&gt;
    &lt;categories&gt;
    &lt;category&gt;community&lt;/category&gt;
     &lt;/categories&gt;
     &lt;venue&gt;
    &lt;name&gt;fatzcafe&lt;/name&gt;
        &lt;city&gt;NYC&lt;/city&gt;
    &lt;venue_type&gt;
             &lt;name&gt;Lounge&lt;/name&gt;
             &lt;cuisine&gt;Thai&lt;/cuisine&gt;
        &lt;/venue_type&gt;
      &lt;/venue&gt;
&lt;/event&gt;
</code></pre>

<p><strong>XSLT</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/BaseSchema"&gt;
 &lt;xsl:output method="text" encoding="UTF-8" /&gt;

  &lt;xsl:template match="/event"&gt;
     &lt;xsl:apply-templates select="venue/venue_type"/&gt;
  &lt;/xsl:template&gt;

  &lt;xsl:template match="/venue_type"&gt;
     &lt;xsl:value-of select="name" /&gt;
     &lt;xsl:value-of select="cuisine" /&gt;
  &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;
</code></pre>