Jerry Langley wrote:
Currently my xsl:stylesheet contains code as follows:
<a href="{concat(/links/@webroot,@url)}" title="My ToolTip Here">
<xsl:value-of select="@name"/></a>
I want to replace "My ToolTip Here" with the contents of the @description
element.
With an attribute value template you can put an XPath expression in
curly braces e.g.
<a title="{description}"
href="{concat(/links/@webroot,@url)}">
if description is a child element of the context node or e.g.
<a title="{@description}"
href="{concat(/links/@webroot,@url)}">
if description is an attribute of the context node.
Your description "of the @description element" does not really make
sense, if you have an element with element name description then the
XPath is
description
only if it is an attribute and not an element you use
@description
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/