Ignore:
Timestamp:
01/05/10 08:59:19 (10 years ago)
Author:
julian.reschke@…
Message:

latest version of rfc2629.xslt, bump up document dates

File:
1 edited

Legend:

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

    r799 r814  
    146146<xsl:template match="x:ref" mode="cleanup">
    147147  <xsl:variable name="val" select="."/>
    148   <xsl:variable name="target" select="//*[@anchor and (@anchor=$val or x:anchor-alias/@value=$val)]"/>
     148  <xsl:variable name="target" select="//*[@anchor and (@anchor=$val or x:anchor-alias/@value=$val)][not(ancestor::ed:del)]"/>
    149149  <xsl:choose>
    150150    <xsl:when test="$target">
     151      <xsl:if test="count($target)!=1">
     152        <xsl:message terminate="yes">FATAL: multiple x:ref targets found for <xsl:value-of select="$val"/>.</xsl:message>
     153      </xsl:if>
    151154      <xsl:variable name="current" select="."/>
    152155      <xsl:for-each select="$target">
     
    247250<!-- extended reference formatting -->
    248251
    249 <xsl:template match="xref[@x:* and not(node())]" mode="cleanup">
     252<xsl:template match="xref[(@x:fmt or @x:sec or @x:rel) and not(node())]" mode="cleanup">
    250253  <xsl:call-template name="insert-iref-for-xref"/>
    251254  <xsl:variable name="node" select="$src//*[@anchor=current()/@target]" />
     
    335338</xsl:template>
    336339
    337 <xsl:template match="xref[@x:fmt and node()]" mode="cleanup">
     340<xsl:template match="xref[(@x:fmt or @x:sec or @x:rel) and node()]" mode="cleanup">
    338341  <xsl:call-template name="insert-iref-for-xref"/>
    339342  <xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.