Skip to content

Commit

Permalink
remove some debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
sydb committed Oct 7, 2023
1 parent 522e84e commit e5caa3f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions odds/odd2relax.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -541,22 +541,6 @@ of this software, even if advised of the possibility of such damage.
</xsl:template>

<xsl:template match="rng:ref" mode="pass2">
<xsl:if test="$verbose eq 'true' and contains(@name,'anyElement')">
<!-- This entire <if> (defined by line above) is DEBUGging for 631, should not be pushed -->
<xsl:if test="@n">
<xsl:message select="'DEBUG: pass2 is checking ref name='||@name||' n='||@n"/>
</xsl:if>
<xsl:if test="not(@n)">
<xsl:message select="'DEBUG: where did this ref name='||@name||' come from?'"/>
<xsl:message>
<xsl:copy-of select="../.."/>
</xsl:message>
</xsl:if>
<xsl:message>debug: pass2 has: </xsl:message>
<xsl:for-each select="//rng:define/@name">
<xsl:message select="' '||.||' has '||count( key('DEFED',.))"/>
</xsl:for-each>
</xsl:if>
<xsl:choose>
<xsl:when test="parent::rng:choice/parent::rng:start">
<ref xmlns="http://relaxng.org/ns/structure/1.0" name="{@name}"/>
Expand Down

0 comments on commit e5caa3f

Please sign in to comment.