All pastes #753003 Raw Edit

Miscellany

public text v1 · immutable
#753003 ·published 2007-10-28 21:48 UTC
rendered paste body
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html"/>
	<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
   <html>
	<xsl:template match="title">
	<head>
		<title>
			<xsl:value-of select="."/>
		</title>
		<style type="text/css">
                           h1, h2, div {
                                   text-align: center;
                           }
        </style>
	</head>
	
	<body>

				<h2>
					<b>
					<xsl:value-of select="."/>
					</b>
				</h2>
			
	</xsl:template>
	<xsl:template match ="date">
		<div>
			<xsl:value-of select="."/>
		</div>
	</xsl:template>
	<xsl:template match ="author">
		<div>
			
			<xsl:value-of select="."/>
			
		</div>
	</xsl:template>
	<xsl:template match ="summary">
		<div>
		
			<i>
				<xsl:value-of select="."/>
			</i>
		
		</div>
	</xsl:template>
	<xsl:template match ="files/doc">
		<p>
			<div>Documentation:</div>
			<xsl:for-each select="filenamecontainer">
				<div>
					
					<xsl:variable name="link">
						<xsl:value-of select="."/>
					</xsl:variable>
					<a href="{$link}">
						<xsl:value-of select="."/>
					</a>
					
				</div>
			</xsl:for-each>
		</p>
	</xsl:template>
	<xsl:template match ="files/code">
		<p>
			<div>Code:</div>
			<xsl:for-each select="filenamecontainer">
				<div>
					
					<xsl:variable name="link">
						<xsl:value-of select="."/>
					</xsl:variable>
					<a href="{$link}">
						<xsl:value-of select="."/>
					</a>
					
				</div>
			</xsl:for-each>
		</p>
	</xsl:template>
	<xsl:template match ="versionhistory">
		<div>Version History:</div>
		<xsl:for-each select="versioncontainer">
			<div>
				
				<xsl:value-of select="number"/>
				
			</div>
			<div>
				
				<xsl:value-of select="info"/>

			</div>
		</xsl:for-each>
	</xsl:template>
	</body>
	</html>
</xsl:stylesheet>