<xsl:stylesheet xmlns:ext="urn:extensions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="ext" extension-element-prefixes="ext"><xsl:output omit-xml-declaration="no" method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" /><xsl:param name="mode">content</xsl:param><xsl:param name="preview">no</xsl:param><xsl:param name="uri" /><xsl:template match="/"><xsl:choose><xsl:when test="$mode='content'"><xsl:call-template name="content" /></xsl:when><xsl:when test="$mode='head'"><xsl:call-template name="head" /></xsl:when><xsl:when test="$mode='component'"><xsl:call-template name="component" /></xsl:when><xsl:when test="$mode='topics'"><xsl:call-template name="topics" /></xsl:when></xsl:choose></xsl:template><xsl:template name="head"><title>egooge - <xsl:value-of select="Story/Story/Head/Head/PageHeadline" /></title><style>
      h1 {color:red; font-size:18px}
    </style></xsl:template><xsl:template name="component" /><xsl:template name="content"><div style="background-Color:white; padding:10px; margin:10px;"><h1><xsl:apply-templates select="Story/Story/Head/Head/PageHeadline/p" /></h1><xsl:apply-templates select="Story/Story/StoryContent/StoryContent" /></div><div><xsl:variable name="q" select="/Story/Story/Metadata/Metadata/Topics" /><xsl:if test="string-length($q) != 0"><!--query--><p>
          Query: <xsl:value-of select="$q" /></p><div style="background-Color:#EEEEEE; border:1px solid #CCCCCC"><query minOccurs="1" maxOccurs="1" container="complex"><query egooge_resources="http://foo.com/resource1.xml" msdata_IsDataSet="true"><queryString type="string" defaultValue="" /><maxRows type="string" defaultValue="" /><description type="string" defaultValue="" egooge_handler="richText"><p> </p></description></query></query></div></xsl:if></div></xsl:template><xsl:template match="StoryContent"><div><xsl:apply-templates select="Content" /></div></xsl:template><xsl:template name="topics"><div style="background-Color:#EEEEEE; padding:10px; margin:10px;"><xsl:apply-templates select="Story/Story/StoryContent/StoryContent/CColumnAbove" /></div></xsl:template><xsl:template match="a|p|strong|br|@*|text()"><xsl:copy><xsl:apply-templates select="node()|@*|text()" /></xsl:copy></xsl:template></xsl:stylesheet>