<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:b64="Base64" exclude-result-prefixes="b64">
<xsl:output method="html"/>
<xsl:template match="/">
	<html><head></head>
		<body>
			<table width="100%" border="1">
				<tbody>
					<xsl:for-each select="root/row">
						<tr><td><b>Employee</b></td><td><b>Picture</b></td></tr>
						<tr>
							<td width="33%">
								<xsl:value-of select="LastName"/>
							</td>
							<td width="33%">
								<xsl:variable name="img" select="concat('c:\temp\', LastName, '.jpg')"/>
								<xsl:value-of select="b64:decodeStringToFile(Photo, $img)"/>	
								<img src="{$img}"/>
							</td>
						</tr>
					</xsl:for-each>
				</tbody>
			</table>
		</body>
	</html>
</xsl:template>

</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="EmployeeWithPicture.rdbxml" userelativepaths="yes" externalpreview="no" url="EmployeeWithPicture.xml" htmlbaseurl="" outputurl="" processortype="xalan" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="EmployeeWithPicture.xml" srcSchemaRoot="root" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="html/body/table/tbody/xsl:for&#x2D;each" x="350" y="144"/><block path="html/body/table/tbody/xsl:for&#x2D;each/tr/td[2]/xsl:value&#x2D;of" x="350" y="234"/><block path="html/body/table/tbody/xsl:for&#x2D;each/tr/td[2]/xsl:value&#x2D;of[1]" x="390" y="234"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->