Revision 1706
Added by Jing Tao about 21 years ago
eml-constraint-2.0.0.xsl | ||
---|---|---|
184 | 184 |
</tr> |
185 | 185 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
186 | 186 |
 </td> |
187 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
187 |
<td width="{$secondColWidth}"> |
|
188 | 188 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
189 | 189 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
190 | 190 |
<xsl:text>Parent</xsl:text></td> |
... | ... | |
196 | 196 |
</tr> |
197 | 197 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
198 | 198 |
 </td> |
199 |
<td width="{$secondColWidth}" class="{$secondColStyle}">
|
|
199 |
<td width="{$secondColWidth}"> |
|
200 | 200 |
<table xsl:use-attribute-sets="cellspacing" class="tabledefault" width="100%"> |
201 | 201 |
<tr><td width="{$firstColWidth}" class="{$constraintfirstColStyle}"> |
202 | 202 |
<xsl:text>Children</xsl:text></td> |
... | ... | |
263 | 263 |
</xsl:if> |
264 | 264 |
</xsl:template> |
265 | 265 |
|
266 |
|
|
267 |
<xsl:template match="constraint"> |
|
268 |
<xsl:if test="normalize-space(constraintType)!=''"> |
|
269 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
270 |
<xsl:text>Type</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
271 |
<xsl:value-of select="constraintType"/></td></tr> |
|
272 |
</xsl:if> |
|
273 |
<xsl:if test="normalize-space(constraintName)!=''"> |
|
274 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
275 |
<xsl:text>Name</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
276 |
<xsl:value-of select="constraintName"/></td></tr> |
|
277 |
</xsl:if> |
|
278 |
<xsl:if test="normalize-space(constraintDescription)!=''"> |
|
279 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
280 |
<xsl:text>Description</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
281 |
<xsl:value-of select="constraintDescription"/></td></tr> |
|
282 |
</xsl:if> |
|
283 |
<xsl:if test="normalize-space(entityId)!=''"> |
|
284 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
285 |
<xsl:text>Entity Id</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
286 |
<xsl:value-of select="entityId"/></td></tr> |
|
287 |
</xsl:if> |
|
288 |
<xsl:if test="normalize-space(referencedEntityId)!=''"> |
|
289 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
290 |
<xsl:text>Referenced Entity Id</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
291 |
<xsl:value-of select="referencedEntityId"/></td></tr> |
|
292 |
</xsl:if> |
|
293 |
<xsl:if test="normalize-space(referencedKey)!=''"> |
|
294 |
<xsl:for-each select="referencedKey/attributeName"> |
|
295 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
296 |
<xsl:text>Referenced Key</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
297 |
<xsl:apply-templates select="."/></td></tr> |
|
298 |
</xsl:for-each> |
|
299 |
</xsl:if> |
|
300 |
<xsl:if test="normalize-space(key)!=''"> |
|
301 |
<xsl:for-each select="key/attributeName"> |
|
302 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
303 |
<xsl:text>Key</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
304 |
<xsl:apply-templates select="."/></td></tr> |
|
305 |
</xsl:for-each> |
|
306 |
</xsl:if> |
|
307 |
<xsl:if test="normalize-space(cardinality)!=''"> |
|
308 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
309 |
<xsl:text>Cardinality</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
310 |
<xsl:value-of select="cardinality"/></td></tr> |
|
311 |
</xsl:if> |
|
312 |
<xsl:if test="normalize-space(checkCondition)!=''"> |
|
313 |
<tr><td width="{$firstColWidth}" class="{$firstColStyle}"> |
|
314 |
<xsl:text>Check Condition</xsl:text></td><td width="{$secondColWidth}" class="{$secondColStyle}"> |
|
315 |
<xsl:value-of select="checkCondition"/></td></tr> |
|
316 |
</xsl:if> |
|
317 |
</xsl:template> |
|
318 |
|
|
319 |
<xsl:template match="attributeName"> |
|
320 |
<xsl:value-of select="."/> |
|
321 |
</xsl:template> |
|
322 |
|
|
323 |
|
|
324 | 266 |
</xsl:stylesheet> |
Also available in: Unified diff
Revise the modules to make it looking nicer.