Author: jcouteau Date: 2011-11-07 17:52:49 +0100 (Mon, 07 Nov 2011) New Revision: 28 Url: http://nuiton.org/repositories/revision/docbook-tools/28 Log: Remove sharengo references Can put an id on glossdiv Modified: trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-common.xsl trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-single.xsl trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml.xsl Modified: trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-common.xsl =================================================================== --- trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-common.xsl 2010-11-21 14:31:19 UTC (rev 27) +++ trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-common.xsl 2011-11-07 16:52:49 UTC (rev 28) @@ -41,10 +41,10 @@ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" standalone="no"/> - <xsl:param name="siteHref" select="'http://www.sharengo.org'"/> - <xsl:param name="docHref" select="'http://wiki.sharengo.org/xwiki2/bin/view/Wikengo/WikengoPresentation'"/> - <xsl:param name="siteLinkText" select="'Sharengo.org'"/> - <xsl:param name="docLinkText" select="'Wikengo'"/> + <xsl:param name="siteHref" select="''"/> + <xsl:param name="docHref" select="''"/> + <xsl:param name="siteLinkText" select="''"/> + <xsl:param name="docLinkText" select="''"/> <!-- Placement of titles --> @@ -435,20 +435,6 @@ </xsl:template> <!-- -From: xhtml/docbook.xsl -Reason: Add confidential to footer -Version: 1.72.0 ---> -<xsl:template name="user.footer.content"> - <xsl:param name="node" select="."/> - <xsl:if test="$confidential = '1'"> - <h1 xmlns="http://www.w3.org/1999/xhtml" class="confidential"> - <xsl:text>Red Hat Confidential!</xsl:text> - </h1> - </xsl:if> -</xsl:template> - -<!-- From: xhtml/block.xsl Reason: default class (otherwise) to formalpara Version: 1.72.0 @@ -571,7 +557,60 @@ </xsl:otherwise> </xsl:choose> </pre> - + </xsl:template> + <xsl:template match="glossdiv/title"> + <h3> + <xsl:attribute name="id"> + <xsl:value-of select="id" /> + </xsl:attribute> + <xsl:apply-templates select="../id" mode="common.html.attributes"/> + <xsl:apply-templates select="." mode="common.html.attributes"/> + <xsl:apply-templates/> + </h3> + </xsl:template> + + <xsl:template match="glossdiv"> + + <xsl:variable name="language"> + <xsl:call-template name="l10n.language"/> + </xsl:variable> + + <xsl:variable name="lowercase"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">normalize.sort.input</xsl:with-param> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name="uppercase"> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">normalize.sort.output</xsl:with-param> + </xsl:call-template> + </xsl:variable> + + <xsl:call-template name="id.warning"/> + + <div> + <xsl:attribute name="id"> + <xsl:value-of select="@id" /> + </xsl:attribute> + <xsl:apply-templates select="." mode="common.html.attributes"/> + <xsl:apply-templates select="(glossentry[1]/preceding-sibling::*)"/> + + <dl> + <xsl:choose> + <xsl:when test="$glossary.sort != 0"> + <xsl:apply-templates select="glossentry"> + <xsl:sort lang="{$language}" select="translate(glossterm, $lowercase, $uppercase)"/> + </xsl:apply-templates> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select="glossentry"/> + </xsl:otherwise> + </xsl:choose> + </dl> + </div> + </xsl:template> + </xsl:stylesheet> Modified: trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-single.xsl =================================================================== --- trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-single.xsl 2010-11-21 14:31:19 UTC (rev 27) +++ trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml-single.xsl 2011-11-07 16:52:49 UTC (rev 28) @@ -11,7 +11,7 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:import href="../../xhtml/docbook.xsl"/> + <xsl:import href="../../docbook/xhtml/docbook.xsl"/> <xsl:include href="xhtml-common.xsl"/> Modified: trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml.xsl =================================================================== --- trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml.xsl 2010-11-21 14:31:19 UTC (rev 27) +++ trunk/docbook-xsl-nuiton/src/main/resources/org/nuiton/xhtml.xsl 2011-11-07 16:52:49 UTC (rev 28) @@ -11,7 +11,7 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - <xsl:import href="../../xhtml/chunk.xsl"/> + <xsl:import href="../../docbook/xhtml/chunk.xsl"/> <xsl:include href="xhtml-common.xsl"/>