Attachment 'lenyaBodyCincludes.xsl'

Download

   1 <?xml version="1.0" encoding="UTF-8" ?>
   2 <!--
   3 	Copyright 1999-2004 The Apache Software Foundation
   4 	
   5 	Licensed under the Apache License, Version 2.0 (the "License");
   6 	you may not use this file except in compliance with the License.
   7 	You may obtain a copy of the License at
   8 	
   9 	http://www.apache.org/licenses/LICENSE-2.0
  10 	
  11 	Unless required by applicable law or agreed to in writing, software
  12 	distributed under the License is distributed on an "AS IS" BASIS,
  13 	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14 	See the License for the specific language governing permissions and
  15 	limitations under the License.
  16 -->
  17 
  18 <!-- $Id$ -->
  19 
  20 <!--  replaces the default aggregate statement, which does not enable caching and fetches the
  21 selective sitetree 4 times, for the search, tabs, menu and breadcrumb !!!
  22 
  23  -->
  24 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  25 	xmlns:cinclude="http://apache.org/cocoon/include/1.0" >
  26 	<xsl:param name="rendertype"  />
  27 	<xsl:param name="publication-id" />
  28 	<xsl:param name="area" />
  29 	<xsl:param name="doctype" />
  30 	<xsl:param name="url" />
  31 	<xsl:param name="document-path"/>
  32 
  33 
  34 <xsl:template match="/">
  35 <cmsbody>
  36 					
  37 					<cinclude:include  src="cocoon://navigation/{$publication-id}/{$area}/breadcrumb/{$url}.xml" />
  38 					<cinclude:include  src="cocoon://navigation/{$publication-id}/{$area}/tabs/{$url}.xml" />
  39 					<cinclude:include  src="cocoon://navigation/{$publication-id}/{$area}/menu/{$url}.xml" />
  40 					<cinclude:include  src="cocoon://navigation/{$publication-id}/{$area}/search/{$url}.xml" />
  41   				    <cinclude:include  src="cocoon:/lenya-document-{$rendertype}/{$area}/{$doctype}/{$document-path}" /> 
  42 </cmsbody>
  43 
  44 
  45 </xsl:template>	
  46 
  47 
  48 </xsl:stylesheet>

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.