Skip to content

Commit

Permalink
Qualified name checker
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Apr 25, 2024
1 parent 129fa10 commit 7709c1b
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions tools/resolve-paths.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,23 @@
<xsl:with-param name="qname" select="$qname" />
</xsl:call-template>
</xsl:variable>
<xsl:value-of
select="concat(//edmx:Include[@Alias=$namespace or @Namespace=$namespace]
/@Namespace,'.')" />
<xsl:call-template name="name">
<xsl:with-param name="qname" select="." />
</xsl:call-template>
<xsl:variable name="ns"
select="//edmx:Include[@Alias=$namespace or @Namespace=$namespace]
/@Namespace" />
<xsl:choose>
<xsl:when test="$ns">
<xsl:value-of select="concat($ns,'.')" />
<xsl:call-template name="name">
<xsl:with-param name="qname" select="." />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:value-of
select="concat('Invalid namespace in qualified name ',$qname,' in ',generate-id(ancestor-or-self::*[1]))" />
</xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template
Expand Down

0 comments on commit 7709c1b

Please sign in to comment.