| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 2002-2005 The Apache Software Foundation or its licensors, |
| as applicable. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <forrest:contract |
| xmlns:i18n="http://apache.org/cocoon/i18n/2.1" |
| xmlns:forrest="http://apache.org/forrest/templates/1.0" |
| xmlns:html="http://www.w3.org/2002/06/xhtml2" |
| name="xhtml2-content-body"> |
| <description> |
| xhtml2-content-body - Template will output the xhtml2-content-body. |
| </description> |
| <usage><![CDATA[<forrest:contract name="xhtml2-content-body" |
| dataURI="cocoon://#{$getRequest}.body.xml"/>]]></usage> |
| <forrest:template xmlns:forrest="http://apache.org/forrest/templates/1.0" |
| name="xhtml2-content-body" inputFormat="xsl"> |
| <xsl:stylesheet version="1.1" |
| xmlns:html="http://www.w3.org/2002/06/xhtml2" |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| exclude-result-prefixes="html xsl"> |
| <!--<xsl:include href="lm://transform.xhtml2.html.structurer"/>--> |
| <xsl:template match="/"> |
| <forrest:content> |
| <forrest:part xpath="/html/head"> |
| <xsl:comment>+ |start xhtml2-content-body head +</xsl:comment> |
| <xsl:copy-of select="html/head/*" /> |
| <xsl:comment>+ |end xhtml2-content-body head +</xsl:comment> |
| </forrest:part> |
| <forrest:part> |
| <xsl:comment>+ |start xhtml2-content-body body +</xsl:comment> |
| <xsl:copy-of select="html/body/*" /> |
| <xsl:comment>+ |end xhtml2-content-body body +</xsl:comment> |
| </forrest:part> |
| </forrest:content> |
| </xsl:template> |
| </xsl:stylesheet> |
| </forrest:template> |
| </forrest:contract> |