Changeset 230 for rfc2629xslt/rfc2629toHhc.xslt
- Timestamp:
- 08/03/08 09:17:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toHhc.xslt
r6 r230 2 2 XSLT transformation from RFC2629 XML format to Microsoft HTML Help TOC File 3 3 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. 17 30 --> 18 31 19 32 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 20 xmlns:msxsl="urn:schemas-microsoft-com:xslt"21 33 xmlns:exslt="http://exslt.org/common" 22 34 xmlns:myns="mailto:julian.reschke@greenbytes.de?subject=rcf2629.xslt" 23 35 version="1.0" 24 exclude-result-prefixes=" msxslexslt myns"36 exclude-result-prefixes="exslt myns" 25 37 > 26 38 … … 30 42 31 43 <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> 32 51 33 52 <xsl:template match="/" priority="9"> … … 35 54 <head> 36 55 <!-- generator --> 37 <meta name="generator" content="rfc2629toHhc.xslt $Id: rfc2629toHhc.xslt,v 1.1 3 2005/01/30 15:46:34jre Exp $" />56 <meta name="generator" content="rfc2629toHhc.xslt $Id: rfc2629toHhc.xslt,v 1.14 2008-03-01 14:27:31 jre Exp $" /> 38 57 </head> 39 58 <body> … … 112 131 113 132 114 <xsl:template name="references-toc ">133 <xsl:template name="references-toc-hhc"> 115 134 116 135 <!-- distinguish two cases: (a) single references element (process … … 254 273 <!-- emit it --> 255 274 <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>259 275 <xsl:when test="function-available('exslt:node-set')"> 260 276 <xsl:apply-templates select="exslt:node-set($preamble)/node()" mode="hhc"/> … … 282 298 283 299 <xsl:apply-templates mode="hhc"/> 284 <xsl:call-template name="references-toc "/>>300 <xsl:call-template name="references-toc-hhc"/> 285 301 </xsl:template> 286 302
Note: See TracChangeset
for help on using the changeset viewer.