title: How to copy all fields from xml to xslt?
body: <p>How to copy all fields from xml to xslt except the field name="Category"? I use</p>
  
  <pre><code>Field[not(name()='Category')]
  </code></pre>
  
  <p>But when I preview the result, it display only the field name="Category" instead of displaying the all field.</p>
  
  <p>XML:</p>
  
  <pre><code>&lt;Form name="Form1" type="TextView" label="Cash Pickup Form"&gt;
  
  &lt;Field name="Category" type="TextView" label="FormType" value="Form1"/&gt;
  
  &lt;Field type="Delimiter"/&gt;
  &lt;Field name="ContractNumber" type="TextView" label="Contract number" value=""/&gt;
  &lt;Field type="Delimiter"/&gt;
  &lt;Field name="ClientName" type="TextView" label="Name of Client" value=""/&gt;
  &lt;Field name="BirthDate" type="TextView" label="Birthday" value=""/&gt;
  &lt;Field name="DueDate" type="TextView" label="Due Date" value=""/&gt;
  &lt;/Form&gt;
  </code></pre>
  
  <p>XSLT:</p>
  
  <pre><code>&lt;xsl:variable name="Category" select="/Form/Field[@name='Category']/@value"/&gt;
  &lt;xsl:template match="/"&gt;
  &lt;xsl:apply-templates select="Form"/&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="Form"&gt;
  &lt;xsl:element name="Form"&gt;
    &lt;xsl:attribute name="name"&gt;
      &lt;xsl:value-of select="@name"/&gt;
    &lt;/xsl:attribute&gt;
    &lt;xsl:attribute name="type"&gt;
      &lt;xsl:value-of select="@type"/&gt;
    &lt;/xsl:attribute&gt;
    &lt;xsl:attribute name="label"&gt;
      &lt;xsl:value-of select="@label"/&gt;
    &lt;/xsl:attribute&gt;
    &lt;xsl:copy-of select="namespace::*[not(name()='ns2') and not(name()='')]"/&gt;
    &lt;xsl:call-template  name="Arrange"/&gt;
  &lt;/xsl:element&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template name="Arrange"&gt;
     &lt;xsl:apply-templates select="Field[not(name()='Category')]"/&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>