FDL license & small updates
Annotate for file /link-apidoc.xsl
2009-04-05 tobias 1 <?xml version='1.0'?>
2009-04-14 tobias 2 <!--
14:08:15 ' 3 Copyright 2009 Tobias Rautenkranz <tobias@rautenkranz.ch>
' 4
' 5 Permission is hereby granted, free of charge, to any person
' 6 obtaining a copy of this software and associated documentation
' 7 files (the "Software"), to deal in the Software without
' 8 restriction, including without limitation the rights to use,
' 9 copy, modify, merge, publish, distribute, sublicense, and/or sell
' 10 copies of the Software, and to permit persons to whom the
' 11 Software is furnished to do so, subject to the following
' 12 conditions:
' 13
' 14 The above copyright notice and this permission notice shall be
' 15 included in all copies or substantial portions of the Software.
' 16
' 17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
' 18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
' 19 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
' 20 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
' 21 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
' 22 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
' 23 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
' 24 OTHER DEALINGS IN THE SOFTWARE.
' 25 !-->
' 26
2009-04-05 tobias 27 <xsl:stylesheet version="1.0"
17:58:25 ' 28 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
' 29
' 30 <!-- TODO move common stuff to a function (we need 2.0 for this) !-->
' 31 <xsl:param name="apidoc-baseurl" select="string('../api-doc/')"/>
' 32
' 33 <!-- linkify classname !-->
' 34 <xsl:template match="classname">
' 35 <xsl:call-template name="ulink">
' 36 <xsl:with-param name="url" select="concat($apidoc-baseurl,
' 37 substring-before(current(),':'),
' 38 '/',
' 39 substring-after(current(),':'),
' 40 '-class.html')"/>
' 41 </xsl:call-template>
' 42 </xsl:template>
' 43
' 44 <!-- linkify methodname !-->
' 45 <xsl:template match="methodname">
' 46 <xsl:call-template name="ulink">
' 47 <xsl:with-param name="url" select="concat($apidoc-baseurl,
' 48 substring-before(current(),':'),
' 49 '/',
' 50 substring-after(current(),':'),
' 51 '-function.html')"/>
' 52 </xsl:call-template>
' 53 </xsl:template>
' 54
' 55 <!-- linkify constant !-->
' 56 <xsl:template match="constant">
' 57 <xsl:call-template name="ulink">
' 58 <xsl:with-param name="url" select="concat($apidoc-baseurl,
' 59 substring-before(current(),':'),
' 60 '/',
' 61 translate(substring-after(current(),':'), '.+', ''),
' 62 '-constant.html')"/>
' 63 </xsl:call-template>
' 64 </xsl:template>
' 65
' 66 <!-- linkify package !-->
' 67 <xsl:template match="package">
' 68 <xsl:call-template name="ulink">
' 69 <xsl:with-param name="url" select="concat($apidoc-baseurl,
' 70 substring-after(current(),':'),
' 71 '/',
' 72 translate(substring-after(current(),':'), '.', ''),
' 73 '-package.html')"/>
' 74 </xsl:call-template>
' 75 </xsl:template>
' 76
2009-04-07 tobias 77 <xsl:template match="macro">
11:27:30 ' 78 <xsl:call-template name="ulink">
' 79 <xsl:with-param name="url" select="concat($apidoc-baseurl,
' 80 substring-before(current(),':'),
' 81 '/',
' 82 substring-after(current(),':'),
' 83 '-macro.html')"/>
' 84 </xsl:call-template>
' 85 </xsl:template>
' 86
' 87 <xsl:template match="genericfunction">
' 88 <xsl:call-template name="ulink">
' 89 <xsl:with-param name="url" select="concat($apidoc-baseurl,
' 90 substring-before(current(),':'),
' 91 '/',
' 92 substring-after(current(),':'),
' 93 '-generic-function.html')"/>
' 94 </xsl:call-template>
' 95 </xsl:template>
' 96
2009-04-05 tobias 97 </xsl:stylesheet>