2 <!-- this stylesheet builds the API*.html , it works based on libxml2-refs.xml
4 <xsl:stylesheet version=
"1.0"
5 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
6 xmlns:
exsl=
"http://exslt.org/common"
7 extension-element-prefixes=
"exsl"
8 exclude-result-prefixes=
"exsl">
10 <!-- Import the rest of the site stylesheets -->
11 <xsl:import href=
"site.xsl"/>
13 <!-- Generate XHTML-1.0 transitional -->
14 <xsl:output method=
"xml" encoding=
"UTF-8" indent=
"yes"
15 doctype-public=
"-//W3C//DTD XHTML 1.0 Transitional//EN"
16 doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
18 <xsl:variable name=
"href_base" select=
"''"/>
20 <xsl:template name=
"statistics">
21 <h2> weekly statistics:
</h2>
22 <p><xsl:value-of select=
"@total"/> total words,
23 <xsl:value-of select=
"@uniq"/> uniq words.
</p>
24 <p> Top
<xsl:value-of select=
"@nr"/> queries:
</p>
27 <xsl:template match=
"query">
28 <br/><a href=
"search.php?query={string(.)}"><xsl:value-of
29 select=
"string(.)"/></a>
30 <xsl:text> </xsl:text><xsl:value-of select=
"@count"/> times.
33 <xsl:template match=
"queries">
34 <xsl:variable name=
"date" select=
"@date"/>
35 <xsl:variable name=
"title">Search statistics for
<xsl:value-of select=
"$date"/></xsl:variable>
36 <xsl:document href=
"searches.html" method=
"xml" encoding=
"UTF-8"
37 doctype-public=
"-//W3C//DTD XHTML 1.0 Transitional//EN"
38 doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
41 <xsl:call-template name=
"style"/>
42 <xsl:element name=
"title">
43 <xsl:value-of select=
"$title"/>
46 <body bgcolor=
"#8b7765" text=
"#000000" link=
"#a06060" vlink=
"#000000">
47 <xsl:call-template name=
"titlebox">
48 <xsl:with-param name=
"title" select=
"$title"/>
50 <table border=
"0" cellpadding=
"4" cellspacing=
"0" width=
"100%" align=
"center">
52 <td bgcolor=
"#8b7765">
53 <table border=
"0" cellspacing=
"0" cellpadding=
"2" width=
"100%">
55 <td valign=
"top" width=
"200" bgcolor=
"#8b7765">
56 <xsl:call-template name=
"toc"/>
58 <td valign=
"top" bgcolor=
"#8b7765">
59 <table border=
"0" cellspacing=
"0" cellpadding=
"1" width=
"100%">
62 <table border=
"0" cellspacing=
"0" cellpadding=
"1" width=
"100%" bgcolor=
"#000000">
65 <table border=
"0" cellpadding=
"3" cellspacing=
"1" width=
"100%">
67 <td bgcolor=
"#fffacd">
68 <xsl:call-template name=
"statistics"/>
70 <xsl:apply-templates select=
"query"/>
72 <p><a href=
"{$href_base}bugs.html">Daniel Veillard
</a></p>
93 <xsl:template match=
"/">
94 <xsl:apply-templates select=
"queries"/>