This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Transforming into embedded HTML
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 6 Jun 2002 22:02:34 -0600 (MDT)
- Subject: Re: [xsl] Transforming into embedded HTML
- Reply-to: xsl-list at lists dot mulberrytech dot com
jmabbate wrote:
> <a href="mailto:<xsl:value-of select="email"/>"><xsl:value-of
> select="email"/></a>
Certain attribute values get to be "attribute value templates" (AVTs) per the
XSLT spec. Anything in them in curly braces is evaluated as an XPath
expression. Use this:
<a href="mailto:{email}">
<xsl:value-of select="email"/>
</a>
Alternatively,
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat('mailto:',email)"/>
</xsl:attribute>
</a>
or any of a half-dozen variations of same.
> I have looked in the XSL-List archives and XSL FAQ and couldn't
> find anything on this topic.
It is certainly in the FAQ at www.dpawson.co.uk -- under both 'Attributes' and
'Attribute Value Templates'.
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list