Follow upstream changes -- Bytestring updates
[git-darcs-import.git] / tools / cgi / xslt / errors.xslt
blob473157dd127832390d2ccf988ed45152bd8e9b68
1 <?xml version="1.0" encoding="utf-8"?>
3 <!--
4 template for converting selected content of errors.xml XML to XHTML. This
5 template expects the following external variables:
7 error-type - the type of error
8 stylesheet - path to the CSS stylesheet
10 the input XML must have the following structure
12 <errors>
13 <error type="" title="">
14 ...
15 </error>
16 </errors>
17 -->
18 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
19 <xsl:template match="error[@type = $error-type]">
20 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
21 <head>
22 <title>
23 <xsl:value-of select="@title"/>
24 </title>
25 <link rel="stylesheet" href="{$stylesheet}"/>
26 </head>
28 <body>
29 <xsl:copy-of select="*"/>
30 </body>
31 </html>
32 </xsl:template>
34 <!-- ignore errors that don't match -->
35 <xsl:template match="error"/>
36 </xsl:stylesheet>