In generated wadl ref, add a leading / to the URI if missing.

Change-Id: Ie203a54d2c4c5426dd16141aa2fca3b49c7dddf8
This commit is contained in:
dcramer
2014-01-27 14:24:58 -06:00
parent d8423386b3
commit 308e23881d

View File

@@ -106,7 +106,7 @@
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="parent::wadl:resource/@path"/>
<xsl:value-of select="if(not(starts-with(parent::wadl:resource/@path,'/'))) then concat('/', parent::wadl:resource/@path) else parent::wadl:resource/@path"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>