root/trunk/bedework/deployment/webadmin/webapp/resources/default/default/errors.xsl

Revision 952 (checked in by douglm, 7 years ago)

--

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   <xsl:template match="error">
4     <xsl:choose>
5       <xsl:when test="id='org.bedework.client.error.exc'"><!-- trap exceptions first -->
6         <xsl:choose>
7           <xsl:when test="param='org.bedework.exception.alreadyonadmingrouppath'">
8             Error: a group may not be added to itself.<br/>
9           </xsl:when>
10           <xsl:otherwise>
11             <xsl:value-of select="param"/>
12           </xsl:otherwise>
13         </xsl:choose>
14       </xsl:when>
15       <xsl:when test="id='org.bedework.client.error.noaccess'">
16         Error: no access
17       </xsl:when>
18       <xsl:when test="id='org.bedework.client.error.missingsubscriptionid'">
19         You must supply a subscription <em>name</em>
20       </xsl:when>
21       <xsl:when test="id='org.bedework.client.error.nosuchsubscription'">
22         Not found: there is no user identified by the name <em><xsl:value-of select="param"/></em>
23       </xsl:when>
24       <xsl:when test="id='org.bedework.client.error.viewnotfound'">
25         Not found: there is no view identified by the name <em><xsl:value-of select="param"/></em>
26       </xsl:when>
27       <xsl:when test="id='org.bedework.client.error.viewnotadded'">
28         Error: the view was not added
29       </xsl:when>
30       <xsl:when test="id='org.bedework.client.error.nosuchevent'">
31         Not found: there is no event with guid <em><xsl:value-of select="param"/></em>
32       </xsl:when>
33       <xsl:when test="id='org.bedework.client.error.eventnotfound'">
34         Not found: the event was not found
35       </xsl:when>
36       <xsl:when test="id='org.bedework.client.error.badentityid'">
37         Error: bad entity id
38       </xsl:when>
39       <xsl:when test="id='org.bedework.client.error.noentityid'">
40         Error: no entity id
41       </xsl:when>
42       <xsl:when test="id='org.bedework.client.error.nosuchcalendar'">
43         Not found: there is no calendar identified by the path <em><xsl:value-of select="param"/></em>
44       </xsl:when>
45       <xsl:when test="id='org.bedework.client.error.calendar.referenced'">
46         Cannot delete: the calendar is not empty
47       </xsl:when>
48       <xsl:when test="id='org.bedework.client.message.folder.updated'">
49         Folder updated.
50       </xsl:when>
51       <xsl:when test="id='org.bedework.client.error.unimplemented'">
52         Unimplemented: the feature you are trying to use has not been implemented yet
53       </xsl:when>
54       <xsl:when test="id='org.bedework.client.error.badhow'">
55         Error: bad ACL request (bad how setting)
56       </xsl:when>
57       <xsl:when test="id='org.bedework.client.error.badwhotype'">
58         Error: bad who type (user or group)
59       </xsl:when>
60       <xsl:when test="id='org.bedework.client.error.badinterval'">
61         Error: bad interval
62       </xsl:when>
63       <xsl:when test="id='org.bedework.client.error.badintervalunit'">
64         Error: bad interval unit
65       </xsl:when>
66       <xsl:when test="id='org.bedework.client.error.mail.norecipient'">
67         Error: the email has no recipient
68       </xsl:when>
69       <xsl:when test="id='org.bedework.client.error.choosegroupsuppressed'">
70         Error: choose group is suppressed.  You cannot perform that action at this time.
71       </xsl:when>
72       <xsl:when test="id='org.bedework.validation.error.toolong.description'">
73         Your description is too long.  Please limit your entry to
74         <em><xsl:value-of select="param"/></em> characters.  You may also wish to
75         point the event entry at a supplimental web page by entering a <em>URL</em>.
76       </xsl:when>
77       <xsl:when test="id='org.bedework.validation.error.notitle'">
78         You must supply a <em>title</em><br/>
79       </xsl:when>
80       <xsl:when test="id='org.bedework.validation.error.nocalendar'">
81         You must supply the <em>calendar</em><br/>
82       </xsl:when>
83       <xsl:when test="id='org.bedework.validation.error.nodescription'">
84         You must supply a <em>description</em><br/>
85       </xsl:when>
86       <xsl:when test="id='org.bedework.validation.error.event.startafterend'">
87         The <em>end date</em> for this event occurs before the <em>start date</em>
88       </xsl:when>
89       <xsl:when test="id='org.bedework.validation.error.invalid.endtype'">
90         The <em>end date type</em> is invalid for the type of event you are creating
91       </xsl:when>
92       <xsl:when test="id='org.bedework.validation.error.invalid.duration'">
93         <em>Invalid duration</em> - you may not have a zero-length duration
94         for an all day event.
95       </xsl:when>
96       <xsl:when test="id='org.bedework.validation.error.nosponsorname'">
97         You must enter a contact <em>name</em>.
98       </xsl:when>
99       <xsl:when test="id='org.bedework.validation.error.nolocationaddress'">
100         You must enter a location <em>address</em>.
101       </xsl:when>
102       <xsl:when test="id='org.bedework.client.error.missingfield'">
103         Your information is incomplete: please supply a <em><xsl:value-of select="param"/></em><br/>
104       </xsl:when>
105       <xsl:when test="id='org.bedework.validation.error.missingfield'">
106         Your information is incomplete: please supply a <em><xsl:value-of select="param"/></em><br/>
107       </xsl:when>
108       <xsl:when test="id='org.bedework.validation.error.forbidden.calmode'">
109         Access forbidden: you are not allowed to perform that action on calendar <em><xsl:value-of select="param"/></em>
110       </xsl:when>
111       <xsl:when test="id='org.bedework.client.error.missingcategory'">
112         Error: the category identified by <em><xsl:value-of select="param"/></em> is missing
113       </xsl:when>
114       <xsl:when test="id='org.bedework.client.error.nosuchcategorynosuchcategory'">
115         Not found: there is no category identified by the key <em><xsl:value-of select="param"/></em>
116       </xsl:when>
117       <xsl:when test="id='org.bedework.client.error.category.referenced'">
118         Cannot delete: the category is referenced by events
119       </xsl:when>
120       <xsl:when test="id='org.bedework.pubevents.error.badfield'">
121         Please correct your data input for <em><xsl:value-of select="param"/></em>
122       </xsl:when>
123       <xsl:when test="id='org.bedework.client.error.nosuchsponsor'">
124         Not found: there is no contact <em><xsl:value-of select="param"/></em>
125       </xsl:when>
126       <xsl:when test="id='org.bedework.client.error.sponsor.referenced'">
127         Cannot delete: the contact is referenced by events
128       </xsl:when>
129       <xsl:when test="id='org.bedework.client.error.sponsor.alreadyexists'">
130         Cannot add: the contact already exists
131       </xsl:when>
132       <xsl:when test="id='org.bedework.client.error.nosuchlocation'">
133         Not found: there is no location identified by the id <em><xsl:value-of select="param"/></em>
134       </xsl:when>
135       <xsl:when test="id='org.bedework.client.error.location.alreadyexists'">
136         Cannot add: the location already exists
137       </xsl:when>
138       <xsl:when test="id='org.bedework.client.error.location.referenced'">
139         Cannot delete: the location is referenced by events
140       </xsl:when>
141       <xsl:when test="id='org.bedework.client.error.subscription.reffed'">
142         <p>Cannot delete: the subscription is included in view <em><xsl:value-of select="param"/></em>.<br/>
143         You must remove the subscription from this view before deleting.</p>
144       </xsl:when>
145       <xsl:when test="id='org.bedework.client.error.calsuitenotadded'">
146         <p>Error: calendar suite not added.</p>
147       </xsl:when>
148       <xsl:when test="id='org.bedework.error.timezones.readerror'">
149         <p>Timzone error: could not read file</p>
150       </xsl:when>
151       <xsl:when test="id='org.bedework.client.error.nosuchuserid'">
152         <p>Not found: there is no user identified by the id <em><xsl:value-of select="param"/></em></p>
153       </xsl:when>
154       <xsl:when test="id='org.bedework.client.error.usernotfound'">
155         Not found: the user <em><xsl:value-of select="param"/></em> was not found
156       </xsl:when>
157       <xsl:when test="id='org.bedework.error.duplicate.admingroup'">
158         Error: duplicate admin group.  <em><xsl:value-of select="param"/></em> already exists.
159       </xsl:when>
160       <xsl:when test="id='org.bedework.client.error.nosuchadmingroup'">
161         Error: no such admin group "<em><xsl:value-of select="param"/></em>"
162       </xsl:when>
163       <xsl:when test="id='org.bedework.error.unknowgroup'">
164         Error: unknown admin group:  <em><xsl:value-of select="param"/></em>
165       </xsl:when>
166       <xsl:when test="id='org.bedework.exception.alreadyonadmingrouppath'">
167         Error: group may not be added to itself
168       </xsl:when>
169       <xsl:when test="id='edu.rpi.sss.util.error.exc'">
170         Utility package error: <em><xsl:value-of select="param"/></em>
171       </xsl:when>
172       <xsl:otherwise>
173         <xsl:value-of select="id"/> = <xsl:value-of select="param"/>
174       </xsl:otherwise>
175     </xsl:choose>
176   </xsl:template>
177 </xsl:stylesheet>
178
Note: See TracBrowser for help on using the browser.