DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7196>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7196

TreeProcessor: cocoon-view does not work if label is defined in an aggregation

           Summary: TreeProcessor: cocoon-view does not work if label is
                    defined in an aggregation
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
               URL: http://localhost:8080/cocoon/documents/index.html?cocoon
                    -view=content
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Example:
<map:match pattern="*.html">
    <map:aggregate element="site">
     <map:part src="cocoon:/book-{1}.xml"/>
     <map:part src="cocoon:/body-{1}.xml" label="content"/>
    </map:aggregate>
    <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 think the problem is in 
org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage in the method 
"getViewsForStatement". If the statement is a map:aggregate the part labels need 
to be evaluated. If I also add the label "content" to the map:aggregate it 
works.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to