<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<!--
BASIC STYLESHEET for UAEX 2014 Implementation

Contributor - Steven Hefner 9/22/2014

-->
<xsl:stylesheet version="2.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ou="http://omniupdate.com/XSL/Variables"
    xmlns:fn="http://omniupdate.com/XSL/Functions"
    xmlns:ouc="http://omniupdate.com/XSL/Variables"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
    exclude-result-prefixes="ou xsl xs fn ouc">
			
		
		
		<xsl:output method="html" omit-xml-declaration="yes" indent="yes" encoding="UTF-8" />	
		<xsl:template match="/">
		<xsl:text disable-output-escaping="yes">&lt;</xsl:text>!DOCTYPE html<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
		<html>		
		<head>
		<!--
		*****************************************************************
		Fluid Baseline Grid v1.0.0
		Designed &amp; Built by Josh Hopkins and 40 Horse, http://40horse.com
		Licensed under Unlicense, http://unlicense.org/
		*****************************************************************
		-->
		<meta charset="utf-8"/>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
		<!-- Optimized mobile viewport -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
		<!-- Place favicon.ico and apple-touch-icon.png in root directory -->
		<link media="all" rel="stylesheet" href="/_resources/css/fancybox.css" />
		<link href="/_resources/css/style.css" rel="stylesheet" />						
		</head>		
			<body width="200px" height="600px">
				<table width="200px" height="800px" style="margin-top: -60px;">
					<tr>
						<td>
							<h4><a href="http://armarketmaker.wordpress.com/" target="_blank">Arkansas MarketMaker Blog</a></h4>
							<hr noshade="noshade" size="5" />
							<!-- document(), doc() multi, unparsed-text() -->
							<!--<xsl:for-each select="document('http://ndeyroy.oudemo.com/faculty.xml')/root/profile">-->
							<xsl:for-each select="document('http://armarketmaker.wordpress.com/feed/')/rss/channel/item">
								<xsl:choose>
									<xsl:when test="position()=1">
										<div width="200px" height="800px">
											
											<div class="col-lg-6">
												
												<h4><xsl:value-of select="./title/text()"/></h4>
												<br/><b>Author: </b><xsl:value-of select="substring(./dc:creator/text(),1,16)"/>
												<br/><b>Date: </b><xsl:value-of select="substring(./pubDate/text(),1,16)"/>
												<br/>
												<br/>
											</div>
											<div>
												<div>
													<div>
														<p><!-- normalize-space( -->
															<xsl:choose>
																
																<xsl:when test="contains(./description/text(),'[')">
																	<xsl:variable name="desc">
																		<xsl:value-of select="substring-before(./description/text(),'[')"/>
																	</xsl:variable>
																	<xsl:value-of disable-output-escaping="yes" select="$desc"/>...
																</xsl:when>
																<xsl:otherwise>
																	<xsl:variable name="desc">
																		<xsl:value-of select="./description/text()"/>
																	</xsl:variable>
																	<xsl:value-of disable-output-escaping="yes" select="$desc"/>...
																</xsl:otherwise>
															</xsl:choose>
															
															<br/>
															
															<!--Last Name: <xsl:value-of select="upper-case(normalize-space(./name/lastname/text()))"/>-->
														</p>
														<p><b><a href="{normalize-space(./link/text())}" target="_blank">Learn More</a></b>
														</p>
													</div>
												</div>
											</div>
											
										</div>
										
										<br/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:if test="position()=2">
											<h4>Previous Blog Posts</h4>
											<hr noshade="noshade" size="5"/>
										</xsl:if>
										<li style="margin-left: 2em;text-indent: -0.9em;list-style: disc inside 1em;"><b><a href="{normalize-space(./link/text())}" target="_blank"><xsl:value-of select="./title/text()"/></a></b></li>
										
									</xsl:otherwise>
								</xsl:choose>
							</xsl:for-each>
						</td>
					</tr>
				</table>
			<br/>
			<br/>		
		</body>	
	</html>		
	</xsl:template>	
</xsl:stylesheet>
