[Trad] [svn:pgfr] r1136 - in traduc: branches/bv81x/manuel branches/bv81x/manuel/stylesheets branches/bv81x/manuel/stylesheets/xhtml branches/bv82x/manuel branches/bv82x/manuel/stylesheets branches/bv82x/manuel/stylesheets/xhtml trunk/postgresql trunk/postgresql/stylesheets trunk/postgresql/stylesheets/xhtml

admin at listes.postgresql.fr admin at listes.postgresql.fr
Jeu 11 Sep 09:02:28 CEST 2008


Author: gleu
Date: 2008-09-11 09:02:27 +0200 (Thu, 11 Sep 2008)
New Revision: 1136

Added:
   traduc/branches/bv81x/manuel/stylesheets/pg-chunk-common.xsl
   traduc/branches/bv81x/manuel/stylesheets/pg-chunked-web.xsl
   traduc/branches/bv81x/manuel/stylesheets/pg-chunked2-web.xsl
   traduc/branches/bv81x/manuel/stylesheets/xhtml/pg-navigational-web.xsl
   traduc/branches/bv82x/manuel/stylesheets/pg-chunk-common.xsl
   traduc/branches/bv82x/manuel/stylesheets/pg-chunked-web.xsl
   traduc/branches/bv82x/manuel/stylesheets/pg-chunked2-web.xsl
   traduc/branches/bv82x/manuel/stylesheets/xhtml/pg-navigational-web.xsl
   traduc/trunk/postgresql/stylesheets/pg-chunk-common.xsl
   traduc/trunk/postgresql/stylesheets/pg-chunked-web.xsl
   traduc/trunk/postgresql/stylesheets/pg-chunked2-web.xsl
   traduc/trunk/postgresql/stylesheets/xhtml/pg-navigational-web.xsl
Modified:
   traduc/branches/bv81x/manuel/Makefile
   traduc/branches/bv82x/manuel/Makefile
   traduc/trunk/postgresql/Makefile
Log:
Nouvelle cible de g?\195?\169n?\195?\169ration (webhtml) pour g?\195?\169n?\195?\169rer une documentation
int?\195?\169grable au nouveau site pgfr.org.


Modified: traduc/branches/bv81x/manuel/Makefile
===================================================================
--- traduc/branches/bv81x/manuel/Makefile	2008-09-10 23:09:15 UTC (rev 1135)
+++ traduc/branches/bv81x/manuel/Makefile	2008-09-11 07:02:27 UTC (rev 1136)
@@ -3,6 +3,7 @@
 
 BASEDIR := $(HOME)/pgsql-$(VERSION)-fr
 HTM_OUTPUT := pgsql-$(VERSION)-fr
+WEB_OUTPUT := web-$(VERSION)-fr
 TGZ_OUTPUT := pg$(VER).tar.gz
 ZIP_OUTPUT := pg$(VER).zip
 PDF_OUTPUT := pg$(VER).pdf
@@ -17,7 +18,7 @@
 VPATH = $(BASEDIR):$(BASEDIR)/ref
 src = *.xml ref/*.xml
 
-all: html pdf manpages INSTALL.html INSTALL.txt
+all: html webhtml pdf manpages INSTALL.html INSTALL.txt
 
 html: index.html
 index.html: $(src)
@@ -59,6 +60,33 @@
 	xsltproc --nonet --output $(BASEDIR)/pg-pdf.fo stylesheets/pg-pdf.xsl \
 		$(BASEDIR)/pg-pdf.xml
 
+webhtml: $(src)
+	[ -d $(BASEDIR)/$(WEB_OUTPUT) ] || mkdir -p $(BASEDIR)/$(WEB_OUTPUT)
+	xsltproc --xinclude --nonet -stringparam profile.condition html \
+		-stringparam  profile.attribute  "standalone" -stringparam  profile.value  "no" \
+		-stringparam chunk.quietly $(CHUNK_QUIET) \
+		-stringparam use.id.as.filename "yes" \
+		-stringparam base.dir $(BASEDIR)/$(WEB_OUTPUT)/ \
+		stylesheets/pg-chunked-web.xsl postgres.xml
+
+	[ -d $(BASEDIR)/$(WEB_OUTPUT)/stylesheets ] || mkdir $(BASEDIR)/$(WEB_OUTPUT)/stylesheets
+	cp stylesheets/*.css $(BASEDIR)/$(WEB_OUTPUT)/stylesheets
+
+	[ -d $(BASEDIR)/$(WEB_OUTPUT)/images ] || mkdir $(BASEDIR)/$(WEB_OUTPUT)/images
+	cp img/*.png $(BASEDIR)/$(WEB_OUTPUT)/images
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s at ../stylesheets at stylesheets@g" *.html
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s at ../images at images@g" *.html
+
+	for filename in `find $(BASEDIR)/$(WEB_OUTPUT) -name "*.html"`; do \
+	  recode iso-8859-15..utf-8 $$filename; \
+	  tidy -config tidy.conf $$filename; \
+	  true; \
+	  sed -i -e "s at text/html at application/xhtml+xml at g" $$filename; \
+	done;
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s@</body>@</body><script type=\"text/javascript\">var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\"); document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\")); </script> <script type=\"text/javascript\"> var pageTracker = _gat._getTracker(\"UA-140513-1\"); pageTracker._initData(); pageTracker._trackPageview(); </script>@g" *.html
+
+	test -x $(shell which notify-send) && notify-send "Documentation PostgreSQL" "Generation HTML web terminee !"
+
 pdf: $(PDF_OUTPUT)
 $(PDF_OUTPUT): $(src)
 	[ -d $(BASEDIR)/$(HTM_OUTPUT) ] || mkdir -p $(BASEDIR)/$(HTM_OUTPUT)

Added: traduc/branches/bv81x/manuel/stylesheets/pg-chunk-common.xsl
===================================================================
--- traduc/branches/bv81x/manuel/stylesheets/pg-chunk-common.xsl	                        (rev 0)
+++ traduc/branches/bv81x/manuel/stylesheets/pg-chunk-common.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--This file was created automatically by html2xhtml-->
+<!--from the HTML stylesheets.-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl cf ng db">
+
+<xsl:template name="chunk-element-content">
+  <xsl:param name="prev"/>
+  <xsl:param name="next"/>
+  <xsl:param name="nav.context"/>
+  <xsl:param name="content">
+    <xsl:apply-imports/>
+  </xsl:param>
+
+  <xsl:call-template name="user.preroot"/>
+
+  <html>
+    <xsl:call-template name="html.head">
+      <xsl:with-param name="prev" select="$prev"/>
+      <xsl:with-param name="next" select="$next"/>
+    </xsl:call-template>
+
+    <body>
+      <xsl:call-template name="body.attributes"/>
+<div id="top">
+  <div id="pgHeader">
+    <span id="pgHeaderLogoLeft">
+      <a href="/" title="PostgreSQL"><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_left.png" width="230" height="80" alt="PostgreSQL" /></a>
+    </span>
+    <span id="pgHeaderLogoRight">
+      <a href="/" title="La base de donnees la plus sophistiquee au monde."><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_right.png" width="210" height="80" alt="La base de donnees la plus sophistiquee au monde." /></a>
+    </span>
+  </div>
+</div>
+<div class="pgTopNav">
+  <div class="pgTopNavLeft"> 
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_lft.png" width="7" height="23" alt="" />
+  </div>
+  <div class="pgTopNavRight">
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_rgt.png" width="7" height="23" alt="" />
+  </div>
+  <ul class="pgTopNavList">
+   <li> <a href="http://babar.postgresql.fr/~guillaume/dotclear/" title="Lire les actualites">Actualites</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/docspgfr" title="Lire la documentation officielle">Documentation</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/fluxbb/" title="Pour poser des questions">Forums</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/wiki/" title="La vie de l'association">Wiki de l'association</a></li>
+   <li> <a href="http://planete.postgresql.fr" title="La planete francophone sur PostgreSQL">Planete</a></li>
+  </ul>
+</div>
+<div id="pgContent">
+  <div id="pgSideWrap">
+    <div id="pgSideNav">
+      <form method="post" action="search.php">
+        <div>
+          <h2><label for="q">Rechercher</label></h2>
+          <input type='hidden' id='v' name='v' value='803' />
+          <input id="q" name="q" type="text" size="15" maxlength="255" onfocus="if( this.value=='Rechercher' ) this.value='';" value="Rechercher" accesskey="r" /><input id="submit" name="submit" type="submit" value="Rechercher" />
+        </div>
+      </form>
+    </div>
+  </div>
+
+  <div id="pgContentWrap">
+    <div id="pgContentNav">
+      <xsl:call-template name="user.header.content"/>
+
+      <xsl:call-template name="footer.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+        <xsl:with-param name="nav.context" select="$nav.context"/>
+      </xsl:call-template>
+
+      <xsl:copy-of select="$content"/>
+    </div>
+  </div>
+</div>
+    </body>
+  </html>
+  <xsl:value-of select="$chunk.append"/>
+</xsl:template>
+
+</xsl:stylesheet>
+<?xml version="1.0" encoding="ASCII"?>
+<!--This file was created automatically by html2xhtml-->
+<!--from the HTML stylesheets.-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl cf ng db">
+
+<xsl:template name="chunk-element-content">
+  <xsl:param name="prev"/>
+  <xsl:param name="next"/>
+  <xsl:param name="nav.context"/>
+  <xsl:param name="content">
+    <xsl:apply-imports/>
+  </xsl:param>
+
+  <xsl:call-template name="user.preroot"/>
+
+  <html>
+    <xsl:call-template name="html.head">
+      <xsl:with-param name="prev" select="$prev"/>
+      <xsl:with-param name="next" select="$next"/>
+    </xsl:call-template>
+
+    <body>
+      <xsl:call-template name="body.attributes"/>
+<div id="top">
+  <div id="pgHeader">
+    <span id="pgHeaderLogoLeft">
+      <a href="/" title="PostgreSQL"><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_left.png" width="230" height="80" alt="PostgreSQL" /></a>
+    </span>
+    <span id="pgHeaderLogoRight">
+      <a href="/" title="La base de donnees la plus sophistiquee au monde."><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_right.png" width="210" height="80" alt="La base de donnees la plus sophistiquee au monde." /></a>
+    </span>
+  </div>
+</div>
+<div class="pgTopNav">
+  <div class="pgTopNavLeft"> 
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_lft.png" width="7" height="23" alt="" />
+  </div>
+  <div class="pgTopNavRight">
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_rgt.png" width="7" height="23" alt="" />
+  </div>
+  <ul class="pgTopNavList">
+   <li> <a href="http://babar.postgresql.fr/~guillaume/dotclear/" title="Lire les actualites">Actualites</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/docspgfr" title="Lire la documentation officielle">Documentation</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/fluxbb/" title="Pour poser des questions">Forums</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/wiki/" title="La vie de l'association">Wiki de l'association</a></li>
+   <li> <a href="http://planete.postgresql.fr" title="La planete francophone sur PostgreSQL">Planete</a></li>
+  </ul>
+</div>
+<div id="pgContent">
+  <div id="pgSideWrap">
+    <div id="pgSideNav">
+      <form method="post" action="search.php">
+        <div>
+          <h2><label for="q">Rechercher</label></h2>
+          <input type='hidden' id='v' name='v' value='803' />
+          <input id="q" name="q" type="text" size="15" maxlength="255" onfocus="if( this.value=='Rechercher' ) this.value='';" value="Rechercher" accesskey="r" /><input id="submit" name="submit" type="submit" value="Rechercher" />
+        </div>
+      </form>
+    </div>
+  </div>
+
+  <div id="pgContentWrap">
+    <div id="pgContentNav">
+      <xsl:call-template name="user.header.content"/>
+
+      <xsl:call-template name="footer.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+        <xsl:with-param name="nav.context" select="$nav.context"/>
+      </xsl:call-template>
+
+      <xsl:copy-of select="$content"/>
+    </div>
+  </div>
+</div>
+    </body>
+  </html>
+  <xsl:value-of select="$chunk.append"/>
+</xsl:template>
+
+</xsl:stylesheet>

Added: traduc/branches/bv81x/manuel/stylesheets/pg-chunked-web.xsl
===================================================================
--- traduc/branches/bv81x/manuel/stylesheets/pg-chunked-web.xsl	                        (rev 0)
+++ traduc/branches/bv81x/manuel/stylesheets/pg-chunked-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,78 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+  <xsl:import href="pg-chunked2-web.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/chunk-common.xsl"/>
+  <xsl:import href="pg-chunk-common.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/manifest.xsl"/>
+
+
+    <!--  From the original chunk.xsl file:
+
+    Why is chunk-code now xsl:included?
+
+    Suppose you want to customize *both* the chunking algorithm used *and* the
+    presentation of some elements that may be chunks. In order to do that, you
+    must get the order of imports "just right". The answer is to make your own
+    copy of this file, where you replace the initial import of "docbook.xsl"
+    with an import of your own base.xsl (that does its own import of docbook.xsl).
+
+    Put the templates for changing the presentation of elements in your base.xsl.
+
+    Put the templates that control chunking after the include of chunk-code.xsl.
+
+    Voila! (Man I hope we can do this better in XSLT 2.0)  -->
+
+  <xsl:import href="/opt/docbook-xsl/xhtml/profile-chunk-code.xsl"/>
+
+    <!-- Including our others customized chunks templates -->
+  <xsl:include href="xhtml/pg-legalnotice.xsl"/>
+  <xsl:include href="xhtml/pg-index.xsl"/>
+  <xsl:include href="xhtml/pg-navigational-web.xsl"/>
+
+<xsl:param name="refentry.generate.name" select="0"></xsl:param>
+<xsl:param name="refentry.generate.title" select="1"></xsl:param>
+
+</xsl:stylesheet>
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+  <xsl:import href="pg-chunked2-web.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/chunk-common.xsl"/>
+  <xsl:import href="pg-chunk-common.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/manifest.xsl"/>
+
+
+    <!--  From the original chunk.xsl file:
+
+    Why is chunk-code now xsl:included?
+
+    Suppose you want to customize *both* the chunking algorithm used *and* the
+    presentation of some elements that may be chunks. In order to do that, you
+    must get the order of imports "just right". The answer is to make your own
+    copy of this file, where you replace the initial import of "docbook.xsl"
+    with an import of your own base.xsl (that does its own import of docbook.xsl).
+
+    Put the templates for changing the presentation of elements in your base.xsl.
+
+    Put the templates that control chunking after the include of chunk-code.xsl.
+
+    Voila! (Man I hope we can do this better in XSLT 2.0)  -->
+
+  <xsl:import href="/opt/docbook-xsl/xhtml/profile-chunk-code.xsl"/>
+
+    <!-- Including our others customized chunks templates -->
+  <xsl:include href="xhtml/pg-legalnotice.xsl"/>
+  <xsl:include href="xhtml/pg-index.xsl"/>
+  <xsl:include href="xhtml/pg-navigational-web.xsl"/>
+
+<xsl:param name="refentry.generate.name" select="0"></xsl:param>
+<xsl:param name="refentry.generate.title" select="1"></xsl:param>
+
+</xsl:stylesheet>

Added: traduc/branches/bv81x/manuel/stylesheets/pg-chunked2-web.xsl
===================================================================
--- traduc/branches/bv81x/manuel/stylesheets/pg-chunked2-web.xsl	                        (rev 0)
+++ traduc/branches/bv81x/manuel/stylesheets/pg-chunked2-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,130 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- We use XHTML -->
+  <xsl:import href="/opt/docbook-xsl/xhtml/docbook.xsl"/>
+  <xsl:param name="chunker.output.encoding" select="'ISO-8859-15'"/>
+
+
+    <!-- Including our others customized elements templates -->
+  <xsl:include href="xhtml/pg-admon.xsl"/>
+  <xsl:include href="xhtml/pg-sections.xsl"/>
+  <xsl:include href="xhtml/pg-mixed.xsl"/>
+  <xsl:include href="xhtml/pg-titles.xsl"/>
+  <xsl:include href="xhtml/pg-toc.xsl"/>
+  <!--<xsl:include href="xhtml/pg-xref.xsl"/>-->
+
+    <!-- The CSS Stylesheet -->
+  <xsl:param name="html.stylesheet" select="'../stylesheets/fixed.css'"/>
+  <xsl:template name='user.head.content'>
+     <link rel="stylesheet" href="../stylesheets/pg-print.css" type="text/css" media="print"/>
+     <link rel="search" type="application/opensearchdescription+xml" title="Docs: V 8.2" href="http://docs.postgresqlfr.org/addon/pgfr-docs82.xml" />
+     <!--[if lt IE 7.]>
+       <script defer type="text/javascript" src="stylesheets/pngfix.js"></script>
+     <![endif]-->     
+  </xsl:template>
+
+  <xsl:template name="breadcrumbs">
+    <xsl:param name="this.node" select="."/>
+    <div class="breadcrumbs">
+      <xsl:for-each select="$this.node/ancestor::*">
+        <span class="breadcrumb-link">
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="object" select="."/>
+                <xsl:with-param name="context" select="$this.node"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:apply-templates select="." mode="title.markup"/>
+          </a>
+        </span>
+        <xsl:text> &gt; </xsl:text>
+      </xsl:for-each>
+      <!-- And display the current node, but not as a link -->
+      <span class="breadcrumb-node">
+        <xsl:apply-templates select="$this.node" mode="title.markup"/>
+      </span>
+    </div>
+  </xsl:template>
+  
+  <xsl:template name="user.header.content">
+    <xsl:call-template name="breadcrumbs"/>
+  </xsl:template>
+
+    <!-- Dropping some unwanted style attributes -->
+  <xsl:param name="ulink.target" select="''"></xsl:param>
+  <xsl:param name="css.decoration" select="0"></xsl:param>
+
+    <!-- No XML declaration -->
+  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
+
+</xsl:stylesheet>
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- We use XHTML -->
+  <xsl:import href="/opt/docbook-xsl/xhtml/docbook.xsl"/>
+  <xsl:param name="chunker.output.encoding" select="'ISO-8859-15'"/>
+
+
+    <!-- Including our others customized elements templates -->
+  <xsl:include href="xhtml/pg-admon.xsl"/>
+  <xsl:include href="xhtml/pg-sections.xsl"/>
+  <xsl:include href="xhtml/pg-mixed.xsl"/>
+  <xsl:include href="xhtml/pg-titles.xsl"/>
+  <xsl:include href="xhtml/pg-toc.xsl"/>
+  <!--<xsl:include href="xhtml/pg-xref.xsl"/>-->
+
+    <!-- The CSS Stylesheet -->
+  <xsl:param name="html.stylesheet" select="'../stylesheets/fixed.css'"/>
+  <xsl:template name='user.head.content'>
+     <link rel="stylesheet" href="../stylesheets/pg-print.css" type="text/css" media="print"/>
+     <link rel="search" type="application/opensearchdescription+xml" title="Docs: V 8.2" href="http://docs.postgresqlfr.org/addon/pgfr-docs82.xml" />
+     <!--[if lt IE 7.]>
+       <script defer type="text/javascript" src="stylesheets/pngfix.js"></script>
+     <![endif]-->     
+  </xsl:template>
+
+  <xsl:template name="breadcrumbs">
+    <xsl:param name="this.node" select="."/>
+    <div class="breadcrumbs">
+      <xsl:for-each select="$this.node/ancestor::*">
+        <span class="breadcrumb-link">
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="object" select="."/>
+                <xsl:with-param name="context" select="$this.node"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:apply-templates select="." mode="title.markup"/>
+          </a>
+        </span>
+        <xsl:text> &gt; </xsl:text>
+      </xsl:for-each>
+      <!-- And display the current node, but not as a link -->
+      <span class="breadcrumb-node">
+        <xsl:apply-templates select="$this.node" mode="title.markup"/>
+      </span>
+    </div>
+  </xsl:template>
+  
+  <xsl:template name="user.header.content">
+    <xsl:call-template name="breadcrumbs"/>
+  </xsl:template>
+
+    <!-- Dropping some unwanted style attributes -->
+  <xsl:param name="ulink.target" select="''"></xsl:param>
+  <xsl:param name="css.decoration" select="0"></xsl:param>
+
+    <!-- No XML declaration -->
+  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
+
+</xsl:stylesheet>

Added: traduc/branches/bv81x/manuel/stylesheets/xhtml/pg-navigational-web.xsl
===================================================================
--- traduc/branches/bv81x/manuel/stylesheets/xhtml/pg-navigational-web.xsl	                        (rev 0)
+++ traduc/branches/bv81x/manuel/stylesheets/xhtml/pg-navigational-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,502 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- Dropping the HEAD links -->
+  <xsl:template name="html.head">
+    <head>
+      <xsl:call-template name="system.head.content"/>
+      <xsl:call-template name="head.content"/>
+      <xsl:call-template name="user.head.content"/>
+    </head>
+  </xsl:template>
+
+    <!-- Header Navigation-->
+  <xsl:template name="header.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or (count($up) &gt; 0
+            and generate-id($up) != generate-id($home)) or count($next) &gt; 0"/>
+    <xsl:if test="$row and $home != .">
+      <div class="navheader">
+        <xsl:if test="$home != .">
+          <div class="headertitles">
+            <h4>
+              <xsl:apply-templates select="$home" mode="object.title.markup"/>
+              <xsl:text> - </xsl:text>
+              <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
+            </h4>
+            <xsl:if test="$up != $home">
+              <h3>
+                <xsl:apply-templates select="$up" mode="object.title.markup"/>
+              </h3>
+            </xsl:if>
+          </div>
+        </xsl:if>
+        <ul class="headerlinks">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+            <li class="prev">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'prev'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$prev/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+          <xsl:if test="count($next)&gt;0">
+            <li class="next">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'next'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+            <li class="up">
+              <xsl:if test="count($up)&gt;0 and $up != $home">
+                <a accesskey="u">
+                  <xsl:attribute name="href">
+                    <xsl:call-template name="href.target">
+                      <xsl:with-param name="object" select="$up"/>
+                    </xsl:call-template>
+                  </xsl:attribute>
+                  <xsl:attribute name="title">
+                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
+                  </xsl:attribute>
+                  <xsl:call-template name="navig.content">
+                    <xsl:with-param name="direction" select="'up'"/>
+                  </xsl:call-template>
+                </a>
+              </xsl:if>
+              <xsl:text>.</xsl:text>
+            </li>
+          <li class="home">
+            <a accesskey="h">
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="object" select="$home"/>
+                </xsl:call-template>
+              </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:value-of select="$home/bookinfo/title"/>
+                  <xsl:text> - </xsl:text>
+                  <xsl:value-of select="$home/bookinfo/subtitle"/>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'home'"/>
+                </xsl:call-template>
+            </a>
+          </li>
+        </ul>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+    <!-- Footer Navigation-->
+  <xsl:template name="footer.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or count($up) &gt; 0
+            or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
+    <xsl:if test="$row">
+      <div class="navfooter">
+        <table summary="Barre de navigation">
+          <tr>
+          <!-- Précédent -->
+          <td class="left">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+              <img src="images/prev.png" alt="Précédent" />
+              <xsl:choose>
+                <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                  <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:value-of select="$prev/title"/>
+                </xsl:otherwise>
+              </xsl:choose>
+              </a>
+          </xsl:if>
+          </td>
+            <!-- Suivant -->
+            <td class="right">
+            <xsl:if test="count($next)&gt;0">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+                <img src="images/next.png" alt="Suivant" />
+                </a>
+          </xsl:if>
+          </td>
+          </tr>
+        </table>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- Dropping the HEAD links -->
+  <xsl:template name="html.head">
+    <head>
+      <xsl:call-template name="system.head.content"/>
+      <xsl:call-template name="head.content"/>
+      <xsl:call-template name="user.head.content"/>
+    </head>
+  </xsl:template>
+
+    <!-- Header Navigation-->
+  <xsl:template name="header.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or (count($up) &gt; 0
+            and generate-id($up) != generate-id($home)) or count($next) &gt; 0"/>
+    <xsl:if test="$row and $home != .">
+      <div class="navheader">
+        <xsl:if test="$home != .">
+          <div class="headertitles">
+            <h4>
+              <xsl:apply-templates select="$home" mode="object.title.markup"/>
+              <xsl:text> - </xsl:text>
+              <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
+            </h4>
+            <xsl:if test="$up != $home">
+              <h3>
+                <xsl:apply-templates select="$up" mode="object.title.markup"/>
+              </h3>
+            </xsl:if>
+          </div>
+        </xsl:if>
+        <ul class="headerlinks">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+            <li class="prev">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'prev'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$prev/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+          <xsl:if test="count($next)&gt;0">
+            <li class="next">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'next'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+            <li class="up">
+              <xsl:if test="count($up)&gt;0 and $up != $home">
+                <a accesskey="u">
+                  <xsl:attribute name="href">
+                    <xsl:call-template name="href.target">
+                      <xsl:with-param name="object" select="$up"/>
+                    </xsl:call-template>
+                  </xsl:attribute>
+                  <xsl:attribute name="title">
+                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
+                  </xsl:attribute>
+                  <xsl:call-template name="navig.content">
+                    <xsl:with-param name="direction" select="'up'"/>
+                  </xsl:call-template>
+                </a>
+              </xsl:if>
+              <xsl:text>.</xsl:text>
+            </li>
+          <li class="home">
+            <a accesskey="h">
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="object" select="$home"/>
+                </xsl:call-template>
+              </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:value-of select="$home/bookinfo/title"/>
+                  <xsl:text> - </xsl:text>
+                  <xsl:value-of select="$home/bookinfo/subtitle"/>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'home'"/>
+                </xsl:call-template>
+            </a>
+          </li>
+        </ul>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+    <!-- Footer Navigation-->
+  <xsl:template name="footer.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or count($up) &gt; 0
+            or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
+    <xsl:if test="$row">
+      <div class="navfooter">
+        <table summary="Barre de navigation">
+          <tr>
+          <!-- Précédent -->
+          <td class="left">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+              <img src="images/prev.png" alt="Précédent" />
+              <xsl:choose>
+                <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                  <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:value-of select="$prev/title"/>
+                </xsl:otherwise>
+              </xsl:choose>
+              </a>
+          </xsl:if>
+          </td>
+            <!-- Suivant -->
+            <td class="right">
+            <xsl:if test="count($next)&gt;0">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+                <img src="images/next.png" alt="Suivant" />
+                </a>
+          </xsl:if>
+          </td>
+          </tr>
+        </table>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>

Modified: traduc/branches/bv82x/manuel/Makefile
===================================================================
--- traduc/branches/bv82x/manuel/Makefile	2008-09-10 23:09:15 UTC (rev 1135)
+++ traduc/branches/bv82x/manuel/Makefile	2008-09-11 07:02:27 UTC (rev 1136)
@@ -3,6 +3,7 @@
 
 BASEDIR := $(HOME)/pgsql-$(VERSION)-fr
 HTM_OUTPUT := pgsql-$(VERSION)-fr
+WEB_OUTPUT := web-$(VERSION)-fr
 TGZ_OUTPUT := pg$(VER).tar.gz
 ZIP_OUTPUT := pg$(VER).zip
 PDF_OUTPUT := pg$(VER).pdf
@@ -16,7 +17,7 @@
 VPATH = $(BASEDIR):$(BASEDIR)/ref
 src = *.xml ref/*.xml
 
-all: html pdf manpages INSTALL.html INSTALL.txt
+all: html webhtml pdf manpages INSTALL.html INSTALL.txt
 
 html: index.html
 index.html: $(src)
@@ -48,6 +49,33 @@
 	cd $(BASEDIR); zip -r $(ZIP_OUTPUT) $(HTM_OUTPUT)
 	mv $(BASEDIR)/$(TGZ_OUTPUT) $(BASEDIR)/$(ZIP_OUTPUT) $(BASEDIR)/$(HTM_OUTPUT)
 
+webhtml: $(src)
+	[ -d $(BASEDIR)/$(WEB_OUTPUT) ] || mkdir -p $(BASEDIR)/$(WEB_OUTPUT)
+	xsltproc --xinclude --nonet -stringparam profile.condition html \
+		-stringparam  profile.attribute  "standalone" -stringparam  profile.value  "no" \
+		-stringparam chunk.quietly $(CHUNK_QUIET) \
+		-stringparam use.id.as.filename "yes" \
+		-stringparam base.dir $(BASEDIR)/$(WEB_OUTPUT)/ \
+		stylesheets/pg-chunked-web.xsl postgres.xml
+
+	[ -d $(BASEDIR)/$(WEB_OUTPUT)/stylesheets ] || mkdir $(BASEDIR)/$(WEB_OUTPUT)/stylesheets
+	cp stylesheets/*.css $(BASEDIR)/$(WEB_OUTPUT)/stylesheets
+
+	[ -d $(BASEDIR)/$(WEB_OUTPUT)/images ] || mkdir $(BASEDIR)/$(WEB_OUTPUT)/images
+	cp img/*.png $(BASEDIR)/$(WEB_OUTPUT)/images
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s at ../stylesheets at stylesheets@g" *.html
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s at ../images at images@g" *.html
+
+	for filename in `find $(BASEDIR)/$(WEB_OUTPUT) -name "*.html"`; do \
+	  recode iso-8859-15..utf-8 $$filename; \
+	  tidy -config tidy.conf $$filename; \
+	  true; \
+	  sed -i -e "s at text/html at application/xhtml+xml at g" $$filename; \
+	done;
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s@</body>@</body><script type=\"text/javascript\">var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\"); document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\")); </script> <script type=\"text/javascript\"> var pageTracker = _gat._getTracker(\"UA-140513-1\"); pageTracker._initData(); pageTracker._trackPageview(); </script>@g" *.html
+
+	test -x $(shell which notify-send) && notify-send "Documentation PostgreSQL" "Generation HTML web terminee !"
+
 pdf: $(PDF_OUTPUT)
 $(PDF_OUTPUT): $(src)
 	[ -d $(BASEDIR)/$(HTM_OUTPUT) ] || mkdir -p $(BASEDIR)/$(HTM_OUTPUT)

Added: traduc/branches/bv82x/manuel/stylesheets/pg-chunk-common.xsl
===================================================================
--- traduc/branches/bv82x/manuel/stylesheets/pg-chunk-common.xsl	                        (rev 0)
+++ traduc/branches/bv82x/manuel/stylesheets/pg-chunk-common.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--This file was created automatically by html2xhtml-->
+<!--from the HTML stylesheets.-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl cf ng db">
+
+<xsl:template name="chunk-element-content">
+  <xsl:param name="prev"/>
+  <xsl:param name="next"/>
+  <xsl:param name="nav.context"/>
+  <xsl:param name="content">
+    <xsl:apply-imports/>
+  </xsl:param>
+
+  <xsl:call-template name="user.preroot"/>
+
+  <html>
+    <xsl:call-template name="html.head">
+      <xsl:with-param name="prev" select="$prev"/>
+      <xsl:with-param name="next" select="$next"/>
+    </xsl:call-template>
+
+    <body>
+      <xsl:call-template name="body.attributes"/>
+<div id="top">
+  <div id="pgHeader">
+    <span id="pgHeaderLogoLeft">
+      <a href="/" title="PostgreSQL"><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_left.png" width="230" height="80" alt="PostgreSQL" /></a>
+    </span>
+    <span id="pgHeaderLogoRight">
+      <a href="/" title="La base de donnees la plus sophistiquee au monde."><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_right.png" width="210" height="80" alt="La base de donnees la plus sophistiquee au monde." /></a>
+    </span>
+  </div>
+</div>
+<div class="pgTopNav">
+  <div class="pgTopNavLeft"> 
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_lft.png" width="7" height="23" alt="" />
+  </div>
+  <div class="pgTopNavRight">
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_rgt.png" width="7" height="23" alt="" />
+  </div>
+  <ul class="pgTopNavList">
+   <li> <a href="http://babar.postgresql.fr/~guillaume/dotclear/" title="Lire les actualites">Actualites</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/docspgfr" title="Lire la documentation officielle">Documentation</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/fluxbb/" title="Pour poser des questions">Forums</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/wiki/" title="La vie de l'association">Wiki de l'association</a></li>
+   <li> <a href="http://planete.postgresql.fr" title="La planete francophone sur PostgreSQL">Planete</a></li>
+  </ul>
+</div>
+<div id="pgContent">
+  <div id="pgSideWrap">
+    <div id="pgSideNav">
+      <form method="post" action="search.php">
+        <div>
+          <h2><label for="q">Rechercher</label></h2>
+          <input type='hidden' id='v' name='v' value='803' />
+          <input id="q" name="q" type="text" size="15" maxlength="255" onfocus="if( this.value=='Rechercher' ) this.value='';" value="Rechercher" accesskey="r" /><input id="submit" name="submit" type="submit" value="Rechercher" />
+        </div>
+      </form>
+    </div>
+  </div>
+
+  <div id="pgContentWrap">
+    <div id="pgContentNav">
+      <xsl:call-template name="user.header.content"/>
+
+      <xsl:call-template name="footer.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+        <xsl:with-param name="nav.context" select="$nav.context"/>
+      </xsl:call-template>
+
+      <xsl:copy-of select="$content"/>
+    </div>
+  </div>
+</div>
+    </body>
+  </html>
+  <xsl:value-of select="$chunk.append"/>
+</xsl:template>
+
+</xsl:stylesheet>

Added: traduc/branches/bv82x/manuel/stylesheets/pg-chunked-web.xsl
===================================================================
--- traduc/branches/bv82x/manuel/stylesheets/pg-chunked-web.xsl	                        (rev 0)
+++ traduc/branches/bv82x/manuel/stylesheets/pg-chunked-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+  <xsl:import href="pg-chunked2-web.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/chunk-common.xsl"/>
+  <xsl:import href="pg-chunk-common.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/manifest.xsl"/>
+
+
+    <!--  From the original chunk.xsl file:
+
+    Why is chunk-code now xsl:included?
+
+    Suppose you want to customize *both* the chunking algorithm used *and* the
+    presentation of some elements that may be chunks. In order to do that, you
+    must get the order of imports "just right". The answer is to make your own
+    copy of this file, where you replace the initial import of "docbook.xsl"
+    with an import of your own base.xsl (that does its own import of docbook.xsl).
+
+    Put the templates for changing the presentation of elements in your base.xsl.
+
+    Put the templates that control chunking after the include of chunk-code.xsl.
+
+    Voila! (Man I hope we can do this better in XSLT 2.0)  -->
+
+  <xsl:import href="/opt/docbook-xsl/xhtml/profile-chunk-code.xsl"/>
+
+    <!-- Including our others customized chunks templates -->
+  <xsl:include href="xhtml/pg-legalnotice.xsl"/>
+  <xsl:include href="xhtml/pg-index.xsl"/>
+  <xsl:include href="xhtml/pg-navigational-web.xsl"/>
+
+<xsl:param name="refentry.generate.name" select="0"></xsl:param>
+<xsl:param name="refentry.generate.title" select="1"></xsl:param>
+
+</xsl:stylesheet>

Added: traduc/branches/bv82x/manuel/stylesheets/pg-chunked2-web.xsl
===================================================================
--- traduc/branches/bv82x/manuel/stylesheets/pg-chunked2-web.xsl	                        (rev 0)
+++ traduc/branches/bv82x/manuel/stylesheets/pg-chunked2-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,65 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- We use XHTML -->
+  <xsl:import href="/opt/docbook-xsl/xhtml/docbook.xsl"/>
+  <xsl:param name="chunker.output.encoding" select="'ISO-8859-15'"/>
+
+
+    <!-- Including our others customized elements templates -->
+  <xsl:include href="xhtml/pg-admon.xsl"/>
+  <xsl:include href="xhtml/pg-sections.xsl"/>
+  <xsl:include href="xhtml/pg-mixed.xsl"/>
+  <xsl:include href="xhtml/pg-titles.xsl"/>
+  <xsl:include href="xhtml/pg-toc.xsl"/>
+  <!--<xsl:include href="xhtml/pg-xref.xsl"/>-->
+
+    <!-- The CSS Stylesheet -->
+  <xsl:param name="html.stylesheet" select="'../stylesheets/fixed.css'"/>
+  <xsl:template name='user.head.content'>
+     <link rel="stylesheet" href="../stylesheets/pg-print.css" type="text/css" media="print"/>
+     <link rel="search" type="application/opensearchdescription+xml" title="Docs: V 8.2" href="http://docs.postgresqlfr.org/addon/pgfr-docs82.xml" />
+     <!--[if lt IE 7.]>
+       <script defer type="text/javascript" src="stylesheets/pngfix.js"></script>
+     <![endif]-->     
+  </xsl:template>
+
+  <xsl:template name="breadcrumbs">
+    <xsl:param name="this.node" select="."/>
+    <div class="breadcrumbs">
+      <xsl:for-each select="$this.node/ancestor::*">
+        <span class="breadcrumb-link">
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="object" select="."/>
+                <xsl:with-param name="context" select="$this.node"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:apply-templates select="." mode="title.markup"/>
+          </a>
+        </span>
+        <xsl:text> &gt; </xsl:text>
+      </xsl:for-each>
+      <!-- And display the current node, but not as a link -->
+      <span class="breadcrumb-node">
+        <xsl:apply-templates select="$this.node" mode="title.markup"/>
+      </span>
+    </div>
+  </xsl:template>
+  
+  <xsl:template name="user.header.content">
+    <xsl:call-template name="breadcrumbs"/>
+  </xsl:template>
+
+    <!-- Dropping some unwanted style attributes -->
+  <xsl:param name="ulink.target" select="''"></xsl:param>
+  <xsl:param name="css.decoration" select="0"></xsl:param>
+
+    <!-- No XML declaration -->
+  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
+
+</xsl:stylesheet>

Added: traduc/branches/bv82x/manuel/stylesheets/xhtml/pg-navigational-web.xsl
===================================================================
--- traduc/branches/bv82x/manuel/stylesheets/xhtml/pg-navigational-web.xsl	                        (rev 0)
+++ traduc/branches/bv82x/manuel/stylesheets/xhtml/pg-navigational-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,251 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- Dropping the HEAD links -->
+  <xsl:template name="html.head">
+    <head>
+      <xsl:call-template name="system.head.content"/>
+      <xsl:call-template name="head.content"/>
+      <xsl:call-template name="user.head.content"/>
+    </head>
+  </xsl:template>
+
+    <!-- Header Navigation-->
+  <xsl:template name="header.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or (count($up) &gt; 0
+            and generate-id($up) != generate-id($home)) or count($next) &gt; 0"/>
+    <xsl:if test="$row and $home != .">
+      <div class="navheader">
+        <xsl:if test="$home != .">
+          <div class="headertitles">
+            <h4>
+              <xsl:apply-templates select="$home" mode="object.title.markup"/>
+              <xsl:text> - </xsl:text>
+              <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
+            </h4>
+            <xsl:if test="$up != $home">
+              <h3>
+                <xsl:apply-templates select="$up" mode="object.title.markup"/>
+              </h3>
+            </xsl:if>
+          </div>
+        </xsl:if>
+        <ul class="headerlinks">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+            <li class="prev">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'prev'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$prev/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+          <xsl:if test="count($next)&gt;0">
+            <li class="next">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'next'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+            <li class="up">
+              <xsl:if test="count($up)&gt;0 and $up != $home">
+                <a accesskey="u">
+                  <xsl:attribute name="href">
+                    <xsl:call-template name="href.target">
+                      <xsl:with-param name="object" select="$up"/>
+                    </xsl:call-template>
+                  </xsl:attribute>
+                  <xsl:attribute name="title">
+                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
+                  </xsl:attribute>
+                  <xsl:call-template name="navig.content">
+                    <xsl:with-param name="direction" select="'up'"/>
+                  </xsl:call-template>
+                </a>
+              </xsl:if>
+              <xsl:text>.</xsl:text>
+            </li>
+          <li class="home">
+            <a accesskey="h">
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="object" select="$home"/>
+                </xsl:call-template>
+              </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:value-of select="$home/bookinfo/title"/>
+                  <xsl:text> - </xsl:text>
+                  <xsl:value-of select="$home/bookinfo/subtitle"/>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'home'"/>
+                </xsl:call-template>
+            </a>
+          </li>
+        </ul>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+    <!-- Footer Navigation-->
+  <xsl:template name="footer.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or count($up) &gt; 0
+            or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
+    <xsl:if test="$row">
+      <div class="navfooter">
+        <table summary="Barre de navigation">
+          <tr>
+          <!-- Précédent -->
+          <td class="left">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+              <img src="images/prev.png" alt="Précédent" />
+              <xsl:choose>
+                <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                  <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:value-of select="$prev/title"/>
+                </xsl:otherwise>
+              </xsl:choose>
+              </a>
+          </xsl:if>
+          </td>
+            <!-- Suivant -->
+            <td class="right">
+            <xsl:if test="count($next)&gt;0">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+                <img src="images/next.png" alt="Suivant" />
+                </a>
+          </xsl:if>
+          </td>
+          </tr>
+        </table>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>

Modified: traduc/trunk/postgresql/Makefile
===================================================================
--- traduc/trunk/postgresql/Makefile	2008-09-10 23:09:15 UTC (rev 1135)
+++ traduc/trunk/postgresql/Makefile	2008-09-11 07:02:27 UTC (rev 1136)
@@ -8,6 +8,7 @@
 
 BASEDIR := $(HOME)/pgsql-$(VERSION)-fr
 HTM_OUTPUT := pgsql-$(VERSION)-fr
+WEB_OUTPUT := web-$(VERSION)-fr
 TGZ_OUTPUT := pg$(VER).tar.gz
 ZIP_OUTPUT := pg$(VER).zip
 PDF_OUTPUT := pg$(VER).pdf
@@ -21,7 +22,7 @@
 VPATH = $(BASEDIR):$(BASEDIR)/ref
 src = *.xml ref/*.xml
 
-all: html pdf manpages INSTALL.html INSTALL.txt
+all: html webhtml pdf manpages INSTALL.html INSTALL.txt
 
 html: index.html
 index.html: $(src)
@@ -54,6 +55,33 @@
 	mv $(BASEDIR)/$(TGZ_OUTPUT) $(BASEDIR)/$(ZIP_OUTPUT) $(BASEDIR)/$(HTM_OUTPUT)
 	test -x $(shell which notify-send) && notify-send "Documentation PostgreSQL" "Generation HTML terminee !"
 
+webhtml: $(src)
+	[ -d $(BASEDIR)/$(WEB_OUTPUT) ] || mkdir -p $(BASEDIR)/$(WEB_OUTPUT)
+	xsltproc --xinclude --nonet -stringparam profile.condition html \
+		-stringparam  profile.attribute  "standalone" -stringparam  profile.value  "no" \
+		-stringparam chunk.quietly $(CHUNK_QUIET) \
+		-stringparam use.id.as.filename "yes" \
+		-stringparam base.dir $(BASEDIR)/$(WEB_OUTPUT)/ \
+		stylesheets/pg-chunked-web.xsl postgres.xml
+
+	[ -d $(BASEDIR)/$(WEB_OUTPUT)/stylesheets ] || mkdir $(BASEDIR)/$(WEB_OUTPUT)/stylesheets
+	cp stylesheets/*.css $(BASEDIR)/$(WEB_OUTPUT)/stylesheets
+
+	[ -d $(BASEDIR)/$(WEB_OUTPUT)/images ] || mkdir $(BASEDIR)/$(WEB_OUTPUT)/images
+	cp img/*.png $(BASEDIR)/$(WEB_OUTPUT)/images
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s at ../stylesheets at stylesheets@g" *.html
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s at ../images at images@g" *.html
+
+	for filename in `find $(BASEDIR)/$(WEB_OUTPUT) -name "*.html"`; do \
+	  recode iso-8859-15..utf-8 $$filename; \
+	  tidy -config tidy.conf $$filename; \
+	  true; \
+	  sed -i -e "s at text/html at application/xhtml+xml at g" $$filename; \
+	done;
+	cd $(BASEDIR)/$(WEB_OUTPUT)/; sed -i -e "s@</body>@</body><script type=\"text/javascript\">var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\"); document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\")); </script> <script type=\"text/javascript\"> var pageTracker = _gat._getTracker(\"UA-140513-1\"); pageTracker._initData(); pageTracker._trackPageview(); </script>@g" *.html
+
+	test -x $(shell which notify-send) && notify-send "Documentation PostgreSQL" "Generation HTML web terminee !"
+
 pdf: $(PDF_OUTPUT)
 $(PDF_OUTPUT): $(src)
 	[ -d $(BASEDIR)/$(HTM_OUTPUT) ] || mkdir -p $(BASEDIR)/$(HTM_OUTPUT)

Added: traduc/trunk/postgresql/stylesheets/pg-chunk-common.xsl
===================================================================
--- traduc/trunk/postgresql/stylesheets/pg-chunk-common.xsl	                        (rev 0)
+++ traduc/trunk/postgresql/stylesheets/pg-chunk-common.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--This file was created automatically by html2xhtml-->
+<!--from the HTML stylesheets.-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl cf ng db">
+
+<xsl:template name="chunk-element-content">
+  <xsl:param name="prev"/>
+  <xsl:param name="next"/>
+  <xsl:param name="nav.context"/>
+  <xsl:param name="content">
+    <xsl:apply-imports/>
+  </xsl:param>
+
+  <xsl:call-template name="user.preroot"/>
+
+  <html>
+    <xsl:call-template name="html.head">
+      <xsl:with-param name="prev" select="$prev"/>
+      <xsl:with-param name="next" select="$next"/>
+    </xsl:call-template>
+
+    <body>
+      <xsl:call-template name="body.attributes"/>
+<div id="top">
+  <div id="pgHeader">
+    <span id="pgHeaderLogoLeft">
+      <a href="/" title="PostgreSQL"><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_left.png" width="230" height="80" alt="PostgreSQL" /></a>
+    </span>
+    <span id="pgHeaderLogoRight">
+      <a href="/" title="La base de donnees la plus sophistiquee au monde."><img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/hdr_right.png" width="210" height="80" alt="La base de donnees la plus sophistiquee au monde." /></a>
+    </span>
+  </div>
+</div>
+<div class="pgTopNav">
+  <div class="pgTopNavLeft"> 
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_lft.png" width="7" height="23" alt="" />
+  </div>
+  <div class="pgTopNavRight">
+    <img src="http://babar.postgresql.fr/~guillaume/dotclear/themes/postgresql/img/nav_rgt.png" width="7" height="23" alt="" />
+  </div>
+  <ul class="pgTopNavList">
+   <li> <a href="http://babar.postgresql.fr/~guillaume/dotclear/" title="Lire les actualites">Actualites</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/docspgfr" title="Lire la documentation officielle">Documentation</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/fluxbb/" title="Pour poser des questions">Forums</a> </li>
+   <li> <a href="http://babar.postgresql.fr/~guillaume/wiki/" title="La vie de l'association">Wiki de l'association</a></li>
+   <li> <a href="http://planete.postgresql.fr" title="La planete francophone sur PostgreSQL">Planete</a></li>
+  </ul>
+</div>
+<div id="pgContent">
+  <div id="pgSideWrap">
+    <div id="pgSideNav">
+      <form method="post" action="search.php">
+        <div>
+          <h2><label for="q">Rechercher</label></h2>
+          <input type='hidden' id='v' name='v' value='803' />
+          <input id="q" name="q" type="text" size="15" maxlength="255" onfocus="if( this.value=='Rechercher' ) this.value='';" value="Rechercher" accesskey="r" /><input id="submit" name="submit" type="submit" value="Rechercher" />
+        </div>
+      </form>
+    </div>
+  </div>
+
+  <div id="pgContentWrap">
+    <div id="pgContentNav">
+      <xsl:call-template name="user.header.content"/>
+
+      <xsl:call-template name="footer.navigation">
+        <xsl:with-param name="prev" select="$prev"/>
+        <xsl:with-param name="next" select="$next"/>
+        <xsl:with-param name="nav.context" select="$nav.context"/>
+      </xsl:call-template>
+
+      <xsl:copy-of select="$content"/>
+    </div>
+  </div>
+</div>
+    </body>
+  </html>
+  <xsl:value-of select="$chunk.append"/>
+</xsl:template>
+
+</xsl:stylesheet>

Added: traduc/trunk/postgresql/stylesheets/pg-chunked-web.xsl
===================================================================
--- traduc/trunk/postgresql/stylesheets/pg-chunked-web.xsl	                        (rev 0)
+++ traduc/trunk/postgresql/stylesheets/pg-chunked-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+  <xsl:import href="pg-chunked2-web.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/chunk-common.xsl"/>
+  <xsl:import href="pg-chunk-common.xsl"/>
+  <xsl:import href="/opt/docbook-xsl/xhtml/manifest.xsl"/>
+
+
+    <!--  From the original chunk.xsl file:
+
+    Why is chunk-code now xsl:included?
+
+    Suppose you want to customize *both* the chunking algorithm used *and* the
+    presentation of some elements that may be chunks. In order to do that, you
+    must get the order of imports "just right". The answer is to make your own
+    copy of this file, where you replace the initial import of "docbook.xsl"
+    with an import of your own base.xsl (that does its own import of docbook.xsl).
+
+    Put the templates for changing the presentation of elements in your base.xsl.
+
+    Put the templates that control chunking after the include of chunk-code.xsl.
+
+    Voila! (Man I hope we can do this better in XSLT 2.0)  -->
+
+  <xsl:import href="/opt/docbook-xsl/xhtml/profile-chunk-code.xsl"/>
+
+    <!-- Including our others customized chunks templates -->
+  <xsl:include href="xhtml/pg-legalnotice.xsl"/>
+  <xsl:include href="xhtml/pg-index.xsl"/>
+  <xsl:include href="xhtml/pg-navigational-web.xsl"/>
+
+<xsl:param name="refentry.generate.name" select="0"></xsl:param>
+<xsl:param name="refentry.generate.title" select="1"></xsl:param>
+
+</xsl:stylesheet>

Added: traduc/trunk/postgresql/stylesheets/pg-chunked2-web.xsl
===================================================================
--- traduc/trunk/postgresql/stylesheets/pg-chunked2-web.xsl	                        (rev 0)
+++ traduc/trunk/postgresql/stylesheets/pg-chunked2-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,65 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- We use XHTML -->
+  <xsl:import href="/opt/docbook-xsl/xhtml/docbook.xsl"/>
+  <xsl:param name="chunker.output.encoding" select="'ISO-8859-15'"/>
+
+
+    <!-- Including our others customized elements templates -->
+  <xsl:include href="xhtml/pg-admon.xsl"/>
+  <xsl:include href="xhtml/pg-sections.xsl"/>
+  <xsl:include href="xhtml/pg-mixed.xsl"/>
+  <xsl:include href="xhtml/pg-titles.xsl"/>
+  <xsl:include href="xhtml/pg-toc.xsl"/>
+  <!--<xsl:include href="xhtml/pg-xref.xsl"/>-->
+
+    <!-- The CSS Stylesheet -->
+  <xsl:param name="html.stylesheet" select="'../stylesheets/fixed.css'"/>
+  <xsl:template name='user.head.content'>
+     <link rel="stylesheet" href="../stylesheets/pg-print.css" type="text/css" media="print"/>
+     <link rel="search" type="application/opensearchdescription+xml" title="Docs: V 8.2" href="http://docs.postgresqlfr.org/addon/pgfr-docs82.xml" />
+     <!--[if lt IE 7.]>
+       <script defer type="text/javascript" src="stylesheets/pngfix.js"></script>
+     <![endif]-->     
+  </xsl:template>
+
+  <xsl:template name="breadcrumbs">
+    <xsl:param name="this.node" select="."/>
+    <div class="breadcrumbs">
+      <xsl:for-each select="$this.node/ancestor::*">
+        <span class="breadcrumb-link">
+          <a>
+            <xsl:attribute name="href">
+              <xsl:call-template name="href.target">
+                <xsl:with-param name="object" select="."/>
+                <xsl:with-param name="context" select="$this.node"/>
+              </xsl:call-template>
+            </xsl:attribute>
+            <xsl:apply-templates select="." mode="title.markup"/>
+          </a>
+        </span>
+        <xsl:text> &gt; </xsl:text>
+      </xsl:for-each>
+      <!-- And display the current node, but not as a link -->
+      <span class="breadcrumb-node">
+        <xsl:apply-templates select="$this.node" mode="title.markup"/>
+      </span>
+    </div>
+  </xsl:template>
+  
+  <xsl:template name="user.header.content">
+    <xsl:call-template name="breadcrumbs"/>
+  </xsl:template>
+
+    <!-- Dropping some unwanted style attributes -->
+  <xsl:param name="ulink.target" select="''"></xsl:param>
+  <xsl:param name="css.decoration" select="0"></xsl:param>
+
+    <!-- No XML declaration -->
+  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
+
+</xsl:stylesheet>

Added: traduc/trunk/postgresql/stylesheets/xhtml/pg-navigational-web.xsl
===================================================================
--- traduc/trunk/postgresql/stylesheets/xhtml/pg-navigational-web.xsl	                        (rev 0)
+++ traduc/trunk/postgresql/stylesheets/xhtml/pg-navigational-web.xsl	2008-09-11 07:02:27 UTC (rev 1136)
@@ -0,0 +1,251 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+    <!-- Dropping the HEAD links -->
+  <xsl:template name="html.head">
+    <head>
+      <xsl:call-template name="system.head.content"/>
+      <xsl:call-template name="head.content"/>
+      <xsl:call-template name="user.head.content"/>
+    </head>
+  </xsl:template>
+
+    <!-- Header Navigation-->
+  <xsl:template name="header.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or (count($up) &gt; 0
+            and generate-id($up) != generate-id($home)) or count($next) &gt; 0"/>
+    <xsl:if test="$row and $home != .">
+      <div class="navheader">
+        <xsl:if test="$home != .">
+          <div class="headertitles">
+            <h4>
+              <xsl:apply-templates select="$home" mode="object.title.markup"/>
+              <xsl:text> - </xsl:text>
+              <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
+            </h4>
+            <xsl:if test="$up != $home">
+              <h3>
+                <xsl:apply-templates select="$up" mode="object.title.markup"/>
+              </h3>
+            </xsl:if>
+          </div>
+        </xsl:if>
+        <ul class="headerlinks">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+            <li class="prev">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'prev'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$prev/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+          <xsl:if test="count($next)&gt;0">
+            <li class="next">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'next'"/>
+                </xsl:call-template>
+              </a>
+              <p>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+              </p>
+            </li>
+          </xsl:if>
+            <li class="up">
+              <xsl:if test="count($up)&gt;0 and $up != $home">
+                <a accesskey="u">
+                  <xsl:attribute name="href">
+                    <xsl:call-template name="href.target">
+                      <xsl:with-param name="object" select="$up"/>
+                    </xsl:call-template>
+                  </xsl:attribute>
+                  <xsl:attribute name="title">
+                    <xsl:apply-templates select="$up" mode="object.title.markup"/>
+                  </xsl:attribute>
+                  <xsl:call-template name="navig.content">
+                    <xsl:with-param name="direction" select="'up'"/>
+                  </xsl:call-template>
+                </a>
+              </xsl:if>
+              <xsl:text>.</xsl:text>
+            </li>
+          <li class="home">
+            <a accesskey="h">
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="object" select="$home"/>
+                </xsl:call-template>
+              </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:value-of select="$home/bookinfo/title"/>
+                  <xsl:text> - </xsl:text>
+                  <xsl:value-of select="$home/bookinfo/subtitle"/>
+                </xsl:attribute>
+                <xsl:call-template name="navig.content">
+                  <xsl:with-param name="direction" select="'home'"/>
+                </xsl:call-template>
+            </a>
+          </li>
+        </ul>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+    <!-- Footer Navigation-->
+  <xsl:template name="footer.navigation">
+    <xsl:param name="prev" select="/foo"/>
+    <xsl:param name="next" select="/foo"/>
+    <xsl:param name="nav.context"/>
+    <xsl:variable name="home" select="/*[1]"/>
+    <xsl:variable name="up" select="parent::*"/>
+    <xsl:variable name="row" select="count($prev) &gt; 0 or count($up) &gt; 0
+            or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
+    <xsl:if test="$row">
+      <div class="navfooter">
+        <table summary="Barre de navigation">
+          <tr>
+          <!-- Précédent -->
+          <td class="left">
+          <xsl:if test="count($prev)&gt;0 and $prev != $home">
+              <a accesskey="p">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$prev"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$prev/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+              <img src="images/prev.png" alt="Précédent" />
+              <xsl:choose>
+                <xsl:when test="$prev/refmeta/refentrytitle != ''">
+                  <xsl:value-of select="$prev/refmeta/refentrytitle"/>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:value-of select="$prev/title"/>
+                </xsl:otherwise>
+              </xsl:choose>
+              </a>
+          </xsl:if>
+          </td>
+            <!-- Suivant -->
+            <td class="right">
+            <xsl:if test="count($next)&gt;0">
+              <a accesskey="n">
+                <xsl:attribute name="href">
+                  <xsl:call-template name="href.target">
+                    <xsl:with-param name="object" select="$next"/>
+                  </xsl:call-template>
+                </xsl:attribute>
+                <xsl:attribute name="title">
+                  <xsl:choose>
+                    <xsl:when test="local-name($next)='index'">
+                      <xsl:call-template name="gentext">
+                        <xsl:with-param name="key">Index</xsl:with-param>
+                      </xsl:call-template>
+                    </xsl:when>
+                    <xsl:when test="$next/refmeta/refentrytitle != ''">
+                      <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                      <xsl:value-of select="$next/title"/>
+                    </xsl:otherwise>
+                  </xsl:choose>
+                </xsl:attribute>
+                <xsl:choose>
+                  <xsl:when test="local-name($next)='index'">
+                    <xsl:call-template name="gentext">
+                      <xsl:with-param name="key">Index</xsl:with-param>
+                    </xsl:call-template>
+                  </xsl:when>
+                  <xsl:when test="$next/refmeta/refentrytitle != ''">
+                    <xsl:value-of select="$next/refmeta/refentrytitle"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="$next/title"/>
+                  </xsl:otherwise>
+                </xsl:choose>
+                <img src="images/next.png" alt="Suivant" />
+                </a>
+          </xsl:if>
+          </td>
+          </tr>
+        </table>
+      </div>
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>



More information about the Trad mailing list