xsl-list
[Top] [All Lists]

Re: Nesting {...}

2003-01-24 17:30:04
Richard Lewis wrote:
Is it possible to have two {...} expressions in one?
No. The string inside the braces must be an XPath expression,
and there are no braces allowed inside XPath expressions.

href="mailto:{//person[(_at_)initials='{(_at_)initials}']/@email}"><xsl:value-of
select="@initials" /></a>

(NOTE: in person[(_at_)initials='{(_at_)initials}'] the two 'initials' 
attributes
are different; the first is the initials attribute of a 'person' element
and the second and third ones are the initials attributes of the context
node.)
Try
  href="mailto:{//person[(_at_)initials=current()/@initials]/@email}">

J.Pietschmann


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>