]> xenbits.xensource.com Git - libvirt.git/commitdiff
Repair the search on libvirt.org
authorDaniel Veillard <veillard@redhat.com>
Thu, 12 Sep 2013 09:18:32 +0000 (17:18 +0800)
committerDaniel Veillard <veillard@redhat.com>
Thu, 12 Sep 2013 09:18:32 +0000 (17:18 +0800)
First make sure that the input is xhtml as the stylesheets expect
namespaced element, then use a span element instead of a as a
is treated specially, finally adjust the makefile to check for
the new span element and replace it with the PHP code

docs/Makefile.am
docs/search.php.in

index a76e06824d08ba5892591331254d50c857822ce5..c6a3eadc958b626fe8b5af47fd538f64801fd05c 100644 (file)
@@ -235,7 +235,7 @@ internals/%.html.tmp: internals/%.html.in subsite.xsl page.xsl sitemap.html.in
 %.php: %.php.tmp %.php.code.in
        @if [ -x $(XSLTPROC) ] ; then \
          echo "Scripting $@"; \
-           sed -e '/<a id="php_placeholder"><\/a>/r '"$(srcdir)/$@.code.in" \
+           sed -e '/<span id="php_placeholder"><\/span>/r '"$(srcdir)/$@.code.in" \
            -e /php_placeholder/d < $@.tmp > $(srcdir)/$@ \
            || { rm $(srcdir)/$@ && exit 1; }; fi
 
index ee8f4a3eda03bdbb8ad3f7312017c6ab23dc6bf5..3e1fea253575dd7647736773e393d681824bc5bd 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0"?>
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
   <body>
     <h1>Search the documentation on Libvirt.org</h1>
 
@@ -9,7 +10,7 @@
     it simply provide a set of keywords:
     </p>
 
-<a id="php_placeholder"/>
+<span id="php_placeholder"/>
 
     <img src="libvirtLogo.png" alt="libvirt Logo" />