1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
|
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="html" encoding="UTF-8" />
<xsl:param name="topfolder"></xsl:param>
<xsl:template name="linkto">
<xsl:param name="href"/>
<xsl:param name="text"/>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$topfolder"/>
<xsl:value-of select="$href"/>
</xsl:attribute>
<xsl:value-of select="$text"/>
</xsl:element>
</xsl:template>
<xsl:template name="myimg">
<xsl:param name="src"/>
<xsl:param name="alt"/>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="$topfolder"/>
<xsl:value-of select="$src"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$alt"/>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template match="/">
<html>
<head>
<xsl:copy-of select="//head/*" />
</head>
<body>
<table width="100%" valign="top">
<tr valign="top">
<!-- top navigation menu start -->
<td valign="top" align="left" width="210">
<xsl:call-template name="myimg">
<xsl:with-param name="src">images/logo.gif</xsl:with-param>
<xsl:with-param name="alt">XML Security Library</xsl:with-param>
</xsl:call-template>
<p/>
<ul>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">index.html</xsl:with-param>
<xsl:with-param name="text">Home</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">download.html</xsl:with-param>
<xsl:with-param name="text">Download</xsl:with-param>
</xsl:call-template>
</li>
<ul>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">https://github.com/lsh123/xmlsec</xsl:with-param>
<xsl:with-param name="text">GitHub</xsl:with-param>
</xsl:call-template>
</li>
</ul>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">news.html</xsl:with-param>
<xsl:with-param name="text">News</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">documentation.html</xsl:with-param>
<xsl:with-param name="text">Documentation</xsl:with-param>
</xsl:call-template>
</li>
<ul>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">faq.html</xsl:with-param>
<xsl:with-param name="text">FAQ</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">api/xmlsec-notes.html</xsl:with-param>
<xsl:with-param name="text">Tutorial</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">api/xmlsec-reference.html</xsl:with-param>
<xsl:with-param name="text">API reference</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">api/xmlsec-examples.html</xsl:with-param>
<xsl:with-param name="text">Examples</xsl:with-param>
</xsl:call-template>
</li>
</ul>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">xmldsig.html</xsl:with-param>
<xsl:with-param name="text">XML Digital Signature</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">xmlenc.html</xsl:with-param>
<xsl:with-param name="text">XML Encryption</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">c14n.html</xsl:with-param>
<xsl:with-param name="text">XML Canonicalization</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">bugs.html</xsl:with-param>
<xsl:with-param name="text">Reporting Bugs</xsl:with-param>
</xsl:call-template>
</li>
<li><a href="mailing-list.html">Mailing list</a></li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">related.html</xsl:with-param>
<xsl:with-param name="text">Related</xsl:with-param>
</xsl:call-template>
</li>
<li>
<xsl:call-template name="linkto">
<xsl:with-param name="href">authors.html</xsl:with-param>
<xsl:with-param name="text">Authors</xsl:with-param>
</xsl:call-template>
</li>
</ul>
<table width="100%"><tr><td width="15"></td><td>
<a href="http://xmlsoft.org/">
<xsl:call-template name="myimg">
<xsl:with-param name="src">images/libxml2-logo.png</xsl:with-param>
<xsl:with-param name="alt">LibXML2</xsl:with-param>
</xsl:call-template>
</a>
</td></tr><tr><td width="15"></td><td>
<a href="http://xmlsoft.org/XSLT">
<xsl:call-template name="myimg">
<xsl:with-param name="src">images/libxslt-logo.png</xsl:with-param>
<xsl:with-param name="alt">LibXSLT</xsl:with-param>
</xsl:call-template>
</a>
</td></tr><tr><td width="15"></td><td>
<a href="http://www.openssl.org/">
<xsl:call-template name="myimg">
<xsl:with-param name="src">images/openssl-logo.png</xsl:with-param>
<xsl:with-param name="alt">OpenSSL</xsl:with-param>
</xsl:call-template>
</a>
</td></tr>
<!-- links block markers -->
<xsl:comment>Links - start</xsl:comment>
<xsl:comment>Links - end</xsl:comment>
</table>
</td>
<!-- top navigation menu end -->
<td valign="top" >
<table width="80%" valign="top" style="margin-left:10px;">
<tr><td valign="top" align="left" id="xmlsecContent">
<xsl:choose>
<xsl:when test="//td[@id='xmlsecContent']">
<xsl:copy-of select="//td[@id='xmlsecContent']/*" />
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="//body/*" />
</xsl:otherwise>
</xsl:choose>
</td></tr>
</table>
</td>
</tr></table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
|