Baked out of handling case where resource in a resource_type, also has

a type.
This commit is contained in:
Jorge L. Williams
2011-11-07 02:10:05 -06:00
parent 94cbf5c3de
commit 2c9ccedf38

View File

@@ -275,15 +275,7 @@ Resolves hrefs on method and resource_type elements.
</xsl:variable> </xsl:variable>
<resource> <resource>
<xsl:copy-of select="@*[(name() != 'type') and (name() != 'id')]"/> <xsl:copy-of select="@*[name() != 'type']"/>
<xsl:choose>
<xsl:when test="$baseID != $realBase">
<xsl:attribute name="id" select="concat($baseID,'_',$realBase)"/>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="id" select="$baseID"/>
</xsl:otherwise>
</xsl:choose>
<!-- Since we've combined resource types, we need to sort the <!-- Since we've combined resource types, we need to sort the
elements to keep things valid against the schema --> elements to keep things valid against the schema -->
<xsl:copy-of select="$content/wadl:doc"/> <xsl:copy-of select="$content/wadl:doc"/>