Skip to content

Commit

Permalink
Bug fix: the warning message very
Browse files Browse the repository at this point in the history
clearly says that if there is more than one declared
namespace with the same URI, only the prefix of the 1st
is used. But the code didn’t actually **do** that. It
tried to use both, and thus failed miserably.
  • Loading branch information
sydb committed Jan 18, 2025
1 parent 8fe3288 commit 392fb4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odds/extract-isosch.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ of this software, even if advised of the possibility of such damage.
||'; using the prefix bound in the first one, '
||'and ignoring the other(s).'"/>
</xsl:if>
<xsl:sequence select="$DECLARED_NSs_with_this_uri/@prefix => normalize-space()||':'"/>
<xsl:sequence select="($DECLARED_NSs_with_this_uri)[1]/@prefix => normalize-space()||':'"/>
</xsl:when>
<xsl:when test="namespace::* = $nsu">
<xsl:value-of select="concat( local-name( namespace::*[ . eq $nsu ][1] ), ':')"/>
Expand Down

0 comments on commit 392fb4d

Please sign in to comment.