title: XSLT, how to use "xsl:value-of" inside "xsl:if"?
body: <p>I am new to xslt and I am wondering whether it  is possible to compare the value of "@userNameKey" and  the value of 
  <code>&lt;xsl:value-of select="./text()"/&gt;</code> in example below?</p>
  
  <pre><code> &lt;xsl:if test="@userNameKey='??????'"&gt;
   &lt;xsl:attribute name="selected"&gt;true&lt;/xsl:attribute&gt;
   &lt;/xsl:if&gt;
   &lt;xsl:value-of select="./text()"/&gt;
  </code></pre>
  
  <p>Basically, I just want to replace the questionmarks with the following fragment: <code>&lt;xsl:value-of select="./text()"/&gt;</code> but there is an issue with the double quotes. Should I use escape characters (if yes, what are they?) or there is a better solution?</p>