title: The xsl:variable element must not have both content and a select attribute
body: <p>I am wondering what this documentation:</p>
  
  <blockquote>
    <p>If the select attribute is present, the  element cannot contain any content</p>
  </blockquote>
  
  <p>about the xsl:variable element at:</p>
  
  <p>[1]: <a href="http://www.w3schools.com/xsl/el_variable.asp%20w3%20schools" rel="nofollow">http://www.w3schools.com/xsl/el_variable.asp%20w3%20schools</a> means?</p>
  
  <p>The reason I ask is because I am encountering this error:</p>
  
  <p><code>JAXPSAXProcessorInvoker  - java.lang.RuntimeException: ElemTemplateElement error: The xsl:variable element must not have both content and a select attribute.</code> during transformation. Weird thing is it "runs" with the eclipse default processor but not xalan.</p>
  
  <p>When it runs with the eclipse default processor, I find that some of the elements in the original document I am converting do not show up in the result document, I am curious if it is related to this. and the eclipse processor just masks the issue while the xalan processor fails.</p>
  
  <p>I believe this is the offending line:</p>
  
  <pre><code>            &lt;xsl:variable name="vSections" select="//*[local-name()='ItemDef']/*/*/*[local-name()='SectionLabel'][generate-id() = generate-id(key('kLabelsInForm', concat($vFormOID, '+', .))[1])]"&gt;
                  &lt;xsl:value-of select="concat(., ' ')" /&gt;
              &lt;/xsl:variable&gt;
  </code></pre>
  
  <p>Thanks for the explanation.</p>