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

Revision 1566 (checked in by douglm, 6 years ago)

More scheduling fixes

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