<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html" indent="yes" encoding="utf-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"/>

	<xsl:template match="/">
		<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<title><xsl:value-of select="/SITEBUILDER-PAGE/VIEW-CONTENT/@TITLE"/></title>
			</head>
			<body  style="border-top-width: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; border-right-width: 0px;">
				<xsl:apply-templates select="/SITEBUILDER-PAGE/JS-LOCALE"/>
				<iframe frameborder="0" style="width: 100%; height: 100%;BORDER-TOP-WIDTH: 0px; padding-right: 0px; padding-left: 0px; border-left-width: 0px; border-bottom-width: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px; border-right-width: 0px;">
					<xsl:attribute name="src"><xsl:value-of select="/SITEBUILDER-PAGE/VIEW-CONTENT/@URL"/></xsl:attribute>
				</iframe>
			</body>
		</html>
	</xsl:template>

	<xsl:template match="JS-LOCALE">
		<script src='/js/locale.js?{$version}.{$build}' type='text/javascript'></script>
		<script type="text/javascript" language="javascript">
			<xsl:for-each select="*">
				SbAppendLocaleKey('<xsl:value-of select="name()"/>', '<xsl:value-of select="."/>');
			</xsl:for-each>
		</script>
	</xsl:template>
	
</xsl:stylesheet>