diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-11-26 01:04:49 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-11-26 01:04:49 +0000 |
commit | bdcc458544b4780223ccccccb8610d75b1f7a960 (patch) | |
tree | e3d493ee59c5aec7d13bfb558d9cd6bbc9d17c30 | |
parent | 059282217d7148b6f947e016eb76551b5acc0f4e (diff) |
enable XSL stylesheet
git-svn-id: file:///home/lennart/svn/public/sse/trunk@64 5fbabb74-0606-0410-a5e4-b5cc6a42724e
-rw-r--r-- | www/index.php | 4 | ||||
-rw-r--r-- | www/style.xsl | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/www/index.php b/www/index.php index a27fd0f..53584be 100644 --- a/www/index.php +++ b/www/index.php @@ -39,14 +39,18 @@ if (isset($_REQUEST['start'])) { $title = 'Source Search Engine'.($q ? ' - '.htmlentities($q) : ''); +header('Content-Type: application/xhtml+xml'); + echo <<<ECHOFORM <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<?xml-stylesheet type="text/xsl" href="style.xsl"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/> <title>$title</title> </head> <body> +<p><b>Better get an XSLT capable browser!</b></p> ECHOFORM; db_connect(); diff --git a/www/style.xsl b/www/style.xsl index ddc387c..ab52a65 100644 --- a/www/style.xsl +++ b/www/style.xsl @@ -3,14 +3,14 @@ <xsl:output method="xml" version="1.0" encoding="iso-8859-15" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/> + <xsl:template match="/"> - <html> + <html> + <head> + <link rel="stylesheet" type="text/css" href="style.css"/> + </head> <body> <p>cool</p> - <xsl:for-each select="html"> - <p>Hallo</p> - </xsl:for-each> - </body> </html> </xsl:template> |