Ignore:
Timestamp:
Jul 2, 2012, 5:17:58 AM (7 years ago)
Author:
julian.reschke@…
Message:

bump up document dates and update to latest version of rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/clean-for-DTD.xslt

    r1522 r1699  
    159159
    160160<xsl:template match="x:ref" mode="cleanup">
    161   <xsl:variable name="val" select="."/>
    162   <xsl:variable name="target" select="//*[@anchor and (@anchor=$val or x:anchor-alias/@value=$val)][not(ancestor::ed:del)]"/>
     161  <xsl:variable name="val" select="normalize-space(.)"/>
     162  <xsl:variable name="target" select="//*[@anchor and (@anchor=$val or x:anchor-alias/@value=$val)][not(ancestor::ed:del)] | //reference/x:source[x:defines=$val]"/>
     163  <xsl:if test="count($target)>1">
     164    <xsl:message terminate="yes">FATAL: multiple x:ref targets found for <xsl:value-of select="$val"/>.</xsl:message>
     165  </xsl:if>
    163166  <xsl:choose>
     167    <xsl:when test="$target/self::x:source">
     168      <!-- drop it-->
     169      <xsl:value-of select="."/>
     170    </xsl:when>
    164171    <xsl:when test="$target">
    165       <xsl:if test="count($target)!=1">
    166         <xsl:message terminate="yes">FATAL: multiple x:ref targets found for <xsl:value-of select="$val"/>.</xsl:message>
    167       </xsl:if>
    168172      <xsl:variable name="current" select="."/>
    169173      <xsl:for-each select="$target">
     
    187191      <xsl:call-template name="warning">
    188192        <xsl:with-param name="inline" select="'no'"/>
    189         <xsl:with-param name="msg">internal link target for '<xsl:value-of select="."/>' does not exist.</xsl:with-param>
     193        <xsl:with-param name="msg">internal link target for '<xsl:value-of select="$val"/>' does not exist.</xsl:with-param>
    190194      </xsl:call-template>
    191195      <xsl:value-of select="."/>
Note: See TracChangeset for help on using the changeset viewer.