This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

xsl <xsl:template match= question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]