Ignore:
Timestamp:
Mar 8, 2008, 1:17:34 AM (12 years ago)
Author:
julian.reschke@…
Message:

Update to xml2rfc 1.33 (only affects Makefiles), update to latest version of rfc2629.xslt, change Makefile to allow Saxon to keep line numbers from source files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toHhc.xslt

    r6 r230  
    22    XSLT transformation from RFC2629 XML format to Microsoft HTML Help TOC File
    33
    4     Copyright (c) 2003 Julian F. Reschke (julian.reschke@greenbytes.de)
    5 
    6     placed into the public domain
    7 
    8     change history:
    9 
    10     2003-11-16  julian.reschke@greenbytes.de
    11 
    12     Initial release.
    13    
    14     2003-04-04  julian.reschke@greenbytes.de
    15 
    16     Add updated handling of references sections.
     4    Copyright (c) 2008, Julian Reschke (julian.reschke@greenbytes.de)
     5    All rights reserved.
     6
     7    Redistribution and use in source and binary forms, with or without
     8    modification, are permitted provided that the following conditions are met:
     9
     10    * Redistributions of source code must retain the above copyright notice,
     11      this list of conditions and the following disclaimer.
     12    * Redistributions in binary form must reproduce the above copyright notice,
     13      this list of conditions and the following disclaimer in the documentation
     14      and/or other materials provided with the distribution.
     15    * Neither the name of Julian Reschke nor the names of its contributors
     16      may be used to endorse or promote products derived from this software
     17      without specific prior written permission.
     18
     19    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     20    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     21    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     22    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
     23    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29    POSSIBILITY OF SUCH DAMAGE.
    1730-->
    1831
    1932<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    20                 xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    2133                xmlns:exslt="http://exslt.org/common"
    2234                xmlns:myns="mailto:julian.reschke@greenbytes.de?subject=rcf2629.xslt"
    2335                version="1.0"
    24                 exclude-result-prefixes="msxsl exslt myns"
     36                exclude-result-prefixes="exslt myns"
    2537>
    2638
     
    3042
    3143<xsl:output indent="yes"/>
     44
     45<!-- define exslt:node-set for msxml -->       
     46<msxsl:script language="JScript" implements-prefix="exslt" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
     47  this['node-set'] = function (x) {
     48    return x;
     49  }
     50</msxsl:script>
    3251
    3352<xsl:template match="/" priority="9">
     
    3554  <head>
    3655    <!-- generator -->
    37     <meta name="generator" content="rfc2629toHhc.xslt $Id: rfc2629toHhc.xslt,v 1.13 2005/01/30 15:46:34 jre Exp $" />
     56    <meta name="generator" content="rfc2629toHhc.xslt $Id: rfc2629toHhc.xslt,v 1.14 2008-03-01 14:27:31 jre Exp $" />
    3857  </head>
    3958  <body>
     
    112131
    113132
    114 <xsl:template name="references-toc">
     133<xsl:template name="references-toc-hhc">
    115134
    116135  <!-- distinguish two cases: (a) single references element (process
     
    254273    <!-- emit it -->
    255274    <xsl:choose>
    256       <xsl:when test="function-available('msxsl:node-set')">
    257         <xsl:apply-templates select="msxsl:node-set($preamble)/node()" mode="hhc"/>
    258       </xsl:when>
    259275      <xsl:when test="function-available('exslt:node-set')">
    260276        <xsl:apply-templates select="exslt:node-set($preamble)/node()" mode="hhc"/>
     
    282298
    283299  <xsl:apply-templates mode="hhc"/>
    284   <xsl:call-template name="references-toc"/>>
     300  <xsl:call-template name="references-toc-hhc"/>
    285301</xsl:template>
    286302
Note: See TracChangeset for help on using the changeset viewer.