<?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">
    
    <xsl:strip-space elements="*" />
    
	<replace content="/html/head/title" theme="/html/head/title" />
	<replace content="/html/head/base" theme="/html/head/base" />

	<!-- Add in the Plone-created CSS and JS in addition to the static ones -->
	<append  content="/html/head/script" theme="/html/head" />
	<append  content="/html/head/style" theme="/html/head" />

	<!-- Copy over the id/class attributes on the body tag, this is important
	     for Kupu and per-section styling -->
	<prepend theme="/html/body" content="/html/body/@class" />
	<prepend theme="/html/body" content="/html/body/@id" />

	<!-- Copy the main navigation -->
	<copy css:content="#portal-globalnav > li" css:theme="#main-nav" />

	<!-- Get rid of the user icon and copy the user link -->
	<drop css:content="#user-name > img" /> 
	<replace css:content="#user-name" css:theme="user > a" />

	<!-- Copy the edit bar -->
	<copy css:content="#content-views"			css:theme="#edit-menu" />
	<copy css:content="#contentActionMenus"		css:theme="#action-menu" />
	<!-- …but get rid of the content type icons. -->
	<drop css:content="#plone-contentmenu-factories > dd > ul > li > a > img" /> 

	<!-- Copy over the contents of the page body -->
	<replace css:content="#region-content"	css:theme="#region-content" />

	<!-- Bring the portlet columns over  to the sidebar -->
	<append css:content="#portal-column-one > div"	css:theme="#sidebar" />
	<append css:content="#portal-column-two > div"	css:theme="#sidebar" />

	<!-- <copy content="/html/body/div/table/tbody/tr/td/div/div/dl/dd/ul/li" theme="//*[@id="sub-nav"]" /> -->

    
</rules>

