fix some db docs
[factor/jcg.git] / basis / xmode / modes / jhtml.xml
blob5a15907f3b17fd28827e6a7607350686506d31fe
1 <?xml version="1.0"?>\r
2 \r
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">\r
4 \r
5 <!--\r
6   JHTML mode by Will Sargent <wsargent@atg.com>\r
7 -->\r
8 \r
9 <MODE>\r
10         <PROPS>\r
11                 <PROPERTY NAME="commentStart" VALUE="&lt;!--" />\r
12                 <PROPERTY NAME="commentEnd" VALUE="--&gt;" />\r
13                                 <!-- Indent droplets and oparams -->\r
14                                 <PROPERTY NAME="indentNextLines"\r
15                                  VALUE="\s*(&lt;\s*(droplet|oparam))\s+.*" />\r
16                                 <!-- Sadly, there doesn't seem to be a way to\r
17                                          undent when we see a /oparam> tag... -->\r
18         </PROPS>\r
19         <RULES IGNORE_CASE="TRUE">\r
20                                 <!-- Allow for Dynamo SSI -->\r
21                                 <SPAN TYPE="NULL">\r
22                         <BEGIN>&lt;!--#</BEGIN>\r
23                         <END>--&gt;</END>\r
24                                 </SPAN>\r
26                 <!-- SGML comment -->\r
27                 <SPAN TYPE="COMMENT1">\r
28                         <BEGIN>&lt;!--</BEGIN>\r
29                         <END>--&gt;</END>\r
30                 </SPAN>\r
32                 <!-- markup tags -->\r
33                 <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">\r
34                         <BEGIN>`</BEGIN>\r
35                         <END>`</END>\r
36                 </SPAN>\r
38                                 <!-- Embedded Java -->\r
39                 <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">\r
40                         <BEGIN>&lt;java&gt;</BEGIN>\r
41                         <END>&lt;/java&gt;</END>\r
42                 </SPAN>\r
44                                 <!-- Don't know how to do this correctly.\r
45                                 <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">\r
46                                                 <BEGIN>&lt;java type=</BEGIN>\r
47                                                 <END>&lt;/java&gt;</END>\r
48                                 </SPAN>\r
49                                 -->\r
51                 <!-- JavaScript -->\r
52                 <SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">\r
53                         <BEGIN>&lt;SCRIPT</BEGIN>\r
54                         <END>&lt;/SCRIPT&gt;</END>\r
55                 </SPAN>\r
57                 <!-- stylesheet -->\r
58                 <SPAN TYPE="MARKUP" DELEGATE="html::CSS">\r
59                         <BEGIN>&lt;STYLE</BEGIN>\r
60                         <END>&lt;/STYLE&gt;</END>\r
61                 </SPAN>\r
63                 <!-- DTD instructions -->\r
64                 <SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">\r
65                         <BEGIN>&lt;!</BEGIN>\r
66                         <END>&gt;</END>\r
67                 </SPAN>\r
69                                 <!-- All markup defaults to JHTML. -->\r
70                 <SPAN TYPE="MARKUP" DELEGATE="JHTML">\r
71                         <BEGIN>&lt;</BEGIN>\r
72                         <END>&gt;</END>\r
73                 </SPAN>\r
75                 <!-- SGML entities -->\r
76                 <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">\r
77                         <BEGIN>&amp;</BEGIN>\r
78                         <END>;</END>\r
79                 </SPAN>\r
80         </RULES>\r
82         <RULES SET="JHTML" DEFAULT="MARKUP">\r
83                 <!-- SGML comment -->\r
84                 <SPAN TYPE="COMMENT1">\r
85                         <BEGIN>&lt;!--</BEGIN>\r
86                         <END>--&gt;</END>\r
87                 </SPAN>\r
89                 <SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">\r
90                         <BEGIN>"</BEGIN>\r
91                         <END>"</END>\r
92                 </SPAN>\r
94                 <SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">\r
95                         <BEGIN>'</BEGIN>\r
96                         <END>'</END>\r
97                 </SPAN>\r
99                 <SEQ TYPE="MARKUP">/</SEQ>\r
101                 <KEYWORDS>\r
102                         <KEYWORD1>importbean</KEYWORD1>\r
103                         <KEYWORD1>droplet</KEYWORD1>\r
104                         <KEYWORD1>param</KEYWORD1>\r
105                         <KEYWORD1>oparam</KEYWORD1>\r
106                         <KEYWORD1>valueof</KEYWORD1>\r
107                         <KEYWORD1>setvalue</KEYWORD1>\r
108                         <KEYWORD1>servlet</KEYWORD1>\r
109                         <KEYWORD2>bean</KEYWORD2>\r
110                         <KEYWORD2>submitvalue</KEYWORD2>\r
111                         <KEYWORD2>declareparam</KEYWORD2>\r
112                         <KEYWORD2>synchronized</KEYWORD2>\r
113                         <KEYWORD2>priority</KEYWORD2>\r
115                         <!-- standard converters -->\r
116                         <KEYWORD2>converter</KEYWORD2>\r
117                         <KEYWORD2>date</KEYWORD2>\r
118                         <KEYWORD2>number</KEYWORD2>\r
119                         <KEYWORD2>required</KEYWORD2>\r
120                         <KEYWORD2>nullable</KEYWORD2>\r
121                         <KEYWORD2>currency</KEYWORD2>\r
122                         <KEYWORD2>currencyConversion</KEYWORD2>\r
123                         <KEYWORD2>euro</KEYWORD2>\r
124                         <KEYWORD2>locale</KEYWORD2>\r
125                         <KEYWORD2>symbol</KEYWORD2>\r
127                         <!-- Can't use this because of image src... -->\r
128                         <!-- <KEYWORD2>src</KEYWORD2> -->\r
129                 </KEYWORDS>\r
130         </RULES>\r
132         <RULES SET="ATTRVALUE" DEFAULT="LITERAL1" HIGHLIGHT_DIGITS="TRUE">\r
133                 <!-- backticks are java -->\r
134                 <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">\r
135                         <BEGIN>`</BEGIN>\r
136                         <END>`</END>\r
137                 </SPAN>\r
139                                 <!-- Allow param: and bean: properties to be marked up -->\r
140                                 <SEQ TYPE="LABEL">param:</SEQ>\r
141                                 <SEQ TYPE="LABEL">bean:</SEQ>\r
142         </RULES>\r
144 </MODE>\r