<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<!-- 
IFRAME VIEW - move into xsl folder to use
Displays the production page in an iframe to simulate a production view tab.

Contributors: Your Name Here
Last Updated 4/2013
-->
<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"
    exclude-result-prefixes="ou xsl xs fn ouc">
			
		<xsl:import href="vars.xsl" />
		<xsl:import href="functions.xsl" />
		
		<xsl:output method="html" omit-xml-declaration="yes" indent="yes" encoding="UTF-8" />

			
		<xsl:template match="/"> 
			<xsl:variable name="url" select="concat($ou:httproot,(substring-before($ou:filename,'.iframe')),'.', $extension )"/>
		
			<html>
			<head>
			<title>Production Preview of <xsl:value-of select="$pageTitle"/></title>
			<p><em>The page located at <xsl:value-of select="$url"/> is displayed in an iframe below.</em></p>
			</head>
			<body style="margin:0">	
				<iframe name="Production View of {$pageTitle}" src="{$url}" style="width:100%; height:500px;" seamless="seamless">
					<p>Your browser does not support iframes. Please view the production version of the page <a href="{$url}">here.</a></p>
				</iframe>						
			</body>
			</html>
			

	
		</xsl:template> 
		
</xsl:stylesheet>
