title: Possible to use variable in child node? (xslt/for-each)
body: <p>in my ESP (email service provider) i have a list or customers with variables, and i have xslt which parsed the XML feed into a (dynamic) mail.
  Now, i want to personalise my mails, sending different content to different email subscribers.</p>
  
  <p>I have a variable $profile.pos1_day_camp (can be numeric values) and i want to show them content based on this variable. The content differs with the child node. Its the @id of a shop.</p>
  
  <p>so, show</p>
  
  <pre><code>{if $profile.pos1_day_camp == 1}
  &lt;xsl:for-each select="//shop[@id='1']/offer]"&gt;
  **"show content of shop id 1"**
  &lt;/xsl:for-each&gt;
  {/if}
  
  {if $profile.pos1_day_camp == 17}
  &lt;xsl:for-each select="//shop[@id='17']/offer]"&gt;
  **"show content of shop id 17"**
  &lt;/xsl:for-each&gt;
  {/if}
  </code></pre>
  
  <p>etc. But this will become too much code, since there are many possible values, therefore i am looking to place the variable inside the for-each. Is that possible? If i do this, it shows nothing:</p>
  
  <pre><code>&lt;xsl:for-each select="//shop[@id='{$profile.pos1_day_camp}']/offer"&gt;
  **"show content of shop id xx"**
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>Thanks!</p>