wlu: showed contained WPDs
diff --git a/org.eclipse.epf.library/layout/xsl/artifact_descriptor.xsl b/org.eclipse.epf.library/layout/xsl/artifact_descriptor.xsl index 003392e..cbf8abc 100644 --- a/org.eclipse.epf.library/layout/xsl/artifact_descriptor.xsl +++ b/org.eclipse.epf.library/layout/xsl/artifact_descriptor.xsl
@@ -232,11 +232,50 @@ <xsl:variable name="superActivities" select="referenceList[@name='superActivities']/Element[@Type='Activity']"/> <xsl:variable name="responsibleRole" select="referenceList[@name='WorkProductDescriptor_ResponsibleRoleDescriptors']/Element[@Type='RoleDescriptor']"/> <xsl:variable name="workedOnBy" select="referenceList[@name='workedOnBy']/Element"/> - - <xsl:if test="count($responsibleRole) + count($workedOnBy) + count($mandatoryInputTo) + count($optionalInputTo) + count($externalInputTo) + count($outputFrom) + count($impacts) + count($impactedBy)> 0"> + <xsl:variable name="showFullMethodContent" select="@ShowFullMethodContent"/> + <xsl:variable name="containerArtifact" select="reference[@name='containerArtifact']/Element"/> + <xsl:variable name="containedArtifacts" select="referenceList[@name='containedArtifacts']/Element[@Type='WorkProductDescriptor']"/> + + <xsl:if test="count($responsibleRole) + count($workedOnBy) + count($mandatoryInputTo) + count($optionalInputTo) + count($externalInputTo) + count($outputFrom) + count($impacts) + count($impactedBy)> 0 or (count($containerArtifact) + count($containedArtifacts) > 0 and $showFullMethodContent = 'true')"> <div class="sectionHeading"><xsl:value-of select="$relationshipsText"/></div> <div class="sectionContent"> <table class="sectionTable" border="0" cellspacing="0" cellpadding="0"> + <xsl:if test="$showFullMethodContent = 'true' and count($containerArtifact) > 0"> + <tr valign="top"> + <th class="sectionTableHeading" scope="row"><xsl:value-of select="$containerArtifactText"/></th> + <td class="sectionTableCell" colspan="2"> + <ul> + <xsl:for-each select="$containerArtifact"> + <xsl:sort select="@DisplayName"/> + <li> + <a> + <xsl:attribute name="href"><xsl:value-of select="/Element/@BackPath"/><xsl:value-of select="@Url"/></xsl:attribute> + <xsl:value-of select="@DisplayName"/> + </a> + </li> + </xsl:for-each> + </ul> + </td> + </tr> + </xsl:if> + <xsl:if test="$showFullMethodContent = 'true' and count($containedArtifacts) > 0"> + <tr valign="top"> + <th class="sectionTableHeading" scope="row"><xsl:value-of select="$containedArtifactsText"/></th> + <td class="sectionTableCell" colspan="2"> + <ul> + <xsl:for-each select="$containedArtifacts"> + <xsl:sort data-type="text" select="@DisplayName" order="ascending" /> + <li> + <a> + <xsl:attribute name="href"><xsl:value-of select="/Element/@BackPath"/><xsl:value-of select="@Url"/></xsl:attribute> + <xsl:value-of select="@DisplayName"/> + </a> + </li> + </xsl:for-each> + </ul> + </td> + </tr> + </xsl:if> <xsl:if test="count($impacts) > 0"> <tr valign="top"> <th class="sectionTableHeading" scope="row"><xsl:value-of select="$dependentText"/></th> @@ -455,4 +494,4 @@ </xsl:if> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> \ No newline at end of file