blob: 1376e4b882207d94d20ccc0239f811aff7fb92e2 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2006 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
IBM Corporation - initial implementation
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:include href="helper.xsl"/>
<xsl:template match="/Element">
<xsl:variable name="elementType" select="@Type"/>
<xsl:variable name="elementTypeName" select="@TypeName"/>
<xsl:variable name="elementName" select="@Name"/>
<xsl:variable name="elementPresentationName" select="@DisplayName"/>
<xsl:variable name="backPath" select="@BackPath"/>
<xsl:variable name="shapeImage" select="concat($backPath,@ShapeiconUrl)"/>
<xsl:variable name="imagePath" select="concat($backPath, 'images/')"/>
<xsl:variable name="presentation" select="reference[@name='presentation']"/><xsl:variable name="presentationName" select="@DisplayName"/>
<xsl:variable name="copyright" select="copyright"/>
<xsl:variable name="showTreeBrowser" select="@showTreeBrowser"/>
<html>
<head>
<title><xsl:value-of select="$elementTypeName"/>: <xsl:value-of select="$elementPresentationName"/></title>
<xsl:call-template name="umaMetaTags">
<xsl:with-param name="elementType" select="$elementType"/>
<xsl:with-param name="elementName" select="$elementName"/>
<xsl:with-param name="elementPresentationName" select="$elementPresentationName"/>
</xsl:call-template>
<meta name="element_type" content="{$elementType}"/>
<meta name="filetype" content="description"/>
<link rel="StyleSheet" href="{$backPath}css/default.css" type="text/css"/>
<script language="JavaScript" type="text/javascript" src="{$backPath}scripts/contentpage.js"></script>
<script language="JavaScript" type="text/javascript">
backPath = '<xsl:value-of select="$backPath"/>';
</script>
</head>
<body onload="createSectionLinks('div', 'sectionHeading', '{$imagePath}');">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top">
<a name="Top"/>
<xsl:call-template name="summaryOverview">
<xsl:with-param name="elementType" select="$elementType"/>
<xsl:with-param name="elementTypeName" select="$elementTypeName"/>
<xsl:with-param name="elementPresentationName" select="$elementPresentationName"/>
<xsl:with-param name="elementIcon" select="$shapeImage"/>
<xsl:with-param name="backPath" select="$backPath"/>
<xsl:with-param name="showTreeBrowser" select="$showTreeBrowser"/>
</xsl:call-template>
<xsl:for-each select="referenceList">
<xsl:if test="count(Element) > 0">
<h2 class="banner"><xsl:value-of select="@name"/></h2>
<ul>
<xsl:for-each select="Element">
<li>
<a><xsl:attribute name="href"><xsl:value-of select="$backPath"/><xsl:value-of select="@Url"/></xsl:attribute> <xsl:value-of select="@TypeName"/>:<xsl:value-of select="@DisplayName"/></a>
</li>
</xsl:for-each>
</ul>
<p/>
</xsl:if>
</xsl:for-each>
<xsl:call-template name="copyright">
<xsl:with-param name="copyright" select="$copyright"/>
</xsl:call-template>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template name="summaryOverview">
<xsl:param name="elementType"/>
<xsl:param name="elementTypeName"/>
<xsl:param name="elementPresentationName"/>
<xsl:param name="elementIcon"/>
<xsl:variable name="briefDescription" select="attribute[@name='briefDescription']"/>
<xsl:variable name="synonyms" select="reference/Element/attribute[@name='synonyms']"/>
<xsl:variable name="externalId" select="reference/Element/attribute[@name='externalId']"/>
<xsl:variable name="imagePath" select="concat(/Element/@BackPath, 'images/')"/>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="pageTitle">
<xsl:value-of select="$summaryText"/>: <xsl:value-of select="$elementPresentationName"/>
<xsl:if test="$externalId != ''">
(<xsl:value-of select="$externalId"/>)
</xsl:if>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="pageTitleSeparator">
<img src="{$imagePath}shim.gif" alt="" height="1"/>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>