summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-05-06 12:05:55 +0530
committerSunil Shetye2025-05-06 12:05:55 +0530
commit1294d1170569c9303a87f414bd4e045181b82865 (patch)
treeafd2c1428eaf45afd3e72d6a140954cd0af825c1
parentdf975ee459709b81526246eba14bf70b89ead436 (diff)
downloadCommon-Interface-Project-1294d1170569c9303a87f414bd4e045181b82865.tar.gz
Common-Interface-Project-1294d1170569c9303a87f414bd4e045181b82865.tar.bz2
Common-Interface-Project-1294d1170569c9303a87f414bd4e045181b82865.zip
handle the case where the name is not the first part of the style
-rw-r--r--blocks/eda-frontend/public/geometry.xsl13
1 files changed, 10 insertions, 3 deletions
diff --git a/blocks/eda-frontend/public/geometry.xsl b/blocks/eda-frontend/public/geometry.xsl
index 185bd6d8..ed741a9d 100644
--- a/blocks/eda-frontend/public/geometry.xsl
+++ b/blocks/eda-frontend/public/geometry.xsl
@@ -17,12 +17,19 @@
<xsl:template name="get-port">
<xsl:param name="style" />
+ <xsl:variable name="first" select="substring-before($style, ';')" />
<xsl:choose>
- <xsl:when test="contains($style, ';')">
- <xsl:value-of select="substring-before($style, ';')" />
+ <xsl:when test="$first = ''">
+ <xsl:value-of select="$style" />
+ </xsl:when>
+ <xsl:when test="not(contains($first, '='))">
+ <xsl:value-of select="$first" />
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="$style" />
+ <xsl:variable name="rest" select="substring-after($style, ';')" />
+ <xsl:call-template name="get-port">
+ <xsl:with-param name="style" select="$rest" />
+ </xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>