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