root/trunk/deployment/resources/xsl/default/default/errors.xsl

Revision 1927 (checked in by douglm, 5 years ago)

Changes to support implicit scheduling operations as defined in CalDAV scheduling draft 05

Bedework trunk is still a bit broken at this stage but sending of invitations appears to be working.

Replying is another matter...

  • Property svn:eol-style set to LF
Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3   <!-- Apart from the exception - trapped first, these are in alphabetic order of
4        error code. -->
5   <xsl:template match="error">
6     <xsl:choose>
7       <xsl:when test="id='org.bedework.client.error.exc'"><!-- trap exceptions first -->
8         An exception occurred: <em><xsl:value-of select="param"/></em>
9       </xsl:when>
10       <xsl:when test="id='edu.rpi.sss.util.error.exc'">
11         An exception occurred: <em><xsl:value-of select="param"/></em>
12       </xsl:when>
13       <xsl:when test="id='org.bedework.exception.norecurrenceinstances'">
14         Event or task has no recurrence instances: <em><xsl:value-of select="param"/></em>
15       </xsl:when>
16
17       <!-- client.error messages generally do not quite constitute validation errors
18            which mostly involve changing a field content.
19            Usually when we flag a data error here, it is due to a bug in the xsl -->
20
21       <xsl:when test="id='org.bedework.client.error.admingroupassignedcs'">
22         Error: admin group is assigned to: <em><xsl:value-of select="param"/></em>
23       </xsl:when>
24       <xsl:when test="id='org.bedework.client.error.alreadymember'">
25         Error: already a member: <em><xsl:value-of select="param"/></em>
26       </xsl:when>
27       <xsl:when test="id='org.bedework.client.error.badfilter'">
28         Error: invalid filter definition: <em><xsl:value-of select="param"/></em>
29       </xsl:when>
30       <xsl:when test="id='org.bedework.client.error.badinterval'">
31         Error: bad interval.
32       </xsl:when>
33       <xsl:when test="id='org.bedework.client.error.badintervalunit'">
34         Error: bad interval unit.
35       </xsl:when>
36       <xsl:when test="id='org.bedework.client.error.badrequest'">
37         Error: Bad request.
38       </xsl:when>
39       <xsl:when test="id='org.bedework.client.error.badschedulewhat'">
40         Error: Bad scheduling what parameter.
41       </xsl:when>
42       <xsl:when test="id='org.bedework.error.scheduling.baddestinationcalendar'">
43         Error: You must set a destination calendar
44       </xsl:when>
45       <xsl:when test="id='org.bedework.client.error.calsuitenotadded'">
46         Error: calendar suite not added.
47       </xsl:when>
48       <xsl:when test="id='org.bedework.client.error.cannotchangecalmode'">
49         Forbidden: you are not allowed to change the mode of the non-empty
50         collection <em><xsl:value-of select="param"/></em>.
51       </xsl:when>
52       <xsl:when test="id='org.bedework.client.error.choosegroupsuppressed'">
53         Error: choose group is suppressed.  You cannot perform that action at this time.
54       </xsl:when>
55       <xsl:when test="id='org.bedework.client.error.duplicatecategory'">
56         Cannot add: the category already exists.
57       </xsl:when>
58       <xsl:when test="id='org.bedework.client.error.duplicatecontact'">
59         Cannot add: the contact already exists.
60       </xsl:when>
61       <xsl:when test="id='org.bedework.client.error.duplicategroup'">
62         Error: duplicate group.  <em><xsl:value-of select="param"/></em> already exists.
63       </xsl:when>
64       <xsl:when test="id='org.bedework.client.error.duplicatelocation'">
65         Cannot add: the location already exists.
66       </xsl:when>
67       <xsl:when test="id='org.bedework.client.error.duplicateuid'">
68           Duplicate uid: this event already exists in this calendar.
69       </xsl:when>
70       <xsl:when test="id='org.bedework.client.error.failed.overrides'">
71           Error: there were <xsl:value-of select="param"/> failed overrides.
72       </xsl:when>
73       <xsl:when test="id='org.bedework.client.error.mail.norecipient'">
74         Error: the email has no recipient.
75       </xsl:when>
76       <xsl:when test="id='org.bedework.client.error.missingcalendarpath'">
77         Error: missing calendar path.
78       </xsl:when>
79       <xsl:when test="id='org.bedework.client.error.missingeventkeyfields'">
80         Error: missing event key fields
81       </xsl:when>
82       <xsl:when test="id='org.bedework.client.error.missingfilename'">
83           You must supply a file name (required).
84       </xsl:when>
85       <xsl:when test="id='org.bedework.client.error.missingrequestpar'">
86           Missing request parameter: <em><xsl:value-of select="param"/></em>.
87       </xsl:when>
88       <xsl:when test="id='org.bedework.client.error.missingschedulewhat'">
89         Error: Missing scheduling what parameter.
90       </xsl:when>
91       <xsl:when test="id='org.bedework.client.error.multipleevents'">
92         System Error: Multiple events when one expected.
93       </xsl:when>
94       <xsl:when test="id='org.bedework.client.error.noaccess'">
95         Error: no access.
96       </xsl:when>
97       <xsl:when test="id='org.bedework.client.error.nodefaultview'">
98           No default view defined
99       </xsl:when>
100       <xsl:when test="id='org.bedework.client.error.norecurrenceinstances'">
101           There are no instances for this recurring event.
102       </xsl:when>
103       <xsl:when test="id='org.bedework.client.error.noschedulingaccess'">
104           You cannot schedule events with user <em><xsl:value-of select="param"/></em>.
105       </xsl:when>
106       <xsl:when test="id='org.bedework.client.error.ongrouppath'">
107         Error: group may not be added to itself.
108       </xsl:when>
109       <xsl:when test="id='org.bedework.client.error.onlyfrominbox'">
110         You can only respond from your inbox.
111       </xsl:when>
112       <xsl:when test="id='org.bedework.client.error.onlytoinbox'">
113         You can only reply to an inbox.
114       </xsl:when>
115       <xsl:when test="id='org.bedework.client.error.referenced.calendar'">
116         Cannot delete: the calendar is not empty.
117       </xsl:when>
118       <xsl:when test="id='org.bedework.client.error.referenced.category'">
119         Cannot delete: the category is referenced by events.
120       </xsl:when>
121       <xsl:when test="id='org.bedework.client.error.referenced.contact'">
122         Cannot delete: the contact is referenced by events.
123       </xsl:when>
124       <xsl:when test="id='org.bedework.client.error.referenced.location'">
125         Cannot delete: the location is referenced by events.
126       </xsl:when>
127       <xsl:when test="id='org.bedework.client.error.referenced.subscription'">
128         Cannot delete: the subscription is included in view <em><xsl:value-of select="param"/></em>.<br/>
129         You must remove the subscription from this view before deleting.
130       </xsl:when>
131       <xsl:when test="id='org.bedework.error.timezones.readerror'">
132         Timzone error: could not read file.
133       </xsl:when>
134
135       <!-- things we cannot find -->
136       <xsl:when test="id='org.bedework.client.error.unknown.attendee'">
137           Unknown attendee <em><xsl:value-of select="param"/></em>
138       </xsl:when>
139       <xsl:when test="id='org.bedework.client.error.unknown.calendar'">
140         Not found: there is no calendar with the path <em><xsl:value-of select="param"/></em>.
141       </xsl:when>
142       <xsl:when test="id='org.bedework.client.error.unknown.calendarsuite'">
143         There is no calendar suite with the name <em><xsl:value-of select="param"/></em>.
144       </xsl:when>
145       <xsl:when test="id='org.bedework.client.error.unknown.calendartype'">
146         System error: there is no calendar with the type <em><xsl:value-of select="param"/></em>.
147       </xsl:when>
148       <xsl:when test="id='org.bedework.client.error.unknown.category'">
149         Not found: there is no category with the keyword <em><xsl:value-of select="param"/></em>.
150       </xsl:when>
151       <xsl:when test="id='org.bedework.client.error.unknown.contact'">
152         Not found: there is no contact <em><xsl:value-of select="param"/></em>.
153       </xsl:when>
154       <xsl:when test="id='org.bedework.client.error.unknown.event'">
155           Event <xsl:value-of select="param"/> does not exist.
156       </xsl:when>
157       <xsl:when test="id='org.bedework.client.error.unknown.filter'">
158         Error: unknown filter:  <em><xsl:value-of select="param"/></em>.
159       </xsl:when>
160       <xsl:when test="id='org.bedework.client.error.unknown.group'">
161         Error: unknown group:  <em><xsl:value-of select="param"/></em>.
162       </xsl:when>
163       <xsl:when test="id='org.bedework.client.error.unknown.location'">
164         Not found: there is no location identified by the id <em><xsl:value-of select="param"/></em>.
165       </xsl:when>
166       <xsl:when test="id='org.bedework.client.error.unknown.subscription'">
167         Not found: there is no user identified by the name <em><xsl:value-of select="param"/></em>.
168       </xsl:when>
169       <xsl:when test="id='org.bedework.client.error.unknown.user'">
170         Not found: the user <em><xsl:value-of select="param"/></em> was not found.
171       </xsl:when>
172       <xsl:when test="id='org.bedework.client.error.unknown.userid'">
173         Not found: there is no user identified by the id <em><xsl:value-of select="param"/></em>.
174       </xsl:when>
175       <xsl:when test="id='org.bedework.client.error.unknown.view'">
176         Not found: there is no view identified by the name <em><xsl:value-of select="param"/></em>.
177       </xsl:when>
178
179       <xsl:when test="id='org.bedework.client.error.viewnotadded'">
180         Error: the view was not added.
181       </xsl:when>
182
183       <!-- icalendar translation errors -->
184       <xsl:when test="id='org.bedework.exception.ical.noguid'">
185         An event must have a UID property.
186       </xsl:when>
187
188       <!-- Validation errors mostly dealing with incorrect or missing field values
189            that are explicitly under user control -->
190
191       <xsl:when test="id='org.bedework.validation.error.expectoneattendee'">
192         You must supply exactly one attendee.
193       </xsl:when>
194       <xsl:when test="id='org.bedework.validation.error.invalid.how'">
195         Error: bad ACL request (bad how setting).
196       </xsl:when>
197       <xsl:when test="id='org.bedework.validation.error.invalid.whotype'">
198         Error: bad who type (user or group).
199       </xsl:when>
200       <xsl:when test="id='org.bedework.validation.error.invalid.attendee'">
201           The attendee uri is invalid
202       </xsl:when>
203       <xsl:when test="id='org.bedework.validation.error.invalid.date'">
204           Bad or out-of-range date.
205       </xsl:when>
206       <xsl:when test="id='org.bedework.validation.error.invalid.duration'">
207         <em>Invalid duration</em> - you may not have a zero-length duration
208         for an all day event.
209       </xsl:when>
210       <xsl:when test="id='org.bedework.validation.error.invalid.endtype'">
211         The endtype <em><xsl:value-of select="param"/></em> is invalid.
212       </xsl:when>
213       <xsl:when test="id='org.bedework.validation.error.invalid.organizer'">
214           The organizer uri is invalid
215       </xsl:when>
216       <xsl:when test="id='org.bedework.validation.error.invalid.invalidschedulingobject'">
217           Cannot change this into a scheduling message
218       </xsl:when>
219       <xsl:when test="id='org.bedework.validation.error.invalid.prefendtype'">
220         The preferred endtype <em><xsl:value-of select="param"/></em> is invalid.
221       </xsl:when>
222       <xsl:when test="id='org.bedework.validation.error.invalid.prefusermode'">
223         The preferred user mode <em><xsl:value-of select="param"/></em> is invalid.
224       </xsl:when>
225       <xsl:when test="id='org.bedework.validation.error.invalid.prefworkdayend'">
226         Error: invalid working days end: <em><xsl:value-of select="param"/></em>
227       </xsl:when>
228       <xsl:when test="id='org.bedework.validation.error.invalid.prefworkdays'">
229         Error: invalid working days: start after end
230       </xsl:when>
231       <xsl:when test="id='org.bedework.validation.error.invalid.prefworkdaystart'">
232         Error: invalid working days start: <em><xsl:value-of select="param"/></em>
233       </xsl:when>
234       <xsl:when test="id='org.bedework.validation.error.invalid.recipient'">
235           The recipient uri is invalid
236       </xsl:when>
237       <xsl:when test="id='org.bedework.validation.error.invalid.recurcount'">
238         Error: bad value for recurrence count: <em><xsl:value-of select="param"/></em>
239       </xsl:when>
240       <xsl:when test="id='org.bedework.validation.error.invalid.recurcountanduntil'">
241         Error: Cannot specify count and until for recurrence
242       </xsl:when>
243       <xsl:when test="id='org.bedework.validation.error.invalid.recurinterval'">
244         Error: bad value for recurrence interval: <em><xsl:value-of select="param"/></em>
245       </xsl:when>
246       <xsl:when test="id='org.bedework.validation.error.invalid.recurrule'">
247         Error: bad recurrence rule: <em><xsl:value-of select="param"/></em>
248       </xsl:when>
249       <xsl:when test="id='org.bedework.validation.error.invalid.recuruntil'">
250         Error: bad value for recurrence until: <em><xsl:value-of select="param"/></em>
251       </xsl:when>
252       <xsl:when test="id='org.bedework.validation.error.cannot.change.method'">
253         Error: you cannot change scheduling method
254       </xsl:when>
255       <xsl:when test="id='org.bedework.validation.error.insubmissionscalendar'">
256         To publish this event, you must move it to a public calendar.  Please select a different calendar.
257       </xsl:when>
258
259       <!-- Scheduling error codes are defined in CalfacadeException -->
260
261       <xsl:when test="id='org.bedework.error.scheduling.attendeeaccessdisallowed'">
262          Error: Access is disallowed to one or more attendees.
263       </xsl:when>
264
265       <xsl:when test="id='org.bedework.error.scheduling.badttendees'">
266          Error: Attendee bad
267       </xsl:when>
268
269       <xsl:when test="id='org.bedework.error.scheduling.badmethod'">
270         Error: bad scheduling method (should be request or publish).
271       </xsl:when>
272
273       <xsl:when test="id='org.bedework.error.scheduling.badresponsemethod'">
274         Error: bad scheduling method for response (should be request or publish).
275       </xsl:when>
276
277       <xsl:when test="id='org.bedework.error.scheduling.badsourcecalendar'">
278          Error: event is not in inbox
279       </xsl:when>
280
281       <xsl:when test="id='org.bedework.error.scheduling.duplicateuid'">
282          Error: Duplicate uid found in the target calendar
283       </xsl:when>
284
285       <xsl:when test="id='org.bedework.error.scheduling.expectoneattendee'">
286          Error: Expected exactly one attendee for reply
287       </xsl:when>
288
289       <xsl:when test="id='org.bedework.error.scheduling.invalidpartstatus'">
290         Error: bad scheduling participation status
291       </xsl:when>
292
293       <xsl:when test="id='org.bedework.error.scheduling.multipleevents'">
294          Error: Multiple events were found in the target calendar
295       </xsl:when>
296
297       <xsl:when test="id='org.bedework.error.scheduling.noattendees'">
298          Error: Entity required attendees but had none.
299       </xsl:when>
300
301       <xsl:when test="id='org.bedework.error.scheduling.noOriginator'">
302          Error: Entity required originator but had none.
303       </xsl:when>
304
305       <xsl:when test="id='org.bedework.error.scheduling.norecipients'">
306          Error: Entity required recipients but had none.
307       </xsl:when>
308
309       <xsl:when test="id='org.bedework.error.scheduling.notattendee'">
310          Error: You are not an attendee of this meeting.
311       </xsl:when>
312
313       <xsl:when test="id='org.bedework.error.scheduling.unknownattendee'">
314          Error: Attendee for reply not in event.
315       </xsl:when>
316
317       <xsl:when test="id='org.bedework.error.scheduling.unknownevent'">
318         Error: Unknown event - organizer possibly deleted it?
319       </xsl:when>
320
321       <!--         End of scheduling            -->
322
323       <!-- Other error codes defined in CalfacadeException -->
324
325       <xsl:when test="id='org.bedework.exception.duplicatecalendar'">
326          Error: Duplicate calendar: <em><xsl:value-of select="param"/></em>
327       </xsl:when>
328
329       <xsl:when test="id='org.bedework.validation.error.invalid.status'">
330         Error: Invalid status: <em><xsl:value-of select="param"/></em>
331       </xsl:when>
332       <xsl:when test="id='org.bedework.validation.error.invalid.transparency'">
333         Error: Invalid transparency: <em><xsl:value-of select="param"/></em>
334       </xsl:when>
335       <xsl:when test="id='org.bedework.validation.error.invalid.user'">
336         Error: Invalid user: <em><xsl:value-of select="param"/></em>
337       </xsl:when>
338
339       <xsl:when test="id='org.bedework.validation.error.missinghow'">
340         Error: missing how.
341       </xsl:when>
342
343       <xsl:when test="id='org.bedework.validation.error.missingwho'">
344         Error: missing who (principal name).
345       </xsl:when>
346
347       <xsl:when test="id='org.bedework.validation.error.missingaddress'">
348         Your information is incomplete: please supply an address.
349       </xsl:when>
350
351       <xsl:when test="id='org.bedework.validation.error.missingcalendar'">
352         Your information is incomplete: please supply a calendar.
353       </xsl:when>
354
355       <xsl:when test="id='org.bedework.validation.error.missingcalendarpath'">
356         Your information is incomplete: please supply a calendar path.
357       </xsl:when>
358
359       <xsl:when test="id='org.bedework.validation.error.missingcalsuitecalendar'">
360         Your information is incomplete: please supply a root calendar path.
361       </xsl:when>
362
363       <xsl:when test="id='org.bedework.validation.error.missingcategorykeyword'">
364         Your information is incomplete: please supply a category keyword.
365       </xsl:when>
366
367       <xsl:when test="id='org.bedework.validation.error.missingcontact'">
368         Your information is incomplete: please supply a contact.
369       </xsl:when>
370
371       <xsl:when test="id='org.bedework.validation.error.missingcontactname'">
372         You must enter a contact <em>name</em>.
373       </xsl:when>
374
375       <xsl:when test="id='org.bedework.validation.error.missingdescription'">
376         Your information is incomplete: please supply a description.
377       </xsl:when>
378
379       <xsl:when test="id='org.bedework.validation.error.missingeventowner'">
380         Your information is incomplete: please supply an event owner.
381       </xsl:when>
382
383       <xsl:when test="id='org.bedework.validation.error.missingfilterdef'">
384         Your information is incomplete: please supply a filter definition.
385       </xsl:when>
386
387       <xsl:when test="id='org.bedework.validation.error.missinggroupname'">
388         Your information is incomplete: please supply a group name.
389       </xsl:when>
390
391       <xsl:when test="id='org.bedework.validation.error.missinggroupowner'">
392         Your information is incomplete: please supply a group owner.
393       </xsl:when>
394
395       <xsl:when test="id='org.bedework.validation.error.missinglocation'">
396         Your information is incomplete: please supply a location.
397       </xsl:when>
398
399       <xsl:when test="id='org.bedework.validation.error.missingname'">
400         Your information is incomplete: please supply a name.
401       </xsl:when>
402
403       <xsl:when test="id='org.bedework.validation.error.missingorganizer'">
404         Your event is missing the organizer
405       </xsl:when>
406
407       <xsl:when test="id='org.bedework.validation.error.missingoriginator'">
408         Your event is missing the originator
409       </xsl:when>
410
411       <xsl:when test="id='org.bedework.validation.error.missingrecipients'">
412         You must supply a recipient.
413       </xsl:when>
414
415       <xsl:when test="id='org.bedework.validation.error.missingsubscriptionid'">
416         Your information is incomplete: please supply a subscription id.
417       </xsl:when>
418
419       <xsl:when test="id='org.bedework.exception.duplicatesubscription'">
420         Error: duplicate subscription.
421       </xsl:when>
422
423       <xsl:when test="id='org.bedework.validation.error.missingtitle'">
424         Your information is incomplete: please supply a title.
425       </xsl:when>
426
427       <xsl:when test="id='org.bedework.validation.error.missingsuburi'">
428         Your information is incomplete: please supply a uri for the subscription.
429       </xsl:when>
430
431       <xsl:when test="id='org.bedework.validation.error.startafterend'">
432         The <em>end date</em> occurs before the <em>start date</em>.
433       </xsl:when>
434
435       <xsl:when test="id='org.bedework.validation.error.toolong.description'">
436         Your description is too long.  Please limit your entry to
437           characters.  You may also wish to
438           point the event entry at a supplemental web page by entering a <em>URL</em>.
439       </xsl:when>
440
441       <xsl:when test="id='org.bedework.validation.error.toolong.name'">
442         Your name is too long.  Please limit your entry to
443       </xsl:when>
444
445       <xsl:when test="id='org.bedework.validation.error.toolong.summary'">
446         Your summary is too long.  Please limit your entry to
447           characters.  You may also wish to
448           point the event entry at a supplemental web page by entering a <em>URL</em>.
449       </xsl:when>
450       <xsl:otherwise>
451         <xsl:value-of select="id"/> = <xsl:value-of select="param"/>
452       </xsl:otherwise>
453     </xsl:choose>
454   </xsl:template>
455 </xsl:stylesheet>
456
Note: See TracBrowser for help on using the browser.