Hi!!
We are trying to build a "sitemap" for our lenya site.We intend to pick the
navigation titles of our documents(pages) from the
$pub/live/content/sitetree.xml. According to our understanding we have done
the following:
First we have created a new document named 'sitemap' and we are going to
create a xslt(say 'page2xhtml-MyStylesheet.xsl')to go with this document. Our
object is to aggregate this document('sitemap') and the
$pub/authoring/sitetree.xml. So in the publication-sitemap.xmap we have done
this:
<map:match pattern="lenyabody-*/*/*/*/**">
<map:select type="parameter">
<map:parameter name="parameter-selector-test" value="{page-
envelope:document-id}"/>
<map:when test="/sitemap">
<map:aggregate element="cmsbody">
<map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
<map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
<map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml"/>
<map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
<map:part src="content/authoring/sitetree.xml"/>
<map:part src="cocoon:/lenya-document-{1}/{3}/{4}/{page-
envelope:document-path}"/>
</map:aggregate>
<map:transform src="xslt/page2xhtml-MyStylesheet.xsl">
<map:parameter name="root" value="{page-
envelope:context-prefix}/{2}/{3}"/>
<map:parameter name="url" value="{5}"/>
<map:parameter name="document-id" value="{page-
envelope:document-id}"/>
<map:parameter name="document-type" value="{page-
envelope:document-type}"/>
<map:parameter name="language" value="{page-
envelope:document-language}"/>
</map:transform>
</map:when>
<map:otherwise>
<map:aggregate element="cmsbody">
<map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
<map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
<map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml"/>
<map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
<map:part src="cocoon:/lenya-document-{1}/{3}/{4}/{page-
envelope:document-path}"/>
</map:aggregate>
<map:transform src="xslt/page2xhtml-{4}.xsl">
<map:parameter name="root" value="{page-
envelope:context-prefix}/{2}/{3}"/>
<map:parameter name="url" value="{5}"/>
<map:parameter name="document-id" value="{page-
envelope:document-id}"/>
<map:parameter name="document-type" value="{page-
envelope:document-type}"/>
<map:parameter name="language" value="{page-
envelope:document-language}"/>
</map:transform>
</map:otherwise>
</map:select>
.................
Presently we have simply copied and renamed the original 'page2xhtml.xsl' for
our xsl file. We thought this would be enough, but the content of sitetree.xml
file isn't appearing which means that its not being aggregated?????
What are we missing???? Can anyone help us on this??
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]