1 <?xml version=
"1.0" encoding=
"utf-8"?>
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
13 <error type="" title="">
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">
23 <xsl:value-of select=
"@title"/>
25 <link rel=
"stylesheet" href=
"{$stylesheet}"/>
29 <xsl:copy-of select=
"*"/>
34 <!-- ignore errors that don't match -->
35 <xsl:template match=
"error"/>