[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Fix docs generator regression in previous commit



On Fri, May 03, 2013 at 04:59:13PM +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange redhat com>
> 
> The previous commit failed to update the XSL to take account
> of fact that in XHTML mode the elements need namespace
> prefixes. This caused every web page to be blank!
> 
> Pushed as a website breaker fix
> 
> ---
>  docs/drvqemu.html.in |  2 +-
>  docs/page.xsl        | 64 +++++++++++++++++++++++++++-------------------------
>  docs/site.xsl        |  1 +
>  3 files changed, 35 insertions(+), 32 deletions(-)
> 

  This commit breaks the doc generation, as a result
    http://www.libvirt.org/html/libvirt-libvirt.html
is empty.

> diff --git a/docs/page.xsl b/docs/page.xsl
> index bc8ea2a..20e4aa6 100644
> --- a/docs/page.xsl
> +++ b/docs/page.xsl
> @@ -1,14 +1,16 @@
>  <?xml version="1.0"?>
>  <xsl:stylesheet
> +  xmlns="http://www.w3.org/1999/xhtml";
> +  xmlns:html="http://www.w3.org/1999/xhtml";
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>    xmlns:exsl="http://exslt.org/common";
> -  exclude-result-prefixes="xsl exsl"
> +  exclude-result-prefixes="xsl exsl html"
>    version="1.0">

  I suspects that exclude-result-prefixes shoudl not add html there,
and that's the problem. Run:
  xsltproc --nonet -o . ./newapi.xsl libvirt-api.xml

in docs before and after the commit, html/libvirt-libvirt.html just
gets the navigation bar as a result. I didn't managed yet to find the
problem and running with the -v logs more than 60MB of output ...


Daniel
-- 
Daniel Veillard      | Open Source and Standards, Red Hat
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | virtualization library  http://libvirt.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]