Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listing Records Side by Side
Message
From
07/02/2003 11:08:25
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
00748888
Message ID:
00750624
Views:
22
Hey David,

How about an email link? The code I have is below.
   <a href="{mailto:}" target="_blank">
   <font size="1">
      <xsl:value-of select="email"/>
   </font></a>
>>David,
>>
>>
>> Thanks for the response. How would I display a field as an email link?
>
>Use the curly braces {} around the attribute.
>Here is the xsl that I use on my site to transform a
>news feed into links:
>
>
><?xml version="1.0"?>
><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
><xsl:output method="html" indent="yes"/>
><xsl:param name="TITLE"/>
>
><xsl:template match="rss">
>    <a href="/portal/content/DotNetNews.aspx?tabIndex=-1">Put news on your site!</a>
>	<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="darkblue">
>	<tr><td>
>	<table width="100%" border="0" cellspacing="0" cellpadding="1">
>	<!-- Do not show channel image -->
>	<xsl:for-each select="channel/item">
>		<tr><td>
>			<xsl:if test="position() mod 2 = 0">
>				<xsl:attribute name="bgcolor">#b0c4de</xsl:attribute>
>			</xsl:if>
>				<a href="{link}" target="_blank">
>					<font size="1">
>					<xsl:value-of select="title"/>
>					</font></a>
>		<!-- only display markup for description if it's present -->
>		<font size="1">
>		<xsl:value-of select="description"/>
>		</font>
>		</td></tr>
>	</xsl:for-each>
>	</table>
>	</td></tr>
>	</table>
></xsl:template>
>
><xsl:template match="image">
>	<div>
>		<a href="{link}" title="{description}">
>			<img src="{url}" border="0" alt="{title}" align="right"/>
>		</a>
>	</div>
></xsl:template>
>
><xsl:template match="description">
>		<p class="note">
>			<small>
>				<xsl:value-of select="."/>
>			</small>
>		</p>
></xsl:template>
>
></xsl:stylesheet>
>
Thanks

Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform