blob: 018729159a110b2d6ee4b0fd525641740f39f1f0 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2012 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:output method="html" version="1.0" encoding="UTF-8"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="yes"/>
<xsl:include href="workproduct.xsl"/>
<xsl:include href="extended_refs.xsl"/>
<xsl:include href="extended_rtes.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="artifactDescription" select="$presentation/Element[@Type='ArtifactDescription']"/>
<xsl:variable name="copyright" select="copyright"/>
<xsl:variable name="showTreeBrowser" select="@showTreeBrowser"/>
<xsl:variable name="responsibleRole" select="reference[@name='responsibleRole']/Element[@Type='Role']"/>
<xsl:variable name="tagValues" select="@TagValues"/>
<html>
<xsl:attribute name="lang"><xsl:value-of select="@lang"/></xsl:attribute>
<xsl:attribute name="xml:lang"><xsl:value-of select="@lang"/></xsl:attribute>
<head>
<title>
<xsl:call-template name="elementPageTitleText">
<xsl:with-param name="elementType" select="$elementType"/>
<xsl:with-param name="elementTypeName" select="$elementTypeName"/>
<xsl:with-param name="elementPresentationName" select="$elementPresentationName"/>
</xsl:call-template>
</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"/>
<meta name="role">
<xsl:choose>
<xsl:when test="$responsibleRole/@DisplayName!=''">
<xsl:attribute name="content"><xsl:value-of select="$responsibleRole/@DisplayName"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="content">none</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</meta>
<xsl:if test="$tagValues!=''">
<meta name="tags" content="{$tagValues}"/>
</xsl:if>
<link rel="StyleSheet" href="{$backPath}css/default.css" type="text/css"/>
<script src="{$backPath}scripts/ContentPageResource.js" type="text/javascript" language="JavaScript"></script>
<script src="{$backPath}scripts/ContentPageSection.js" type="text/javascript" language="JavaScript"></script>
<script src="{$backPath}scripts/ContentPageSubSection.js" type="text/javascript" language="JavaScript"></script>
<script src="{$backPath}scripts/ContentPageToolbar.js" type="text/javascript" language="JavaScript"></script>
<script src="{$backPath}scripts/contentPage.js" type="text/javascript" language="JavaScript"></script>
<script type="text/javascript" language="JavaScript">
var backPath = '<xsl:value-of select="$backPath"/>';
var imgPath = '<xsl:value-of select="$imagePath"/>';
var nodeInfo=null;
contentPage.preload(imgPath, backPath, nodeInfo, '', false, false, false);
</script>
</head>
<body>
<xsl:if test="$backgroundImage!=''">
<xsl:attribute name="background"><xsl:value-of select="concat($imagePath, $backgroundImage)"/></xsl:attribute>
</xsl:if>
<div id="breadcrumbs"></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top">
<a name="Top"/>
<xsl:call-template name="overview">
<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:call-template name="purposeSection">
<xsl:with-param name="description" select="$artifactDescription"/>
</xsl:call-template>
<xsl:call-template name="relationshipsSection"/>
<xsl:call-template name="customOppositeRelationshipsAll">
<xsl:with-param name="elementDown" select="/Element"/>
<xsl:with-param name="iconLevel" select="'two'"/>
<xsl:with-param name="layoutLocation" select="'Reverse References'"/>
</xsl:call-template>
<xsl:call-template name="extendedRefsSectionsAll">
<xsl:with-param name="elementDown" select="/Element"/>
<xsl:with-param name="iconLevel" select="'two'"/>
<xsl:with-param name="layoutLocation" select="''"/>
</xsl:call-template>
<xsl:call-template name="descriptionSection">
<xsl:with-param name="description" select="$artifactDescription"/>
</xsl:call-template>
<xsl:call-template name="extendedRtesSectionsAll">
<xsl:with-param name="descriptionDown" select="$artifactDescription"/>
<xsl:with-param name="layoutLocation" select="''"/>
</xsl:call-template>
<xsl:call-template name="workProductIllustrationsSection"/>
<xsl:call-template name="keyConsiderationsSection">
<xsl:with-param name="description" select="$artifactDescription"/>
</xsl:call-template>
<xsl:call-template name="tailoringSection">
<xsl:with-param name="description" select="$artifactDescription"/>
</xsl:call-template>
<xsl:call-template name="moreInfoSection"/>
<xsl:call-template name="copyright">
<xsl:with-param name="copyright" select="$copyright"/>
</xsl:call-template>
</td>
</tr>
</table>
</body>
<script type="text/javascript" language="JavaScript">
contentPage.onload();
</script>
</html>
</xsl:template>
<xsl:template name="descriptionSection">
<xsl:param name="description"/>
<xsl:variable name="briefOutline" select="$description/attribute[@name='briefOutline']"/>
<xsl:variable name="mainDescription" select="$description/attribute[@name='mainDescription']"/>
<xsl:variable name="representation" select="$description/attribute[@name='representation']"/>
<xsl:variable name="notation" select="$description/attribute[@name='notation']"/>
<xsl:if test="$briefOutline != '' or $mainDescription != '' or $representation != '' or $notation != ''">
<div class="sectionHeading"><xsl:value-of select="$descriptionText"/></div>
<div class="sectionContent">
<table class="sectionTable" border="0" cellspacing="0" cellpadding="0">
<xsl:if test="$mainDescription != ''">
<tr valign="top">
<th class="sectionTableHeading" scope="row"><xsl:value-of select="$mainDescriptionText"/></th>
<td class="sectionTableCell">
<xsl:value-of disable-output-escaping="yes" select="$mainDescription"/>
</td>
</tr>
</xsl:if>
<xsl:if test="$briefOutline != ''">
<tr valign="top">
<th class="sectionTableHeading" scope="row"><xsl:value-of select="$briefOutlineText"/></th>
<td class="sectionTableCell">
<xsl:value-of disable-output-escaping="yes" select="$briefOutline"/>
</td>
</tr>
</xsl:if>
<xsl:if test="$notation != ''">
<tr valign="top">
<th class="sectionTableHeading" scope="row"><xsl:value-of select="$notationText"/></th>
<td class="sectionTableCell">
<xsl:value-of disable-output-escaping="yes" select="$notation"/>
</td>
</tr>
</xsl:if>
<xsl:if test="$representation != ''">
<tr valign="top">
<th class="sectionTableHeading" scope="row"><xsl:value-of select="$representationText"/></th>
<td class="sectionTableCell">
<xsl:value-of disable-output-escaping="yes" select="$representation"/>
</td>
</tr>
</xsl:if>
</table>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet>