forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo" <leont...@tstt.net.tt>
Subject XSP rendered with menu & tabs
Date Tue, 02 Dec 2003 13:47:17 GMT
Hi folks

I am trying to get my XSP page to be rendered
with both the tabs and menu.

I placed the following in my sitemap
and get the menu, tab but the body content is blank
I tried the combination of code (1a) + (2) below
and (1b) +(2) below in my sitemap


(1a)
<map:match pattern="**body-*.xsp">
  <map:generate src="{project:content.xdocs}/{1}{2}.xsp"
type="serverpages"/>
  <map:transform type="cinclude"/>
  <map:transform src="context://resources/stylesheets/functions/test2.xsl"/>
  <map:serialize type="html"/>
</map:match>


(1b)
<map:match>
  <map:generate src="{project:content.xdocs}/{1}{2}.xsp"
type="serverpages"/>
  <map:transform type="cinclude"/>
  <map:call resource="skinit">
     <map:parameter name="type" value="test2"/>
     <map:parameter name="path" value="{1}{2}.xsp"/>
     <map:parameter name="notoc" value="false"/>
</map:call>
</map:match>


(2)
<map:match pattern="**/*.xsp">
  <map:aggregate element="site">
     <map:part src="cocoon:/{1}/tab-{2}.html"/>
     <map:part src="cocoon:/{1}/menu-{2}.html"/>
     <map:part src="cocoon:/{1}/body-{2}.xsp"/>
  </map:aggregate>
  <map:call resource="skinit">
     <map:parameter name="type" value="site2xhtml"/>
     <map:parameter name="path" value="{0}"/>
  </map:call>
</map:match>


Regards
Leo


Mime
View raw message