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

Revision 2656 (checked in by johnsa, 3 years ago)

string change

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