Click here to Skip to main content
15,881,380 members
Articles / Web Development / ASP.NET

Email Template using XSLT and XSLTArgumentList

Rate me:
Please Sign up or sign in to vote.
3.85/5 (10 votes)
15 Feb 20051 min read 103.5K   1.6K   35  
Usage of custom .NET objects in XSLT transformation.
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:UserDetails="ext:User"
	xmlns:Account="ext:Account">
	<xsl:template match="/">
		<html>
			<head>
				<title>Welcome <xsl:value-of select="UserDetails:get_UserName()" /></title>
			</head>
			<body>
				<P>Dear <xsl:value-of select="UserDetails:get_UserName()" />,
		</P>
					Your account <xsl:value-of select="Account:get_AccountName()" /> has 
					being created <BR />
					<BR />
					Please click on the following link to activate the account<BR />
					<a><xsl:attribute name="href">http://www.myservice.com/activateaccount.aspx?
					AccountName=<xsl:value-of select="Account:get_AccountName()" />&amp;
					ActivateFlag=1</xsl:attribute>Click Here To Activate
					</a>
				<P>
			Regards
			MyService Administrator
		</P>
				
				</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions