root/trunk/website/schema/gesture/ModelGlue-loose.xsd @ 27

Revision 27, 23.1 kB (checked in by eparker, 16 years ago)

Added XSD files -- fixed typos

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
3        <xsd:element name="modelglue" >
4               
5        <xsd:annotation>
6                        <xsd:documentation><![CDATA[Declares the root of a Model-Glue XML file.]]></xsd:documentation>
7                </xsd:annotation>
8               
9                <xsd:complexType>
10                        <xsd:sequence>
11                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
12                            <xsd:element name="include" type="globalIncludeType" />
13                            <xsd:element ref="controllers"/>
14                                        <xsd:element ref="event-handlers"/>
15                                        <xsd:element ref="config" />
16                                        <xsd:element ref="event-types" />
17                                        <xsd:element ref="module" />
18                                        <xsd:element ref="scaffold" />
19                                       
20                                </xsd:choice>
21                        </xsd:sequence>
22                </xsd:complexType>
23               
24    </xsd:element>
25       
26        <xsd:element name="controllers">
27               
28                <xsd:annotation>
29                        <xsd:documentation><![CDATA[Contains a list of <controller> tags.]]></xsd:documentation>
30                </xsd:annotation>
31               
32                <xsd:complexType>
33                        <xsd:complexContent>
34                                <xsd:restriction base="xsd:anyType">
35                                        <xsd:sequence>
36                                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
37                                            <xsd:element ref="controller" />
38                                                </xsd:choice>
39                                        </xsd:sequence>
40                                </xsd:restriction>
41                        </xsd:complexContent>
42                </xsd:complexType>
43               
44        </xsd:element>
45       
46        <xsd:element name="event-handlers">
47               
48                <xsd:annotation>
49                        <xsd:documentation><![CDATA[Contains a list of child tags that define the events in the application.]]></xsd:documentation>
50                </xsd:annotation>
51               
52                <xsd:complexType>
53                        <xsd:sequence>
54                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
55                            <xsd:element ref="event-handler" />
56                            <xsd:element ref="scaffold" />
57                                </xsd:choice>
58                        </xsd:sequence>
59
60                        <xsd:attribute name="defaulttype" type="xsd:string" use="optional">
61                                <xsd:annotation>
62                                        <xsd:documentation><![CDATA[(Optional) - Set to a default event-type to be applied to all event-handler child tags that do not have a TYPE attribute defined.]]></xsd:documentation>
63                                </xsd:annotation>
64                        </xsd:attribute>
65                               
66                </xsd:complexType>
67               
68               
69        </xsd:element>
70       
71       
72        <xsd:element name="config">
73               
74                <xsd:annotation>
75                        <xsd:documentation><![CDATA[Used in Model-Glue XML fragments to define additional settings and by legacy Model-Glue 1.x applications to define settings. This tag was largely unused in Model-Glue 2, but may be used in Model-Glue 3 to define actionpacks.]]></xsd:documentation>
76                </xsd:annotation>
77               
78                <xsd:complexType>
79                        <xsd:sequence>
80                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
81                            <xsd:element ref="setting" />
82                                </xsd:choice>
83                        </xsd:sequence>
84                </xsd:complexType>
85               
86        </xsd:element>
87       
88        <xsd:element name="event-types">
89               
90                <xsd:annotation>
91                        <xsd:documentation><![CDATA[Contains a collection of event types.]]></xsd:documentation>
92                </xsd:annotation>
93               
94                <xsd:complexType>
95                        <xsd:complexContent>
96                                <xsd:restriction base="xsd:anyType">
97                                        <xsd:sequence>
98                                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
99                                            <xsd:element ref="event-type" />
100                                                </xsd:choice>
101                                        </xsd:sequence>
102                                </xsd:restriction>
103                        </xsd:complexContent>
104                </xsd:complexType>
105               
106               
107        </xsd:element>
108       
109        <xsd:element name="module">
110               
111                <xsd:annotation>
112                        <xsd:documentation><![CDATA[Introduces a set of external definitions into the current Model-Glue XML file. This tag works similarly to the <include> tag, except that all <module> tags are processed before <include> tags. This tag is intended for the loading of actionpacks in Model-Glue 3. ]]></xsd:documentation>
113                </xsd:annotation>
114               
115                <xsd:complexType>
116
117                        <xsd:attribute name="type" type="xsd:string" use="optional">
118                                <xsd:annotation>
119                                        <xsd:documentation><![CDATA[(Optional) - The type of module to load. Currently the only supported type is "XML".]]></xsd:documentation>
120                                </xsd:annotation>
121                        </xsd:attribute>
122                       
123            <xsd:attribute name="location" type="xsd:string" use="optional">
124                                <xsd:annotation>
125                                        <xsd:documentation><![CDATA[(Required for XML modules) - The path to the XML file to include.]]></xsd:documentation>
126                                </xsd:annotation>
127                        </xsd:attribute>
128                               
129                </xsd:complexType>             
130               
131        </xsd:element>
132       
133        <xsd:element name="scaffold">
134               
135                <xsd:annotation>
136                        <xsd:documentation><![CDATA[Automatically defines and creates user interface for listing and editing data from a database table. By default, creates object.list, object.view, object.edit, object.commit, and object.delete event-handlers, where object is the value of the OBJECT attribute. This list of event-handlers to create is controlled by the TYPE attribute.
137
138                        In Model-Glue 2, only <scaffold> tags that are children of the <event-handlers> tag are processed. In Model-Glue 3, all <scaffold> tags are processed regardless of where they appear in the XML file.
139                        ]]></xsd:documentation>
140                </xsd:annotation>
141               
142                <xsd:complexType>
143                        <xsd:sequence>
144                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
145                            <xsd:element ref="broadcasts" />
146                            <xsd:element ref="results" />
147                            <xsd:element ref="views" />
148                                </xsd:choice>
149                        </xsd:sequence>
150                       
151                        <xsd:attribute name="object" type="xsd:string" use="required">
152                                <xsd:annotation>
153                                        <xsd:documentation><![CDATA[(Required) - The name of the database table to scaffold]]></xsd:documentation>
154                                </xsd:annotation>
155                        </xsd:attribute>
156                        <xsd:attribute name="type" type="xsd:string" use="optional">
157                                <xsd:annotation>
158                                        <xsd:documentation><![CDATA[(Optional, defaults to "list,view,edit,commit,delete") - What types of event-handlers to create]]></xsd:documentation>
159                                </xsd:annotation>
160                        </xsd:attribute>
161                        <xsd:attribute name="propertylist" type="xsd:string" use="optional">
162                                <xsd:annotation>
163                                        <xsd:documentation><![CDATA[(optional) - Comma separated list of object properties to use in scaffolds.]]></xsd:documentation>
164                                </xsd:annotation>
165                        </xsd:attribute>
166                        <xsd:attribute name="event-type" type="xsd:string" use="optional">
167                                <xsd:annotation>
168                                        <xsd:documentation><![CDATA[(optional) - Comma separated list of event-types to add to the resulting event-handler tags.]]></xsd:documentation>
169                                </xsd:annotation>
170                        </xsd:attribute>
171                </xsd:complexType>
172               
173        </xsd:element>
174       
175        <xsd:element name="controller">
176               
177                <xsd:annotation>
178                        <xsd:documentation><![CDATA[Defines a CFC that will act as a Controller in the application.]]></xsd:documentation>
179                </xsd:annotation>
180               
181                <xsd:complexType>
182                        <xsd:sequence>
183                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
184                            <xsd:element ref="message-listener" />
185                                </xsd:choice>
186                        </xsd:sequence>
187
188                        <xsd:attribute name="id" type="xsd:string" use="required">
189                                <xsd:annotation>
190                                        <xsd:documentation><![CDATA[A unique name for this controller. A Model-Glue application where multiple controllers are added with the same name will currently confuse the framework (as of 2.0 Beta 1). This will eventually be resolved.]]></xsd:documentation>
191                                </xsd:annotation>
192                        </xsd:attribute>
193                       
194                        <xsd:attribute name="type" type="xsd:string" use="required">
195                                <xsd:annotation>
196                                        <xsd:documentation><![CDATA[The CFC to use for a controller in the same format that you'd use in a CreateObject() call, such as "myapplication.controller.MyController"]]></xsd:documentation>
197                                </xsd:annotation>
198                        </xsd:attribute>
199                       
200                        <xsd:attribute name="beans" type="xsd:string" use="optional">
201                                <xsd:annotation>
202                                        <xsd:documentation><![CDATA[A bean (or comma delimited list, if more than one) as defined in ColdSpring.xml, that will be accessible to any cffunction in the controller. Replaces the need for getModelGlue().getBean() within controller methods.]]></xsd:documentation>
203                                </xsd:annotation>
204                        </xsd:attribute>
205                               
206                </xsd:complexType>
207               
208               
209               
210        </xsd:element>
211       
212        <xsd:element name="message-listener">
213               
214                <xsd:annotation>
215                        <xsd:documentation><![CDATA[Relates a <cffunction> inside of a Controller CFC to a message that is broadcast via a <message> tag inside of an <event-handler>'s <broadcasts> block.]]></xsd:documentation>
216                </xsd:annotation>
217               
218                <xsd:complexType>
219                        <xsd:complexContent>
220                                <xsd:restriction base="xsd:anyType">
221                                        <xsd:attribute name="message" type="xsd:string" use="required">
222                                                <xsd:annotation>
223                                                        <xsd:documentation><![CDATA[(Required) - The name of a message for which to listen, defined by the <message> tag's NAME attribute.]]></xsd:documentation>
224                                                </xsd:annotation>
225                                        </xsd:attribute>
226                                       
227                                        <xsd:attribute name="function" type="xsd:string" use="optional">
228                                                <xsd:annotation>
229                                                        <xsd:documentation><![CDATA[(Optional) - The name of a public <cffunction> on the related Controller CFC to execute whenever a <message> is broadcast whose NAME attribute matches the value of the MESSAGE attribute. If no value is provided for Function, the name of the message will be used as Function.]]></xsd:documentation>
230                                                </xsd:annotation>
231                                        </xsd:attribute>
232                                </xsd:restriction>
233                        </xsd:complexContent>
234                </xsd:complexType>
235        </xsd:element>
236       
237        <xsd:element name="event-type">
238               
239                <xsd:annotation>
240                        <xsd:documentation><![CDATA[Defines a custom event type.  Makes applying configuration selectively to specific events quite easy.]]></xsd:documentation>
241                </xsd:annotation>
242               
243                <xsd:complexType>
244                        <xsd:sequence>
245                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
246                            <xsd:element ref="before" />
247                            <xsd:element ref="after" />
248                                </xsd:choice>
249                        </xsd:sequence>
250
251                        <xsd:attribute name="name" type="xsd:string" use="required">
252                                <xsd:annotation>
253                                        <xsd:documentation><![CDATA[(Required) - A unique name for the event type.]]></xsd:documentation>
254                                </xsd:annotation>
255                        </xsd:attribute>
256                               
257                </xsd:complexType>
258               
259        </xsd:element>
260       
261        <xsd:element name="event-handler">
262               
263                <xsd:annotation>
264                        <xsd:documentation><![CDATA[Defines an event or "page" in the application.]]></xsd:documentation>
265                </xsd:annotation>
266               
267                <xsd:complexType>
268                        <xsd:sequence>
269                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
270                            <xsd:element ref="broadcasts" />
271                            <xsd:element ref="results" />
272                            <xsd:element ref="views" />
273                                </xsd:choice>
274                        </xsd:sequence>
275
276                        <xsd:attribute name="name" type="xsd:string" use="required">
277                                <xsd:annotation>
278                                        <xsd:documentation><![CDATA[(Required) - A unique name for the event handler. This defines how the event will be accessed through the URL, such as "index.cfm?event=!MyEvent". If an <event-handler> is added whose NAME attribute is in use by another event-handler, it will overwrite the previous event-handler, except in the case of the predefined modelglue.onRequestStart, modelglue.onQueueComplete, and modelglue.onRequestEnd event-handlers. In this case, any messages, views, or results defined will be added to the predefined event handlers.]]></xsd:documentation>
279                                </xsd:annotation>
280                        </xsd:attribute>
281                       
282                        <xsd:attribute name="access" type="xsd:string" use="optional">
283                                <xsd:annotation>
284                                        <xsd:documentation><![CDATA[(Optional, defaults to "public") - If set to "private," the event handler cannot be accessed directly through the URL.]]></xsd:documentation>
285                                </xsd:annotation>
286                        </xsd:attribute>
287                       
288                        <xsd:attribute name="type" type="xsd:string" use="optional">
289                                <xsd:annotation>
290                                        <xsd:documentation><![CDATA[(Optional) - Set to an event-type to be run before and/or after the event, depending on how the event-type is set up.]]></xsd:documentation>
291                                </xsd:annotation>
292                        </xsd:attribute>
293                               
294                </xsd:complexType>
295               
296        </xsd:element>
297       
298        <xsd:element name="broadcasts">
299               
300                <xsd:annotation>
301                        <xsd:documentation><![CDATA[Contains a list of <message> tags. The <message> tags will be broadcast in the order in which they are defined.]]></xsd:documentation>
302                </xsd:annotation>
303               
304                <xsd:complexType>
305                        <xsd:sequence>
306                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
307                            <xsd:element ref="message" />
308                                </xsd:choice>
309                        </xsd:sequence>
310                </xsd:complexType>
311               
312        </xsd:element>
313       
314        <xsd:element name="results">
315               
316                <xsd:annotation>
317                        <xsd:documentation><![CDATA[Contains a list of <result> tags.]]></xsd:documentation>
318                </xsd:annotation>
319               
320                <xsd:complexType>
321                        <xsd:sequence>
322                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
323                            <xsd:element ref="result" />
324                                </xsd:choice>
325                        </xsd:sequence>
326                </xsd:complexType>
327               
328        </xsd:element>
329       
330        <xsd:element name="result">
331               
332                <xsd:annotation>
333                        <xsd:documentation><![CDATA[Defines an additional event-handler to execute as part of the current request.  Can use the NAME attribute to determine whether or not a certain result should be executed, and the REDIRECT attribute to abort the current request and redirect to a different event handler.]]></xsd:documentation>
334                </xsd:annotation>
335               
336                <xsd:complexType>
337
338                        <xsd:attribute name="do" type="xsd:string" use="required">
339                                <xsd:annotation>
340                                        <xsd:documentation><![CDATA[(Required) - The NAME attribute of an event handler to add to this request.]]></xsd:documentation>
341                                </xsd:annotation>
342                        </xsd:attribute>                       
343                        <xsd:attribute name="name" type="xsd:string" use="optional">
344                                <xsd:annotation>
345                                        <xsd:documentation><![CDATA[(Optional) - If not set ''or set to an empty string'', the event handler declared in the DO attribute will always be added to the request.  If not empty, the event handler declared will only execute if a function in a Controller CFC uses the addResult() method of the Event API to add a result with the value of the NAME attribute.]]></xsd:documentation>
346                                </xsd:annotation>
347                        </xsd:attribute>
348                        <xsd:attribute name="redirect" type="xsd:string" use="optional">
349                                <xsd:annotation>
350                                        <xsd:documentation><![CDATA[(Optional, default = "false") - If true, a redirect will immediately redirect the entire request to the event handler declared in the DO attribute.  All state value will be maintained if session is enabled.]]></xsd:documentation>
351                                </xsd:annotation>
352                        </xsd:attribute>
353                        <xsd:attribute name="append" type="xsd:string" use="optional">
354                                <xsd:annotation>
355                                        <xsd:documentation><![CDATA[(Optional, default = "") -  Used to define a list of value names (from the viewstate) that should be appended to the URL.  ]]></xsd:documentation>
356                                </xsd:annotation>
357                        </xsd:attribute>
358                        <xsd:attribute name="preservestate" type="xsd:string" use="optional">
359                                <xsd:annotation>
360                                        <xsd:documentation><![CDATA[(Optional, default = "true") - If set to false and REDIRECT is set to true, then all state values will removed before redirecting to the event handler declared in the DO attribute.  If using this be sure that session management is enabled.]]></xsd:documentation>
361                                </xsd:annotation>
362                        </xsd:attribute>
363                        <xsd:attribute name="reset" type="xsd:string" use="optional">
364                                <xsd:annotation>
365                                        <xsd:documentation><![CDATA[(Optional, default = "false") - If set to true, any previously declared results of the same name will be erased.  This is only useful for redefining results added by scaffolds.]]></xsd:documentation>
366                                </xsd:annotation>
367                        </xsd:attribute>
368                               
369                </xsd:complexType>
370               
371        </xsd:element>
372       
373        <xsd:element name="after">
374               
375                <xsd:annotation>
376                        <xsd:documentation><![CDATA[Part of a typed event.]]></xsd:documentation>
377                </xsd:annotation>
378               
379                <xsd:complexType>
380                        <xsd:sequence>
381                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
382                            <xsd:element ref="broadcasts" />
383                            <xsd:element ref="results" />
384                            <xsd:element ref="views" />
385                                </xsd:choice>
386                        </xsd:sequence>
387                </xsd:complexType>
388               
389        </xsd:element>
390       
391        <xsd:element name="before">
392               
393                <xsd:annotation>
394                        <xsd:documentation><![CDATA[Part of a typed event.]]></xsd:documentation>
395                </xsd:annotation>
396               
397                <xsd:complexType>
398                        <xsd:sequence>
399                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
400                            <xsd:element ref="broadcasts" />
401                            <xsd:element ref="results" />
402                            <xsd:element ref="views" />
403                                </xsd:choice>
404                        </xsd:sequence>
405                </xsd:complexType>
406               
407        </xsd:element>
408       
409       
410        <xsd:element name="views">
411               
412                <xsd:annotation>
413                        <xsd:documentation><![CDATA[Contains a list of <include> tags. The <include> tags will be run in the order in which they are defined.]]></xsd:documentation>
414                </xsd:annotation>
415               
416                <xsd:complexType>
417                        <xsd:sequence>
418                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
419                            <xsd:element name="include" type="viewIncludeType" />
420                    <xsd:element name="view" type="viewIncludeType" />
421                                </xsd:choice>
422                        </xsd:sequence>
423                       
424                </xsd:complexType>
425               
426        </xsd:element>
427       
428        <xsd:element name="value">
429               
430                <xsd:annotation>
431                        <xsd:documentation><![CDATA[A string value to set into the ViewState before the .CFM template in the current include is rendered. Its value may be accessed through the ViewState object in the View API.]]></xsd:documentation>
432                </xsd:annotation>
433               
434                <xsd:complexType>
435
436                        <xsd:attribute name="name" type="xsd:string" use="required">
437                                <xsd:annotation>
438                                        <xsd:documentation><![CDATA[(Required) - Defines the name of the argument.]]></xsd:documentation>
439                                </xsd:annotation>
440                        </xsd:attribute>
441                       
442                        <xsd:attribute name="value" type="xsd:string" use="required">
443                                <xsd:annotation>
444                                        <xsd:documentation><![CDATA[(Required) - Defines the value of this argument.]]></xsd:documentation>
445                                </xsd:annotation>
446                        </xsd:attribute>
447                       
448                        <xsd:attribute name="overwrite" type="xsd:string" use="optional">
449                                <xsd:annotation>
450                                        <xsd:documentation><![CDATA[(Optional, default = "false") - If set to true, this value will overwrite an existing same-named value in the ViewState.]]></xsd:documentation>
451                                </xsd:annotation>
452                        </xsd:attribute>
453                               
454                </xsd:complexType>
455               
456        </xsd:element>
457       
458        <xsd:element name="message">
459               
460                <xsd:annotation>
461                        <xsd:documentation><![CDATA[Defines a message to be broadcast during the execution on an event handler. Messages are broadcast in the order in which they are defined.]]></xsd:documentation>
462                </xsd:annotation>
463               
464                <xsd:complexType>
465                        <xsd:sequence>
466                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
467                            <xsd:element ref="argument" />
468                                </xsd:choice>
469                        </xsd:sequence>
470
471                        <xsd:attribute name="name" type="xsd:string" use="required">
472                                <xsd:annotation>
473                                        <xsd:documentation><![CDATA[(Required) - The name of the message. The same message may be broadcast multiple times during a single event handler, with or without different sets of arguments. Any message-listener tags whose MESSAGE attribute value matches the value of attribute will execute the function registered via their FUNCTION attribute.]]></xsd:documentation>
474                                </xsd:annotation>
475                        </xsd:attribute>
476                               
477                </xsd:complexType>
478       
479        </xsd:element>
480       
481        <xsd:element name="setting">
482               
483                <xsd:annotation>
484                        <xsd:documentation><![CDATA[
485                        Used in Model-Glue XML fragments to define additional settings and by legacy Model-Glue 1.x applications to define settings.
486
487                        This tag was largely unused in Model-Glue 2, but may be used in Model-Glue 3 to define actionpacks.
488                       
489                        ==== Special Behavior ====
490                       
491                        A setting tag with a NAME attribute value of "viewMappings" will append its value to the list of existing viewMappings.
492                       
493                        A setting tag with a NAME attribute value of "helperMappings" will append its value to the list of existing helperMappings.
494                       
495                        A setting tag with a NAME attribute value of "beanMappings" will (ColdSpring) load the file defined into the BeanFactory or (ChiliBeans) append its value to the list of existing beanMappings.
496                       
497                        All other settings are simply set.
498                        ]]></xsd:documentation>
499                </xsd:annotation>
500               
501                <xsd:complexType>
502
503                        <xsd:attribute name="name" type="xsd:string" use="required">
504                                <xsd:annotation>
505                                        <xsd:documentation><![CDATA[(Required) - The name of the setting to set]]></xsd:documentation>
506                                </xsd:annotation>
507                        </xsd:attribute>
508                       
509                        <xsd:attribute name="value" type="xsd:string" use="required">
510                                <xsd:annotation>
511                                        <xsd:documentation><![CDATA[(Required) - The value of the setting]]></xsd:documentation>
512                                </xsd:annotation>
513                        </xsd:attribute>
514                               
515                </xsd:complexType>
516               
517        </xsd:element>
518       
519        <xsd:element name="argument">
520               
521                <xsd:annotation>
522                        <xsd:documentation><![CDATA[A string value passed to a function registered to listen for a given message as part of the function's Event argument. Its value can be acessed through the Event API's getArgument() method.]]></xsd:documentation>
523                </xsd:annotation>
524               
525                <xsd:complexType>
526
527                        <xsd:attribute name="name" type="xsd:string" use="required">
528                                <xsd:annotation>
529                                        <xsd:documentation><![CDATA[(Required) - Defines the name of the argument.]]></xsd:documentation>
530                                </xsd:annotation>
531                        </xsd:attribute>
532                       
533                        <xsd:attribute name="value" type="xsd:string" use="required">
534                                <xsd:annotation>
535                                        <xsd:documentation><![CDATA[(Required) - Defines the value of this argument.]]></xsd:documentation>
536                                </xsd:annotation>
537                        </xsd:attribute>
538                       
539                               
540                </xsd:complexType>
541               
542        </xsd:element>
543       
544        <xsd:complexType name="globalIncludeType" mixed="true">
545                <xsd:annotation>
546                        <xsd:documentation><![CDATA[Defines a path to another Model-Glue XML file to include.]]></xsd:documentation>
547                </xsd:annotation>
548       
549            <xsd:attribute type="xsd:string" name="template" use="optional">
550                <xsd:annotation>
551                                <xsd:documentation><![CDATA[(Required) - The path to the file to include. ColdFusion will use expandPath() to turn this into an absolute path to a file.]]></xsd:documentation>
552                        </xsd:annotation>
553                </xsd:attribute>
554        </xsd:complexType>
555       
556        <xsd:complexType name="viewIncludeType" mixed="true">
557                <xsd:annotation>
558                        <xsd:documentation><![CDATA[Defines a .CFM template to <cfinclude>, creating HTML that will be viewable by the user.
559                        Model-Glue will search the mappings listed in the ViewMappings setting (defined in the application's ColdSpring.xml file) in order, searching for the template defined in the TEMPLATE attribute.]]></xsd:documentation>
560                </xsd:annotation>
561
562                <xsd:sequence>
563                <xsd:choice minOccurs="0" maxOccurs="unbounded">
564                    <xsd:element ref="value" />
565                        </xsd:choice>
566                </xsd:sequence>
567               
568       
569            <xsd:attribute type="xsd:string" name="name" use="required">
570                <xsd:annotation>
571                                <xsd:documentation><![CDATA[(Required) - The name by which the rendered content will be known in the ViewCollection]]></xsd:documentation>
572                        </xsd:annotation>
573                </xsd:attribute>
574               
575                <xsd:attribute type="xsd:string" name="template" use="required">
576                <xsd:annotation>
577                                <xsd:documentation><![CDATA[(Required) - The filename of a .CFM template inside one of the directories in the ViewMappings setting]]></xsd:documentation>
578                        </xsd:annotation>
579                </xsd:attribute>
580               
581                <xsd:attribute type="xsd:string" name="append" use="optional">
582                <xsd:annotation>
583                                <xsd:documentation><![CDATA[(Optional, default = "false") - If an include by this NAME has already been rendered, should the content from this include be appended to the existing content or should it overwrite the existing content? (False will overwrite, True will append.)]]></xsd:documentation>
584                        </xsd:annotation>
585                </xsd:attribute>
586               
587               
588               
589        </xsd:complexType>
590       
591        <!--
592                Element snippets
593               
594                <xsd:element name="controller">
595               
596                        <xsd:annotation>
597                                <xsd:documentation><![CDATA[Defines a CFC that will act as a Controller in the application.]]></xsd:documentation>
598                        </xsd:annotation>
599                       
600                        <xsd:complexType>
601                                <xsd:complexContent>
602                                        <xsd:restriction base="xsd:anyType">
603                                       
604                                        </xsd:restriction>
605                                </xsd:complexContent>
606                        </xsd:complexType>
607                       
608                </xsd:element>
609       
610       
611         -->
612       
613</xsd:schema>
Note: See TracBrowser for help on using the browser.