root/trunk/website/schema/gesture/ModelGlue.xsd @ 43

Revision 43, 24.0 kB (checked in by eparker, 15 years ago)

Updated schema file w/ latest version from 3.2 RC1 release

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="optional">
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". Required if not using the 'bean' attribute.]]></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:attribute name="bean" type="xsd:string" use="optional">
207                                <xsd:annotation>
208                                        <xsd:documentation><![CDATA[If you wish to define the controller directly in your ColdSpring.xml you can tell ModelGlue the id of it here instead of providing a type.]]></xsd:documentation>
209                                </xsd:annotation>
210                        </xsd:attribute>
211                               
212                </xsd:complexType>
213               
214               
215               
216        </xsd:element>
217       
218        <xsd:element name="message-listener">
219               
220                <xsd:annotation>
221                        <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>
222                </xsd:annotation>
223               
224                <xsd:complexType>
225                        <xsd:complexContent>
226                                <xsd:restriction base="xsd:anyType">
227                                        <xsd:attribute name="message" type="xsd:string" use="required">
228                                                <xsd:annotation>
229                                                        <xsd:documentation><![CDATA[(Required) - The name of a message for which to listen, defined by the <message> tag's NAME attribute.]]></xsd:documentation>
230                                                </xsd:annotation>
231                                        </xsd:attribute>
232                                       
233                                        <xsd:attribute name="function" type="xsd:string" use="optional">
234                                                <xsd:annotation>
235                                                        <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>
236                                                </xsd:annotation>
237                                        </xsd:attribute>
238                                </xsd:restriction>
239                        </xsd:complexContent>
240                </xsd:complexType>
241        </xsd:element>
242       
243        <xsd:element name="event-type">
244               
245                <xsd:annotation>
246                        <xsd:documentation><![CDATA[Defines a custom event type.  Makes applying configuration selectively to specific events quite easy.]]></xsd:documentation>
247                </xsd:annotation>
248               
249                <xsd:complexType>
250                        <xsd:sequence>
251                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
252                            <xsd:element ref="before" />
253                            <xsd:element ref="after" />
254                                </xsd:choice>
255                        </xsd:sequence>
256
257                        <xsd:attribute name="name" type="xsd:string" use="required">
258                                <xsd:annotation>
259                                        <xsd:documentation><![CDATA[(Required) - A unique name for the event type.]]></xsd:documentation>
260                                </xsd:annotation>
261                        </xsd:attribute>
262                               
263                </xsd:complexType>
264               
265        </xsd:element>
266       
267        <xsd:element name="event-handler">
268               
269                <xsd:annotation>
270                        <xsd:documentation><![CDATA[Defines an event or "page" in the application.]]></xsd:documentation>
271                </xsd:annotation>
272               
273                <xsd:complexType>
274                        <xsd:sequence>
275                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
276                            <xsd:element ref="broadcasts" />
277                            <xsd:element ref="results" />
278                            <xsd:element ref="views" />
279                                </xsd:choice>
280                        </xsd:sequence>
281
282                        <xsd:attribute name="name" type="xsd:string" use="required">
283                                <xsd:annotation>
284                                        <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>
285                                </xsd:annotation>
286                        </xsd:attribute>
287                       
288                        <xsd:attribute name="access" type="xsd:string" use="optional">
289                                <xsd:annotation>
290                                        <xsd:documentation><![CDATA[(Optional, defaults to "public") - If set to "private," the event handler cannot be accessed directly through the URL.]]></xsd:documentation>
291                                </xsd:annotation>
292                        </xsd:attribute>
293                       
294                        <xsd:attribute name="type" type="xsd:string" use="optional">
295                                <xsd:annotation>
296                                        <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>
297                                </xsd:annotation>
298                        </xsd:attribute>
299                       
300                        <xsd:attribute name="extensible" type="xsd:boolean" use="optional">
301                                <xsd:annotation>
302                                        <xsd:documentation><![CDATA[(Optional) - Allow extension by other event-handlers with the same name]]></xsd:documentation>
303                                </xsd:annotation>
304                        </xsd:attribute>
305                               
306                </xsd:complexType>
307               
308        </xsd:element>
309       
310        <xsd:element name="broadcasts">
311               
312                <xsd:annotation>
313                        <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>
314                </xsd:annotation>
315               
316                <xsd:complexType>
317                        <xsd:sequence>
318                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
319                            <xsd:element ref="message" />
320                                </xsd:choice>
321                        </xsd:sequence>
322                </xsd:complexType>
323               
324        </xsd:element>
325       
326        <xsd:element name="results">
327               
328                <xsd:annotation>
329                        <xsd:documentation><![CDATA[Contains a list of <result> tags.]]></xsd:documentation>
330                </xsd:annotation>
331               
332                <xsd:complexType>
333                        <xsd:sequence>
334                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
335                            <xsd:element ref="result" />
336                                </xsd:choice>
337                        </xsd:sequence>
338                </xsd:complexType>
339               
340        </xsd:element>
341       
342        <xsd:element name="result">
343               
344                <xsd:annotation>
345                        <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>
346                </xsd:annotation>
347               
348                <xsd:complexType>
349
350                        <xsd:attribute name="do" type="xsd:string" use="required">
351                                <xsd:annotation>
352                                        <xsd:documentation><![CDATA[(Required) - The NAME attribute of an event handler to add to this request.]]></xsd:documentation>
353                                </xsd:annotation>
354                        </xsd:attribute>                       
355                        <xsd:attribute name="name" type="xsd:string" use="optional">
356                                <xsd:annotation>
357                                        <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>
358                                </xsd:annotation>
359                        </xsd:attribute>
360                        <xsd:attribute name="redirect" type="xsd:string" use="optional">
361                                <xsd:annotation>
362                                        <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>
363                                </xsd:annotation>
364                        </xsd:attribute>
365                        <xsd:attribute name="append" type="xsd:string" use="optional">
366                                <xsd:annotation>
367                                        <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>
368                                </xsd:annotation>
369                        </xsd:attribute>
370                        <xsd:attribute name="preservestate" type="xsd:string" use="optional">
371                                <xsd:annotation>
372                                        <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>
373                                </xsd:annotation>
374                        </xsd:attribute>
375                        <xsd:attribute name="reset" type="xsd:string" use="optional">
376                                <xsd:annotation>
377                                        <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>
378                                </xsd:annotation>
379                        </xsd:attribute>
380                               
381                </xsd:complexType>
382               
383        </xsd:element>
384       
385        <xsd:element name="after">
386               
387                <xsd:annotation>
388                        <xsd:documentation><![CDATA[Part of a typed event.]]></xsd:documentation>
389                </xsd:annotation>
390               
391                <xsd:complexType>
392                        <xsd:sequence>
393                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
394                            <xsd:element ref="broadcasts" />
395                            <xsd:element ref="results" />
396                            <xsd:element ref="views" />
397                                </xsd:choice>
398                        </xsd:sequence>
399                </xsd:complexType>
400               
401        </xsd:element>
402       
403        <xsd:element name="before">
404               
405                <xsd:annotation>
406                        <xsd:documentation><![CDATA[Part of a typed event.]]></xsd:documentation>
407                </xsd:annotation>
408               
409                <xsd:complexType>
410                        <xsd:sequence>
411                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
412                            <xsd:element ref="broadcasts" />
413                            <xsd:element ref="results" />
414                            <xsd:element ref="views" />
415                                </xsd:choice>
416                        </xsd:sequence>
417                </xsd:complexType>
418               
419        </xsd:element>
420       
421       
422        <xsd:element name="views">
423               
424                <xsd:annotation>
425                        <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>
426                </xsd:annotation>
427               
428                <xsd:complexType>
429               
430                        <xsd:sequence>
431                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
432                            <xsd:element name="include" type="viewIncludeType" />
433                    <xsd:element name="view" type="viewIncludeType" />
434                                </xsd:choice>
435                        </xsd:sequence>
436
437                        <xsd:attribute name="format" type="xsd:string" use="optional">
438                                <xsd:annotation>
439                                        <xsd:documentation><![CDATA[(Optional) - Specifies what requestFormat this group of views should be rendered for. Defaults to "html".]]></xsd:documentation>
440                                </xsd:annotation>
441                        </xsd:attribute>
442                       
443                </xsd:complexType>
444               
445        </xsd:element>
446       
447        <xsd:element name="value">
448               
449                <xsd:annotation>
450                        <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>
451                </xsd:annotation>
452               
453                <xsd:complexType>
454
455                        <xsd:attribute name="name" type="xsd:string" use="required">
456                                <xsd:annotation>
457                                        <xsd:documentation><![CDATA[(Required) - Defines the name of the argument.]]></xsd:documentation>
458                                </xsd:annotation>
459                        </xsd:attribute>
460                       
461                        <xsd:attribute name="value" type="xsd:string" use="required">
462                                <xsd:annotation>
463                                        <xsd:documentation><![CDATA[(Required) - Defines the value of this argument.]]></xsd:documentation>
464                                </xsd:annotation>
465                        </xsd:attribute>
466                       
467                        <xsd:attribute name="overwrite" type="xsd:string" use="optional">
468                                <xsd:annotation>
469                                        <xsd:documentation><![CDATA[(Optional, default = "false") - If set to true, this value will overwrite an existing same-named value in the ViewState.]]></xsd:documentation>
470                                </xsd:annotation>
471                        </xsd:attribute>
472                               
473                </xsd:complexType>
474               
475        </xsd:element>
476       
477        <xsd:element name="message">
478               
479                <xsd:annotation>
480                        <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>
481                </xsd:annotation>
482               
483                <xsd:complexType>
484                        <xsd:sequence>
485                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
486                            <xsd:element ref="argument" />
487                                </xsd:choice>
488                        </xsd:sequence>
489
490                        <xsd:attribute name="name" type="xsd:string" use="required">
491                                <xsd:annotation>
492                                        <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>
493                                </xsd:annotation>
494                        </xsd:attribute>
495                               
496                </xsd:complexType>
497       
498        </xsd:element>
499       
500        <xsd:element name="setting">
501               
502                <xsd:annotation>
503                        <xsd:documentation><![CDATA[
504                        Used in Model-Glue XML fragments to define additional settings and by legacy Model-Glue 1.x applications to define settings.
505
506                        This tag was largely unused in Model-Glue 2, but may be used in Model-Glue 3 to define actionpacks.
507                       
508                        ==== Special Behavior ====
509                       
510                        A setting tag with a NAME attribute value of "viewMappings" will append its value to the list of existing viewMappings.
511                       
512                        A setting tag with a NAME attribute value of "helperMappings" will append its value to the list of existing helperMappings.
513                       
514                        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.
515                       
516                        All other settings are simply set.
517                        ]]></xsd:documentation>
518                </xsd:annotation>
519               
520                <xsd:complexType>
521
522                        <xsd:attribute name="name" type="xsd:string" use="required">
523                                <xsd:annotation>
524                                        <xsd:documentation><![CDATA[(Required) - The name of the setting to set]]></xsd:documentation>
525                                </xsd:annotation>
526                        </xsd:attribute>
527                       
528                        <xsd:attribute name="value" type="xsd:string" use="required">
529                                <xsd:annotation>
530                                        <xsd:documentation><![CDATA[(Required) - The value of the setting]]></xsd:documentation>
531                                </xsd:annotation>
532                        </xsd:attribute>
533                               
534                </xsd:complexType>
535               
536        </xsd:element>
537       
538        <xsd:element name="argument">
539               
540                <xsd:annotation>
541                        <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>
542                </xsd:annotation>
543               
544                <xsd:complexType>
545
546                        <xsd:attribute name="name" type="xsd:string" use="required">
547                                <xsd:annotation>
548                                        <xsd:documentation><![CDATA[(Required) - Defines the name of the argument.]]></xsd:documentation>
549                                </xsd:annotation>
550                        </xsd:attribute>
551                       
552                        <xsd:attribute name="value" type="xsd:string" use="required">
553                                <xsd:annotation>
554                                        <xsd:documentation><![CDATA[(Required) - Defines the value of this argument.]]></xsd:documentation>
555                                </xsd:annotation>
556                        </xsd:attribute>
557                       
558                               
559                </xsd:complexType>
560               
561        </xsd:element>
562       
563        <xsd:complexType name="globalIncludeType" mixed="true">
564                <xsd:annotation>
565                        <xsd:documentation><![CDATA[Defines a path to another Model-Glue XML file to include.]]></xsd:documentation>
566                </xsd:annotation>
567       
568            <xsd:attribute type="xsd:string" name="template" use="optional">
569                <xsd:annotation>
570                                <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>
571                        </xsd:annotation>
572                </xsd:attribute>
573        </xsd:complexType>
574       
575        <xsd:complexType name="viewIncludeType" mixed="true">
576                <xsd:annotation>
577                        <xsd:documentation><![CDATA[Defines a .CFM template to <cfinclude>, creating HTML that will be viewable by the user.
578                        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>
579                </xsd:annotation>
580
581                <xsd:sequence>
582                <xsd:choice minOccurs="0" maxOccurs="unbounded">
583                    <xsd:element ref="value" />
584                        </xsd:choice>
585                </xsd:sequence>
586               
587       
588            <xsd:attribute type="xsd:string" name="name" use="required">
589                <xsd:annotation>
590                                <xsd:documentation><![CDATA[(Required) - The name by which the rendered content will be known in the ViewCollection]]></xsd:documentation>
591                        </xsd:annotation>
592                </xsd:attribute>
593               
594                <xsd:attribute type="xsd:string" name="template" use="required">
595                <xsd:annotation>
596                                <xsd:documentation><![CDATA[(Required) - The filename of a .CFM template inside one of the directories in the ViewMappings setting]]></xsd:documentation>
597                        </xsd:annotation>
598                </xsd:attribute>
599               
600                <xsd:attribute type="xsd:string" name="append" use="optional">
601                <xsd:annotation>
602                                <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>
603                        </xsd:annotation>
604                </xsd:attribute>
605               
606               
607               
608        </xsd:complexType>
609       
610        <!--
611                Element snippets
612               
613                <xsd:element name="controller">
614               
615                        <xsd:annotation>
616                                <xsd:documentation><![CDATA[Defines a CFC that will act as a Controller in the application.]]></xsd:documentation>
617                        </xsd:annotation>
618                       
619                        <xsd:complexType>
620                                <xsd:complexContent>
621                                        <xsd:restriction base="xsd:anyType">
622                                       
623                                        </xsd:restriction>
624                                </xsd:complexContent>
625                        </xsd:complexType>
626                       
627                </xsd:element>
628       
629       
630         -->
631       
632</xsd:schema>
Note: See TracBrowser for help on using the browser.