Baked out of handling case where resource in a resource_type, also has
a type.
This commit is contained in:
@@ -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"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user