title: Using the Xpath stored in Xslt variable
body: <p>I have an XML file which has XPath string in its attribute. Something like this - 
  <br/>
      <pre><code>
      &lt;root>
       &lt;element name="A" visible="True" text="Display Text " selected="True" />
       &lt;element name="B" visible="True" text="DisplayText" visibilityCondition="//element[@name='A']/@selected" />
      &lt;/root>
      </code></pre>
  <br/>
  Now using XSLT I want to show or hide content based on visibilityCondition of element named A. i.e.<br />
      <pre><code>
      &lt;xsl:for-each select="element">
       &lt;xsl:variable name="visibleCondition" select="@visibilityCondition" />
       &lt;xsl:choose>
        &lt;xsl:when test="boolean($visibleCondition)">
         &lt;xsl:when test="$visibleCondition">
          &lt;xsl:if test="$visibleCondition='True'">
           ...
          &lt;/xsl:if>
          &lt;xsl:otherwise>
           ...
          &lt;/xsl:otherwise>
         &lt;/xsl:when>
        &lt;/xsl:choose>
       &lt;/xsl:foreach>
      </code></pre>
  <br />
  The problem is the if condition always fails since, $visibleCondition has a value <code>//element[@name='A']/@selected</code> whereas I want to get the XPath parsed and match against the actual value in the selected attribute which is <code>True</code>.
  How do I go about achieving this?</p>