ouput as an attribute Feb 18, 2008 • Fred Yang We can ouput normal text as <xsl:value-of select="xpath-expression" />. If we want to ouput as attribute, we should use {xpath-expression}. For example <pre data-sub="prettyprint:_"> <div id="{@Sex}"> <xsl:value-of select="."/>, </div> </pre> Please enable JavaScript to view the comments powered by Disqus.