<rules
    xmlns="http://namespaces.plone.org/diazo"
    xmlns:css="http://namespaces.plone.org/diazo/css"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <!-- Prevent theme usage in zmi-->
    <rules css:if-content="#visual-portal-wrapper">
        <theme href="index.html" />
    </rules>

    <replace content="/html/head/title" theme="/html/head/title" />
    <replace content="/html/head/base" theme="/html/head/base" />
    <replace content="/html/head/meta" theme="/html/head/meta" />
    <!--prepend content='/html/head' theme='/html/head' /-->
	    <!-- Pull in Plone CSS -->
    <prepend content="/html/head/link | /html/head/style " theme="/html/head"/>
    <!--before content='/html/head' theme='/html/head' /-->

    <!-- Pull in Plone JS -->
    <prepend content="/html/head/script" theme="/html/head"/>
    <copy attributes="href title" css:content='#portal-logo' css:theme='#header h1 a' />
    <!-- Body class -->
    <copy attributes="class" css:theme="body" css:content="body"/>
    <!-- Pull in global navigation menu-->
    <copy content='//*[@id="portal-globalnav"]' theme='//*[@id="menu"]' />
    <!-- Drop global navigation menu's id-->
    <drop attributes="id" css:content="#portal-globalnav"/>

    <!-- Pull in personal tools -->
    <prepend content='//*[@id="portal-personaltools-wrapper"]' theme='//*[@id="outer"]' />

    <!-- Pull in content -->
    <copy content='//*[@id="portal-column-content"]' theme='//*[@id="primaryContent"]' />
    <!-- Drop global navigation menu's class-->
    <drop attributes="class" css:content="#portal-column-content"/>
    <!-- Pull in column 1 -->
    <copy content='//*[@id="portal-column-one"]' theme='//*[@id="secondaryContent"]' />
    <!-- Pull in search box -->
    <prepend content='//*[@id="portal-searchbox"]' theme='//*[@id="secondaryContent"]' />
    <!-- Drop global navigation menu's class-->
    <drop attributes="class" css:content="#portal-column-one"/>
    <copy content='//*[@id="portal-footer"]' theme='//*[@id="footer"]' />
    <append content='//*[@id="portal-colophon"]' theme='//*[@id="footer"]' />
    <append content='//*[@id="portal-siteactions"]' theme='//*[@id="footer"]' />

    <!--copy content='//*[@id="portal-logo"]' theme='//*[@id="logo"]' /-->


</rules>
