<?xml version='1.0' encoding='utf-8'?>
<!-- This stylesheet is the result of performing all of the steps described
     in the "Making a Static Web Page Dynamic" topic of the Using Stylus Studio
     book. -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
	<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>VideoCenter - Video Listing</title>
<style type="text/css">
<![CDATA[            body
                { color: #ffffff;
                background: #000000;        
                font-family: Helvetica, Arial}
            
            table
                {
                
               }
        
            th
                {
                text-align: left;
                font-family: Times;
                color: #ffffff;
                background: #ff0000;
                vertical-align: bottom; }
        
            tr
                { vertical-align: top; }

            td
                {
                font-size: 80%;
                color: #ffffff; 
                background: #000000;
                vertical-align: top; }
                
            a { color: #ffffff;
              text-decoration: none }
]]>
</style>
</head>
		<body><!-- Page Headers -->
			<center>
				<img align="bottom" width="600" src="images/header/title.gif" alt="Video Center" border="0" height="26"/>
				<br/>
				<img align="bottom" width="600" src="images/header/listing.gif" alt="listing" border="0" height="22"/>
				<br/>
			</center>
			<center>
				<table cellSpacing="0" width="600" border="0" cellPadding="4">
					<tr bgColor="#00a000">
						<th width="185" style="BACKGROUND: #00a000">
							<b>Title</b>
						</th>
						<th width="200" style="BACKGROUND: #00a000">
							<b>Summary</b>
						</th>
						<th width="50" style="BACKGROUND: #00a000">
							<b>Genre</b>
						</th>
						<th width="50" style="BACKGROUND: #00a000">
							<b>Format</b>
						</th>
						<th width="65" style="BACKGROUND: #00a000">
							<b>Price</b>
						</th>
					</tr>
					<xsl:apply-templates select="result/videos/video"/>
				</table>
			</center>
			<center>
				<table cellSpacing="0" width="600" border="0" cellPadding="4"><!-- Navigation -->
					<tr>
						<td width="600" colSpan="3">
							<center>
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=action">action</a> | 
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=comedy">comedy</a> | 
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=drama">drama</a> | 
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=family">family</a> | 
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=foreign">foreign</a> | 
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=horror">horror</a> | 
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=musical">musical</a> | 
								<a style="TEXT-DECORATION: none" href="/scripts/xlnisapi.dll/videoctr/videos.xml?xslsheet=videoctr:/style/list.xsl&amp;imageRoot=/videoctr/images/&amp;genre=special">special</a> | 
								<a style="TEXT-DECORATION: none" href="/videoctr/cart.asp">
									<font color="#ff0000">shopping cart</font>
								</a>
							</center>
						</td>
					</tr>
					<tr>
						<td align="left" width="100">
							<a href="http://www.stylusstudio.com">
								<img src="images/powerstylus.gif" alt="Powered by Stylus Studio" border="0"/>
							</a>
						</td>
						<td width="400"/>
						<td align="right" width="100">
							<a href="http://www.stylusstudio.com">
								<img src="images/powerstylus.gif" alt="Designed with Stylus Studio" border="0"/>
							</a>
						</td>
					</tr>
				</table>
			</center>
		</body>
	</html>
</xsl:template>

<xsl:template match="video"><!-- *** Start Video *** -->
	<tr><!-- Title -->
		<td width="185" vAlign="top">
			<b>
				<xsl:apply-templates select="title"/>
			</b>
		</td><!-- Summary -->
		<td width="200" vAlign="top">
			<table cellSpacing="0" width="215" border="0" cellPadding="2">
				<tr>
					<td width="47">
						<img align="bottom" src="images/video/{@id}.gif" border="0" height="100"/>
					</td>
					<td width="153" vAlign="top">
						<font size="-1">
							<xsl:apply-templates select="summary"/>
						</font>
					</td>
				</tr>
				<tr>
					<td width="153">
						<font size="-2">Director: 
							<xsl:apply-templates select="director"/>
							<br/>Studio: 
							<xsl:apply-templates select="studio"/>
							<br/>Year: 
							<xsl:apply-templates select="year"/>
							<br/>Running Time: 
							<xsl:apply-templates select="runtime"/>Minutes 
						</font>
					</td>
				</tr>
			</table>
		</td><!-- Genre -->
		<td width="50" vAlign="top">
			<xsl:apply-templates select="genre"/>
		</td><!-- Format -->
		<td width="165" vAlign="top" colSpan="3">
			<table width="165">
				<xsl:if test="vhs_stock != 0">
					<tr>
						<td width="50" vAlign="top">
							<img align="bottom" width="45" src="images/format/vhs.gif" alt="vhs" border="0" height="15"/>
						</td>
						<td width="61" vAlign="top">$ 
							<xsl:apply-templates select="vhs"/>
						</td>
					</tr>
				</xsl:if>
				<xsl:if test="dvd_stock != 0">
					<tr>
						<td width="50" vAlign="top">
							<img align="bottom" width="45" src="images/format/dvd.gif" alt="dvd" border="0" height="15"/>
						</td>
						<td width="61" vAlign="top">$ 
							<xsl:apply-templates select="dvd"/>
						</td>
					</tr>
				</xsl:if>
				<xsl:if test="beta_stock != 0">
					<tr>
						<td width="50" vAlign="top">
							<img align="bottom" width="45" src="images/format/beta.gif" alt="beta" border="0" height="15"/>
						</td>
						<td width="61" vAlign="top">$ 
							<xsl:apply-templates select="beta"/>
						</td>
					</tr>
				</xsl:if>
				<xsl:if test="LaserDisk_stock != 0">
					<tr>
						<td width="50" vAlign="top">
							<img align="bottom" width="45" src="images/format/laserDisk.gif" alt="laserDisk" border="0" height="15"/>
						</td>
						<td width="61" vAlign="top">$ 
							<xsl:apply-templates select="LaserDisk"/>
						</td>
					</tr>
				</xsl:if>
			</table>
		</td>
	</tr>
	<tr>
		<td width="600" height="32" colSpan="6">
		</td>
	</tr><!-- *** End Video *** -->
</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2009. Progress Software Corporation. All rights reserved.

<metaInformation>
	<scenarios>
		<scenario default="yes" name="Video Scenario 1" userelativepaths="yes" externalpreview="no" url="..\Program Files\Stylus Studio X14 Release 2 XML Enterprise Suite\examples\VideoCenter\videos.xml"
		          htmlbaseurl="..\Program Files\Stylus Studio X14 Release 2 XML Enterprise Suite\examples\VideoCenter" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline=""
		          additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="">
			<advancedProp name="sInitialMode" value=""/>
			<advancedProp name="bXsltOneIsOkay" value="true"/>
			<advancedProp name="bSchemaAware" value="true"/>
			<advancedProp name="bGenerateByteCode" value="true"/>
			<advancedProp name="bXml11" value="false"/>
			<advancedProp name="iValidation" value="0"/>
			<advancedProp name="bExtensions" value="true"/>
			<advancedProp name="iWhitespace" value="0"/>
			<advancedProp name="sInitialTemplate" value=""/>
			<advancedProp name="bTinyTree" value="true"/>
			<advancedProp name="xsltVersion" value="2.0"/>
			<advancedProp name="bWarnings" value="true"/>
			<advancedProp name="bUseDTD" value="false"/>
			<advancedProp name="iErrorHandling" value="fatal"/>
		</scenario>
	</scenarios>
	<MapperMetaTag>
		<MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
		<MapperBlockPosition></MapperBlockPosition>
		<TemplateContext></TemplateContext>
		<MapperFilter side="source"></MapperFilter>
	</MapperMetaTag>
</metaInformation>
-->