| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!-- |
|---|
| 3 | Copyright 2006-2007 TeraTech, Inc. http://teratech.com/ |
|---|
| 4 | |
|---|
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 6 | you may not use this file except in compliance with the License. |
|---|
| 7 | You may obtain a copy of the License at |
|---|
| 8 | |
|---|
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 10 | |
|---|
| 11 | Unless required by applicable law or agreed to in writing, software |
|---|
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 14 | See the License for the specific language governing permissions and |
|---|
| 15 | limitations under the License. |
|---|
| 16 | --> |
|---|
| 17 | |
|---|
| 18 | <!-- |
|---|
| 19 | Used within the fusebox.xml page to contain the elements that configure the application. |
|---|
| 20 | Ticket 159: made all elements optional - but logistically a Fusebox requires at least one circuit. |
|---|
| 21 | --> |
|---|
| 22 | <!ELEMENT fusebox (circuits?, classes?, lexicons?, parameters?, globalfuseactions?, plugins?)> |
|---|
| 23 | <!-- |
|---|
| 24 | Specify the circuits in this application. |
|---|
| 25 | --> |
|---|
| 26 | <!ELEMENT circuits (circuit*)> |
|---|
| 27 | <!ELEMENT circuit EMPTY> |
|---|
| 28 | <!ATTLIST circuit |
|---|
| 29 | alias CDATA #REQUIRED |
|---|
| 30 | path CDATA #REQUIRED |
|---|
| 31 | parent CDATA #IMPLIED |
|---|
| 32 | relative (true | false | yes | no) "true" |
|---|
| 33 | > |
|---|
| 34 | <!-- |
|---|
| 35 | Specify the class declarations in this application. |
|---|
| 36 | --> |
|---|
| 37 | <!ELEMENT classes (class*)> |
|---|
| 38 | <!ELEMENT class EMPTY> |
|---|
| 39 | <!ATTLIST class |
|---|
| 40 | alias CDATA #REQUIRED |
|---|
| 41 | type (component | java) "component" |
|---|
| 42 | classpath CDATA #REQUIRED |
|---|
| 43 | constructor CDATA #IMPLIED |
|---|
| 44 | > |
|---|
| 45 | <!-- |
|---|
| 46 | Specify the Fusebox 4.1 style lexicon declarations in this application. Deprecated. |
|---|
| 47 | --> |
|---|
| 48 | <!ELEMENT lexicons (lexicon*)> |
|---|
| 49 | <!ELEMENT lexicon EMPTY> |
|---|
| 50 | <!ATTLIST lexicon |
|---|
| 51 | namespace CDATA #REQUIRED |
|---|
| 52 | path CDATA #REQUIRED |
|---|
| 53 | > |
|---|
| 54 | <!-- |
|---|
| 55 | Specify the global fuseactions - appinit is optional (since it is new) but all existing |
|---|
| 56 | applications will already have preprocess followed by postprocess (even if they are empty). |
|---|
| 57 | --> |
|---|
| 58 | <!ELEMENT globalfuseactions (appinit?, preprocess?, postprocess?)> |
|---|
| 59 | <!ELEMENT appinit ((do | fuseaction)*)> |
|---|
| 60 | <!ELEMENT preprocess ((do | fuseaction)*)> |
|---|
| 61 | <!ELEMENT postprocess ((do | fuseaction)*)> |
|---|
| 62 | <!-- |
|---|
| 63 | Using <do> in a globalfuseaction is deprecated. Use <fuseaction> instead. |
|---|
| 64 | --> |
|---|
| 65 | <!ELEMENT do EMPTY> |
|---|
| 66 | <!ATTLIST do |
|---|
| 67 | action CDATA #REQUIRED |
|---|
| 68 | > |
|---|
| 69 | <!-- |
|---|
| 70 | Global fuseactions should be specified using the <fuseaction> verb. |
|---|
| 71 | --> |
|---|
| 72 | <!ELEMENT fuseaction EMPTY> |
|---|
| 73 | <!ATTLIST fuseaction |
|---|
| 74 | action CDATA #REQUIRED |
|---|
| 75 | > |
|---|
| 76 | <!-- |
|---|
| 77 | Specify the plugin declarations for the applications. In the <plugins> section |
|---|
| 78 | there are a number of phases, within each phase you can have <plugin> declarations. |
|---|
| 79 | --> |
|---|
| 80 | <!ELEMENT plugins (phase*)> |
|---|
| 81 | <!ELEMENT phase (plugin*)> |
|---|
| 82 | <!ATTLIST phase |
|---|
| 83 | name (fuseactionException | postFuseaction | postProcess | preFuseaction | preProcess | processError) #REQUIRED |
|---|
| 84 | > |
|---|
| 85 | <!ELEMENT plugin (parameter*)> |
|---|
| 86 | <!ATTLIST plugin |
|---|
| 87 | name CDATA #REQUIRED |
|---|
| 88 | template CDATA #REQUIRED |
|---|
| 89 | path CDATA #IMPLIED |
|---|
| 90 | > |
|---|
| 91 | <!-- |
|---|
| 92 | Plugins may have parameters. |
|---|
| 93 | --> |
|---|
| 94 | <!ELEMENT parameters (parameter*)> |
|---|
| 95 | <!ELEMENT parameter EMPTY> |
|---|
| 96 | <!ATTLIST parameter |
|---|
| 97 | name CDATA #REQUIRED |
|---|
| 98 | value CDATA #REQUIRED |
|---|
| 99 | > |
|---|