This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl <xsl:template match= question
- From: "dmitri kerievsky" <dmitrik at mindspring dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 14 Jun 2002 10:15:54 -0400
- Subject: [xsl] xsl <xsl:template match= question
- Reply-to: xsl-list at lists dot mulberrytech dot com
this is outputting AB, instead of href="mailto:joe@here.net">joe doe</a>
how can this line <xsl:template
match="catalog/artist/name/title/album/label/">
in the .xsl be changed to do this, without assigning an attribute?
thx,
dk
.xml
<catalog>
<artist>
<name></name>
<album>
<title>AB</title>
<label>
<person email="joe@here.net" name="joe doe"/>
</label>
</album>
</artist>
</catalog>
.xsl
<xsl:template match="catalog/artist/name/title/album/label/">
<a href="{concat('mailto:', @email)}"><xsl:value-of select="@name"
/></a>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list