Changeset 814 for rfc2629xslt


Ignore:
Timestamp:
May 1, 2010, 1:59:19 AM (10 years ago)
Author:
julian.reschke@…
Message:

latest version of rfc2629.xslt, bump up document dates

Location:
rfc2629xslt
Files:
3 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>
  • rfc2629xslt/rfc2629xslt.txt

    r799 r814  
    44RFC2629 through XSLT                                          J. Reschke
    55                                                              greenbytes
    6                                                           March 31, 2010
     6                                                              March 2010
    77
    88
Note: See TracChangeset for help on using the changeset viewer.