Revision 1711
Added by Jing Tao about 21 years ago
eml-constraint-2.0.0.xsl | ||
---|---|---|
93 | 93 |
<xsl:template name="primaryKey"> |
94 | 94 |
<xsl:param name="constraintfirstColStyle"/> |
95 | 95 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
96 |
<xsl:text>Type</xsl:text></td> |
|
96 |
<xsl:text>Type:</xsl:text></td>
|
|
97 | 97 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
98 | 98 |
Primary Key</td> |
99 | 99 |
</tr> |
... | ... | |
102 | 102 |
</xsl:call-template> |
103 | 103 |
<xsl:for-each select="key/attributeReference"> |
104 | 104 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
105 |
<xsl:text>Key</xsl:text></td> |
|
105 |
<xsl:text>Key:</xsl:text></td>
|
|
106 | 106 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
107 | 107 |
<xsl:value-of select="."/></td> |
108 | 108 |
</tr> |
... | ... | |
112 | 112 |
<xsl:template name="uniqueKey"> |
113 | 113 |
<xsl:param name="constraintfirstColStyle"/> |
114 | 114 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
115 |
<xsl:text>Type</xsl:text></td> |
|
115 |
<xsl:text>Type:</xsl:text></td>
|
|
116 | 116 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
117 | 117 |
Unique Key</td> |
118 | 118 |
</tr> |
... | ... | |
121 | 121 |
</xsl:call-template> |
122 | 122 |
<xsl:for-each select="key/attributeReference"> |
123 | 123 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
124 |
<xsl:text>Key</xsl:text></td> |
|
124 |
<xsl:text>Key:</xsl:text></td>
|
|
125 | 125 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
126 | 126 |
<xsl:value-of select="."/></td> |
127 | 127 |
</tr> |
... | ... | |
131 | 131 |
<xsl:template name="checkConstraint"> |
132 | 132 |
<xsl:param name="constraintfirstColStyle"/> |
133 | 133 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
134 |
<xsl:text>Type</xsl:text></td> |
|
134 |
<xsl:text>Type:</xsl:text></td>
|
|
135 | 135 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
136 | 136 |
Checking Constraint</td> |
137 | 137 |
</tr> |
... | ... | |
140 | 140 |
</xsl:call-template> |
141 | 141 |
<xsl:for-each select="checkCondition"> |
142 | 142 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
143 |
<xsl:text>Check Condition</xsl:text></td> |
|
143 |
<xsl:text>Check Condition:</xsl:text></td>
|
|
144 | 144 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
145 | 145 |
<xsl:value-of select="."/></td> |
146 | 146 |
</tr> |
... | ... | |
150 | 150 |
<xsl:template name="foreignKey"> |
151 | 151 |
<xsl:param name="constraintfirstColStyle"/> |
152 | 152 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
153 |
<xsl:text>Type</xsl:text></td> |
|
153 |
<xsl:text>Type:</xsl:text></td>
|
|
154 | 154 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
155 | 155 |
Foreign Key</td> |
156 | 156 |
</tr> |
... | ... | |
159 | 159 |
</xsl:call-template> |
160 | 160 |
<xsl:for-each select="key/attributeReference"> |
161 | 161 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
162 |
<xsl:text>Key</xsl:text></td> |
|
162 |
<xsl:text>Key:</xsl:text></td>
|
|
163 | 163 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
164 | 164 |
<xsl:value-of select="."/></td> |
165 | 165 |
</tr> |
166 | 166 |
</xsl:for-each> |
167 | 167 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
168 |
<xsl:text>Entity Reference</xsl:text></td> |
|
168 |
<xsl:text>Entity Reference:</xsl:text></td>
|
|
169 | 169 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
170 | 170 |
<xsl:value-of select="entityReference"/></td> |
171 | 171 |
</tr> |
172 | 172 |
<xsl:if test="relationshipType and normalize-space(relationshipType)!=''"> |
173 | 173 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
174 |
<xsl:text>Relation Ship</xsl:text></td>
|
|
174 |
<xsl:text>Relationship:</xsl:text></td>
|
|
175 | 175 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
176 | 176 |
<xsl:value-of select="relationshipType"/></td> |
177 | 177 |
</tr> |
178 | 178 |
</xsl:if> |
179 | 179 |
<xsl:if test="cardinality and normalize-space(cardinality)!=''"> |
180 | 180 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
181 |
<xsl:text>Cardinality</xsl:text></td> |
|
182 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
183 |
 </td> |
|
184 |
</tr> |
|
185 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
|
186 |
 </td> |
|
181 |
<xsl:text>Cardinality:</xsl:text></td> |
|
187 | 182 |
<td width="{$secondColWidth}"> |
188 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%">
|
|
183 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
|
189 | 184 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
190 |
<xsl:text>Parent</xsl:text></td> |
|
185 |
<xsl:text>Parent:</xsl:text></td>
|
|
191 | 186 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
192 | 187 |
<xsl:value-of select="cardinality/parentOccurences"/></td> |
193 |
</tr> |
|
194 |
</table> |
|
195 |
</td> |
|
196 |
</tr> |
|
197 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
|
198 |
 </td> |
|
199 |
<td width="{$secondColWidth}"> |
|
200 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
|
201 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
|
188 |
</tr> |
|
189 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
|
202 | 190 |
<xsl:text>Children</xsl:text></td> |
203 | 191 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
204 | 192 |
<xsl:value-of select="cardinality/childOccurences"/></td> |
... | ... | |
212 | 200 |
<xsl:template name="joinCondition"> |
213 | 201 |
<xsl:param name="constraintfirstColStyle"/> |
214 | 202 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
215 |
<xsl:text>Type</xsl:text></td> |
|
203 |
<xsl:text>Type:</xsl:text></td>
|
|
216 | 204 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
217 | 205 |
Join Condition</td> |
218 | 206 |
</tr> |
... | ... | |
221 | 209 |
</xsl:call-template> |
222 | 210 |
<xsl:for-each select="referencedKey/attributeReference"> |
223 | 211 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
224 |
<xsl:text>Referenced Key</xsl:text></td> |
|
212 |
<xsl:text>Referenced Key:</xsl:text></td>
|
|
225 | 213 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
226 | 214 |
<xsl:value-of select="."/></td> |
227 | 215 |
</tr> |
... | ... | |
231 | 219 |
<xsl:template name="notNullConstraint"> |
232 | 220 |
<xsl:param name="constraintfirstColStyle"/> |
233 | 221 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
234 |
<xsl:text>Type</xsl:text></td> |
|
222 |
<xsl:text>Type:</xsl:text></td>
|
|
235 | 223 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
236 | 224 |
Not Null Constraint</td> |
237 | 225 |
</tr> |
... | ... | |
240 | 228 |
</xsl:call-template> |
241 | 229 |
<xsl:for-each select="key/attributeReference"> |
242 | 230 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
243 |
<xsl:text>Key</xsl:text></td> |
|
231 |
<xsl:text>Key:</xsl:text></td>
|
|
244 | 232 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
245 | 233 |
<xsl:value-of select="."/></td> |
246 | 234 |
</tr> |
... | ... | |
250 | 238 |
<xsl:template name="constraintBaseGroup"> |
251 | 239 |
<xsl:param name="constraintfirstColStyle"/> |
252 | 240 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
253 |
<xsl:text>Constraint Name</xsl:text></td> |
|
241 |
<xsl:text>Constraint Name:</xsl:text></td>
|
|
254 | 242 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
255 | 243 |
<xsl:value-of select="constraintName"/></td> |
256 | 244 |
</tr> |
257 | 245 |
<xsl:if test="constraintDescription and normalize-space(constraintDescription)!=''"> |
258 | 246 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
259 |
<xsl:text>Description</xsl:text></td> |
|
247 |
<xsl:text>Description:</xsl:text></td>
|
|
260 | 248 |
<td width="{$secondColWidth}" class="{$secondColStyle}"> |
261 | 249 |
<xsl:value-of select="constraintDescription"/></td> |
262 | 250 |
</tr> |
Also available in: Unified diff
Revise some codes.