cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard Huber" <bh22...@i-one.at>
Subject Cocoon-view, Cocoon-sitemap documentation
Date Fri, 02 Nov 2001 14:18:02 GMT
Hi,

I was trying to use to "?cocoon-view=view" query-parameter
on serveral URL.

Sadly for the http://localhost:8080/cocoon/documents/* URLs
Cocoon always responded with an HTML content.

As I was digging around in 
\org\apache\cocoon\components\language\markup\sitemap\java\sitemap.xsl,
I found the map:label element for setting a view label,
in a pipeline at any point.

Thus I changed the documentation pipelines to:
   <map:match pattern="*.html">
    <map:aggregate element="site">
     <map:part src="cocoon:/book-{1}.xml"/>
     <map:part src="cocoon:/body-{1}.xml"/>
    </map:aggregate>
    
    <map:label name="content"/>
    
    <map:transform src="stylesheets/site2xhtml.xsl">
       <map:parameter name="use-request-parameters" value="true"/>
       <map:parameter name="header" value="graphics/{1}-header.jpg"/>
     </map:transform>
    <map:serialize/>
   </map:match>

I was changing the second html-match, too.
This way I received the content view of the C2 documentation.

As I was reviewing the documentation, I found nothing about map:label.
Moreover I found nothing about map:aggregate.

Below is a list of template matched map elements of the sitemap.xsl:

map:sitemap
map:match//map:match
map:match
map:select
map:act[@type]
map:act[@set]
map:generate
map:transform
map:serialize
map:read
map:mount
map:redirect-to
map:label
map:aggregate
map:part
map:pipeline//map:parameter | 
map:action-set//map:parameter | 
map:resource//map:parameter
map:param

map:logicsheet|
map:dependency|
map:handle-errors

As I think that some users may have to same problems,
some questions:

Is the documentation/xdocs/dtd/sitemap.dtd uptodate?
Is there some documentation update for the sitemap documentation,
describing map:label, and map:aggregate?

What's about map:dependency?

bye, berni


Mime
View raw message