<?xml version="1.0"  encoding="utf-8"?>
<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd"> 
<xsl:stylesheet version="3.0" 
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
				xmlns:media="http://search.yahoo.com/mrss/" 
				xmlns:ou="http://omniupdate.com/XSL/Variables" 
				xmlns:xs="http://www.w3.org/2001/XMLSchema" 
				xmlns:fn="http://omniupdate.com/XSL/Functions" 
				xmlns:ouc="http://omniupdate.com/XSL/Variables">

					<xsl:import href="interior.xsl"/>	

<xsl:character-map name="EndOfDesc">
  <xsl:output-character character="&#8217;" string="'" />
</xsl:character-map>


	<xsl:template name="page-content">
		
		<xsl:comment> main </xsl:comment>
		<div id="main">

			<xsl:comment> container</xsl:comment>		
			<div class="container">
			
				<xsl:comment> breadcrumbs </xsl:comment>			
				<xsl:call-template name="breadcrumb">
					<xsl:with-param name="path" select="$ou:dirname"/>								
				</xsl:call-template>
						
				<xsl:if test="$pageColumns!='3'">
					<xsl:apply-templates select="content//social" mode="copy"/>
				</xsl:if>
							
					<xsl:comment> two-columns </xsl:comment>								
					<div id="two-columns" class="g3">									
					<!-- BEGIN LEFT COLUMN -->
					
					<xsl:if test="$pageColumns!='1'">
						<xsl:comment> sidebar </xsl:comment>			
						<aside id="sidebar">																						
								<xsl:comment> accordion-holder </xsl:comment>
								<nav class="accordion-holder">
									<h1><xsl:value-of select="$navigationTitle"/></h1>
									<xsl:comment> left navigation </xsl:comment>
									<xsl:call-template name="nav-builder">
										<xsl:with-param name="top-level" select="substring($navigationStart,1,string-length($navigationStart)-1)"/>
										<xsl:with-param name="path" select="$ou:dirname" />
										<xsl:with-param name="last_crumb" select="$ou:dirname" />
				             		</xsl:call-template>
								</nav>								
						</aside>
					</xsl:if>	
					<!-- END LEFT COLUMN -->
					
					<!-- BEGIN RIGHT COLUMN -->
					<xsl:if test="$pageColumns='3'">
					
					<xsl:comment> aside </xsl:comment>
					<aside class="aside">						
						<xsl:apply-templates select="content/right/node()" mode="copy"/>		
					</aside>
					</xsl:if>
					<!-- END RIGHT COLUMN -->
					
					<!-- MIDDLE CONTENT -->
					<xsl:comment> content </xsl:comment>
					<section id="content">					
						<h1>Arkansas Livestock Blog</h1>
			 			<!-- document(), doc() multi, unparsed-text() -->
						<!--<xsl:for-each select="document('http://ndeyroy.oudemo.com/faculty.xml')/root/profile">-->
						<xsl:for-each select="document('http://arkansaslivestockdotcom.wordpress.com/feed/')/rss/channel/item">
							<div class="col-lg-6">
						
								<h3><xsl:value-of select="./title/text()"/> </h3>
				
							</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())}">Learn More</a></b>
									</p>
								</div>
							</div>
						</div>
						<hr/>
						</xsl:for-each>
						<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">&nbsp;</script>-->
						<!--<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js">&nbsp;</script>-->
					</section>	
					<!-- END MIDDLE CONTENT -->
					</div>
				
					<div class="cf"><!--clearfix--></div>
				
				
			</div><!-- end container -->
		</div><!-- end main -->

	</xsl:template>
	
	<!--
	
	BEGIN TEMPLATE MATCHES FOR EDITABLE REGIONS
		
	Content will be copied in order it appears in the PCF.-->
	

	


	

</xsl:stylesheet>


