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

Revision 30, 23.8 kB (checked in by eparker, 15 years ago)

Updated XSD to latest version from newScaffolding branch

RevLine 
[28]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                       
[30]194                        <xsd:attribute name="type" type="xsd:string" use="optional">
[28]195                                <xsd:annotation>
[30]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>
[28]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>
[30]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>
[28]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:complexType>
301               
302        </xsd:element>
303       
304        <xsd:element name="broadcasts">
305               
306                <xsd:annotation>
307                        <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>
308                </xsd:annotation>
309               
310                <xsd:complexType>
311                        <xsd:sequence>
312                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
313                            <xsd:element ref="message" />
314                                </xsd:choice>
315                        </xsd:sequence>
316                </xsd:complexType>
317               
318        </xsd:element>
319       
320        <xsd:element name="results">
321               
322                <xsd:annotation>
323                        <xsd:documentation><![CDATA[Contains a list of <result> tags.]]></xsd:documentation>
324                </xsd:annotation>
325               
326                <xsd:complexType>
327                        <xsd:sequence>
328                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
329                            <xsd:element ref="result" />
330                                </xsd:choice>
331                        </xsd:sequence>
332                </xsd:complexType>
333               
334        </xsd:element>
335       
336        <xsd:element name="result">
337               
338                <xsd:annotation>
339                        <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>
340                </xsd:annotation>
341               
342                <xsd:complexType>
343
344                        <xsd:attribute name="do" type="xsd:string" use="required">
345                                <xsd:annotation>
346                                        <xsd:documentation><![CDATA[(Required) - The NAME attribute of an event handler to add to this request.]]></xsd:documentation>
347                                </xsd:annotation>
348                        </xsd:attribute>                       
349                        <xsd:attribute name="name" type="xsd:string" use="optional">
350                                <xsd:annotation>
351                                        <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>
352                                </xsd:annotation>
353                        </xsd:attribute>
354                        <xsd:attribute name="redirect" type="xsd:string" use="optional">
355                                <xsd:annotation>
356                                        <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>
357                                </xsd:annotation>
358                        </xsd:attribute>
359                        <xsd:attribute name="append" type="xsd:string" use="optional">
360                                <xsd:annotation>
361                                        <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>
362                                </xsd:annotation>
363                        </xsd:attribute>
364                        <xsd:attribute name="preservestate" type="xsd:string" use="optional">
365                                <xsd:annotation>
366                                        <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>
367                                </xsd:annotation>
368                        </xsd:attribute>
369                        <xsd:attribute name="reset" type="xsd:string" use="optional">
370                                <xsd:annotation>
371                                        <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>
372                                </xsd:annotation>
373                        </xsd:attribute>
374                               
375                </xsd:complexType>
376               
377        </xsd:element>
378       
379        <xsd:element name="after">
380               
381                <xsd:annotation>
382                        <xsd:documentation><![CDATA[Part of a typed event.]]></xsd:documentation>
383                </xsd:annotation>
384               
385                <xsd:complexType>
386                        <xsd:sequence>
387                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
388                            <xsd:element ref="broadcasts" />
389                            <xsd:element ref="results" />
390                            <xsd:element ref="views" />
391                                </xsd:choice>
392                        </xsd:sequence>
393                </xsd:complexType>
394               
395        </xsd:element>
396       
397        <xsd:element name="before">
398               
399                <xsd:annotation>
400                        <xsd:documentation><![CDATA[Part of a typed event.]]></xsd:documentation>
401                </xsd:annotation>
402               
403                <xsd:complexType>
404                        <xsd:sequence>
405                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
406                            <xsd:element ref="broadcasts" />
407                            <xsd:element ref="results" />
408                            <xsd:element ref="views" />
409                                </xsd:choice>
410                        </xsd:sequence>
411                </xsd:complexType>
412               
413        </xsd:element>
414       
415       
416        <xsd:element name="views">
417               
418                <xsd:annotation>
419                        <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>
420                </xsd:annotation>
421               
422                <xsd:complexType>
[30]423               
[28]424                        <xsd:sequence>
425                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
426                            <xsd:element name="include" type="viewIncludeType" />
427                    <xsd:element name="view" type="viewIncludeType" />
428                                </xsd:choice>
429                        </xsd:sequence>
[30]430
431                        <xsd:attribute name="format" type="xsd:string" use="optional">
432                                <xsd:annotation>
433                                        <xsd:documentation><![CDATA[(Optional) - Specifies what requestFormat this group of views should be rendered for. Defaults to "html".]]></xsd:documentation>
434                                </xsd:annotation>
435                        </xsd:attribute>
[28]436                       
437                </xsd:complexType>
438               
439        </xsd:element>
440       
441        <xsd:element name="value">
442               
443                <xsd:annotation>
444                        <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>
445                </xsd:annotation>
446               
447                <xsd:complexType>
448
449                        <xsd:attribute name="name" type="xsd:string" use="required">
450                                <xsd:annotation>
451                                        <xsd:documentation><![CDATA[(Required) - Defines the name of the argument.]]></xsd:documentation>
452                                </xsd:annotation>
453                        </xsd:attribute>
454                       
455                        <xsd:attribute name="value" type="xsd:string" use="required">
456                                <xsd:annotation>
457                                        <xsd:documentation><![CDATA[(Required) - Defines the value of this argument.]]></xsd:documentation>
458                                </xsd:annotation>
459                        </xsd:attribute>
460                       
461                        <xsd:attribute name="overwrite" type="xsd:string" use="optional">
462                                <xsd:annotation>
463                                        <xsd:documentation><![CDATA[(Optional, default = "false") - If set to true, this value will overwrite an existing same-named value in the ViewState.]]></xsd:documentation>
464                                </xsd:annotation>
465                        </xsd:attribute>
466                               
467                </xsd:complexType>
468               
469        </xsd:element>
470       
471        <xsd:element name="message">
472               
473                <xsd:annotation>
474                        <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>
475                </xsd:annotation>
476               
477                <xsd:complexType>
478                        <xsd:sequence>
479                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
480                            <xsd:element ref="argument" />
481                                </xsd:choice>
482                        </xsd:sequence>
483
484                        <xsd:attribute name="name" type="xsd:string" use="required">
485                                <xsd:annotation>
486                                        <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>
487                                </xsd:annotation>
488                        </xsd:attribute>
489                               
490                </xsd:complexType>
491       
492        </xsd:element>
493       
494        <xsd:element name="setting">
495               
496                <xsd:annotation>
497                        <xsd:documentation><![CDATA[
498                        Used in Model-Glue XML fragments to define additional settings and by legacy Model-Glue 1.x applications to define settings.
499
500                        This tag was largely unused in Model-Glue 2, but may be used in Model-Glue 3 to define actionpacks.
501                       
502                        ==== Special Behavior ====
503                       
504                        A setting tag with a NAME attribute value of "viewMappings" will append its value to the list of existing viewMappings.
505                       
506                        A setting tag with a NAME attribute value of "helperMappings" will append its value to the list of existing helperMappings.
507                       
508                        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.
509                       
510                        All other settings are simply set.
511                        ]]></xsd:documentation>
512                </xsd:annotation>
513               
514                <xsd:complexType>
515
516                        <xsd:attribute name="name" type="xsd:string" use="required">
517                                <xsd:annotation>
518                                        <xsd:documentation><![CDATA[(Required) - The name of the setting to set]]></xsd:documentation>
519                                </xsd:annotation>
520                        </xsd:attribute>
521                       
522                        <xsd:attribute name="value" type="xsd:string" use="required">
523                                <xsd:annotation>
524                                        <xsd:documentation><![CDATA[(Required) - The value of the setting]]></xsd:documentation>
525                                </xsd:annotation>
526                        </xsd:attribute>
527                               
528                </xsd:complexType>
529               
530        </xsd:element>
531       
532        <xsd:element name="argument">
533               
534                <xsd:annotation>
535                        <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>
536                </xsd:annotation>
537               
538                <xsd:complexType>
539
540                        <xsd:attribute name="name" type="xsd:string" use="required">
541                                <xsd:annotation>
542                                        <xsd:documentation><![CDATA[(Required) - Defines the name of the argument.]]></xsd:documentation>
543                                </xsd:annotation>
544                        </xsd:attribute>
545                       
546                        <xsd:attribute name="value" type="xsd:string" use="required">
547                                <xsd:annotation>
548                                        <xsd:documentation><![CDATA[(Required) - Defines the value of this argument.]]></xsd:documentation>
549                                </xsd:annotation>
550                        </xsd:attribute>
551                       
552                               
553                </xsd:complexType>
554               
555        </xsd:element>
556       
557        <xsd:complexType name="globalIncludeType" mixed="true">
558                <xsd:annotation>
559                        <xsd:documentation><![CDATA[Defines a path to another Model-Glue XML file to include.]]></xsd:documentation>
560                </xsd:annotation>
561       
562            <xsd:attribute type="xsd:string" name="template" use="optional">
563                <xsd:annotation>
564                                <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>
565                        </xsd:annotation>
566                </xsd:attribute>
567        </xsd:complexType>
568       
569        <xsd:complexType name="viewIncludeType" mixed="true">
570                <xsd:annotation>
571                        <xsd:documentation><![CDATA[Defines a .CFM template to <cfinclude>, creating HTML that will be viewable by the user.
572                        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>
573                </xsd:annotation>
574
575                <xsd:sequence>
576                <xsd:choice minOccurs="0" maxOccurs="unbounded">
577                    <xsd:element ref="value" />
578                        </xsd:choice>
579                </xsd:sequence>
580               
581       
582            <xsd:attribute type="xsd:string" name="name" use="required">
583                <xsd:annotation>
584                                <xsd:documentation><![CDATA[(Required) - The name by which the rendered content will be known in the ViewCollection]]></xsd:documentation>
585                        </xsd:annotation>
586                </xsd:attribute>
587               
588                <xsd:attribute type="xsd:string" name="template" use="required">
589                <xsd:annotation>
590                                <xsd:documentation><![CDATA[(Required) - The filename of a .CFM template inside one of the directories in the ViewMappings setting]]></xsd:documentation>
591                        </xsd:annotation>
592                </xsd:attribute>
593               
594                <xsd:attribute type="xsd:string" name="append" use="optional">
595                <xsd:annotation>
596                                <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>
597                        </xsd:annotation>
598                </xsd:attribute>
599               
600               
601               
602        </xsd:complexType>
603       
604        <!--
605                Element snippets
606               
607                <xsd:element name="controller">
608               
609                        <xsd:annotation>
610                                <xsd:documentation><![CDATA[Defines a CFC that will act as a Controller in the application.]]></xsd:documentation>
611                        </xsd:annotation>
612                       
613                        <xsd:complexType>
614                                <xsd:complexContent>
615                                        <xsd:restriction base="xsd:anyType">
616                                       
617                                        </xsd:restriction>
618                                </xsd:complexContent>
619                        </xsd:complexType>
620                       
621                </xsd:element>
622       
623       
624         -->
625       
626</xsd:schema>
Note: See TracBrowser for help on using the browser.