title: Matching elements with namespace prefix in XSLT
body: <p>This is my xml input.</p>
  
  <pre><code>&lt;package version="2.0" unique-identifier="uuid_id"
           xmlns="http://www.idpf.org/2007/opf"&gt;
    &lt;metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:opf="http://www.idpf.org/2007/opf"
              xmlns:dcterms="http://purl.org/dc/terms/"
              xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata"
              xmlns:dc="http://purl.org/dc/elements/1.1/"&gt;
      &lt;meta name="calibre:series_index" content="1"/&gt;
      &lt;dc:language&gt;UND&lt;/dc:language&gt;
      &lt;dc:creator opf:file-as="Marquez, Gabriel Garcia" 
                  opf:role="aut"
                 &gt;Gabriel Garcia Marquez&lt;/dc:creator&gt;
      &lt;meta name="calibre:timestamp" content="2010-07-14T21:35:15.266000+00:00"/&gt;
      &lt;dc:title&gt;Cem Anos de Solidão&lt;/dc:title&gt;
      &lt;meta name="cover" content="cover"/&gt;
      &lt;dc:date&gt;2010-07-14T21:35:15.266000+00:00&lt;/dc:date&gt;
      &lt;dc:contributor opf:role="bkp"
                     &gt;calibre (0.7.4) [http://calibre-ebook.com]&lt;/dc:contributor&gt;
      &lt;dc:identifier id="uuid_id" opf:scheme="uuid"
                    &gt;7e11dc8b-55cb-4411-8f30-df974fbcf58a&lt;/dc:identifier&gt;
    &lt;/metadata&gt;
    &lt;manifest&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p>and my xslt starts like..</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.0" 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  xmlns:xhtml="http://www.w3.org/1999/xhtml"&gt;
  
  &lt;xsl:template match="package"&gt;
       &lt;xsl:message&gt;Entering package&lt;/xsl:message&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>I am using <code>XSLT 1.0</code> and the template package is not getting matched. When I remove the namespace <code>xmlns="http://www.idpf.org/2007/opf"</code> in package node, the template gets matched. How I can make my template to match without removing the namespaces.</p>
  
  <p>Please help me. Thanks in advance.</p>