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

http://issues.apache.org/bugzilla/show_bug.cgi?id=35413

           Summary: Calendar generator produces not wellformed xml for
                    certain months
           Product: Cocoon 2
           Version: 2.1.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sitemap components
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


System:
standalone cocoon 2.1.7 in jetty on j2sdk1.4.2_08 (linux)

Problem:
Cocoon calendar generator produces not-wellformed xml for certain months
(It adds an additional </calendar:week>)

see http://revo.naber.biz:8888/test/2005/7/calendar
and http://revo.naber.biz:8888/test/2006/12/calendar
other months I tried worked fine. It seems it only happens when the week ends on
the last day of the month.

test sub-sitemap:

<!-- xsp calendar  -->
<map:match pattern="*/*/calendar">
        <map:generate type="calendar" >
          <map:parameter name="year" value="{1}" />
          <map:parameter name="month" value="{2}" />
          <map:parameter name="country" value="DE" />
          <map:parameter name="lang" value="DE" />
          <map:parameter name="padWeeks" value="true" />
        </map:generate>
        <map:serialize type="xml"/>
</map:match>

The bug vanishes when I set <map:parameter name="padWeeks" value="false" />
The code tries to fill up and end a week it never began in the first place.

see http://revo.naber.biz:8888/test/2005/7/notfullcalendar

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to