<?xml version="1.0" encoding="UTF-8"?>
<rules
    xmlns="http://namespaces.plone.org/xdv"
    xmlns:css="http://namespaces.plone.org/xdv+css"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <!-- Base tag -->
    <!-- <replace theme="/html/head/base" content="/html/head/base" /> -->

    <!-- Drop styles in the head - these are added back by including them from Plone -->
    <!--
    <drop theme="/html/head/link" />
    <drop theme="/html/head/style" />
    -->

    <!-- Pull in Plone CSS -->
    <!-- <append theme="/html/head" content="/html/head/link | /html/head/style " />  -->

    <!-- Head: title -->
    <replace theme="/html/head/title" content="/html/head/title" />
    <replace theme="//*[@id='logo']/h1" content="//*[@id='content']/h1"/>
    <!-- <drop  content="//*[@id='content']/h1"/>  -->

    <!-- Main content area -->
    <prepend css:theme="#column2" css:content="#content > *"/>
    <drop css:theme="#column2 > *" />

    <!-- Transform all H2 tags from source/Plone content area into H1 tags that theme uses in main content -->
    <xsl:template match="*[@id = 'parent-fieldname-text']/h2"><h1><xsl:apply-templates     select="@*|node()"/></h1></xsl:template>

    <prepend css:theme="#column1" css:content="#portal-column-two > *"/>
    <!-- <replace css:theme="div.sbihead h1" css:content="dt.portletHeader > *"/> -->

    <xsl:template match="dl[@class = 'portlet portletNews']">
		<div class="sidebaritem">
			<div class="sbihead">
				<h1><xsl:apply-templates select="./dt/a"/></h1>
			</div>

		<div class="sbicontent">
			<xsl:for-each select="dd">
				<h2><xsl:apply-templates select="span[@class='portletItemDetails']/text()" /></h2>
				<p><xsl:apply-templates select="a/text()"/></p>
                <p><a href="{a/@href}">read more ...</a></p><p></p><p></p>
			</xsl:for-each>
		</div>
	</div>
	</xsl:template>
    <!--Example of more explicit rule not using {} <p><a href=""><xsl:attribute name="href"><xsl:value-of select="a/@href"/></xsl:attribute>read more ...</a></p><p></p><p></p>  -->

    <drop  theme="//*[@class='sidebaritem'][1]"/>


<!--	<xsl:apply-templates select="node()"/>  -->


</rules>

