You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/03/18 10:27:05 UTC

DO NOT REPLY [Bug 7196] New: - TreeProcessor: cocoon-view does not work if label is defined in an aggregation

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: cocoon-dev@xml.apache.org
        ReportedBy: volker.schmitt@basf-it-services.com


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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org