This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Docbook et xsl


Hello,

I try all properties you tell me and it work fine except language. I make a french documentation.
I try to put:
<xsl:variable name="l10n.gentext.language">fr</xsl:variable>
in the docbook.xsl or param.xsl file but it doesn't work and saxon show me an error:
Error at xsl:param on line 21 of file ... common/l10n.xsl:
Duplicate global variable declaration
Error at xsl:variable on line 65 of file ... xhtml/docbook.xsl:
Duplicate globale variable declaration.

Have you already had this error?
Thanks for your answer
Templ


my pleasure...

Docs are in http://docbook.sourceforge.net - i think.
If you don't find it you can look at http://nwalsh.com.
or you can examine one of my driver files:

------------------------------------------------------------------

<?xml version="1.0" encoding="iso-8859-2"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">


<xsl:import
href="/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl"/>
<xsl:output method="html" encoding="ISO-8859-2" indent="yes"/>


<!-- Here you can override some templates -->
<!-- Just copy and modify as you like -->

<xsl:template name="book.titlepage.separator">
</xsl:template>



<xsl:variable name="html.stylesheet">css.css</xsl:variable>

<!-- html body attrs -->
<xsl:template name="body.attributes">
  <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
  <xsl:attribute name="text">#000000</xsl:attribute>
  <xsl:attribute name="link">#09b15d</xsl:attribute>
  <xsl:attribute name="vlink">#09b15d</xsl:attribute>
  <xsl:attribute name="alink">#09b15d</xsl:attribute>
</xsl:template>


<!-- toc options -->
<xsl:variable name="toc.section.depth">3</xsl:variable>
<xsl:variable name="generate.toc">1</xsl:variable>
<xsl:variable name="generate.division.toc">1</xsl:variable>
<xsl:variable name="generate.component.toc">1</xsl:variable>
<xsl:variable name="toc.list.type">dd</xsl:variable>

<!-- label options -->
<xsl:variable name="generate.autolabel">1</xsl:variable>
<xsl:variable name="label.from.part">1</xsl:variable>
<xsl:variable name="part.autolabel">0</xsl:variable>
<xsl:variable name="division.autolabel">0</xsl:variable>
<xsl:variable name="section.autolabel">1</xsl:variable>
<xsl:variable name="chapter.autolabel">1</xsl:variable>

<!-- language and encoding -->
<xsl:variable name="l10n.gentext.language">hu</xsl:variable>
<xsl:variable name="default.encoding">iso-8859-2</xsl:variable>
<xsl:variable
name="saxon.character.reprezentation">entity</xsl:variable>

<!-- etc -->
<xsl:variable name="check.idref">0</xsl:variable>
<xsl:variable name="root.filename">index</xsl:variable>
<xsl:variable name="chunk.sections">1</xsl:variable>
<xsl:variable name="chunk.first.sections">0</xsl:variable>
<xsl:variable name="chunk.section.depth">2</xsl:variable>
<xsl:variable name="use.id.as.filename">0</xsl:variable>
<xsl:variable name="admon.graphics">0</xsl:variable>
<xsl:variable name="suppress.navigation">0</xsl:variable>
</xsl:stylesheet>

-----------------------------------------------------------

Best regards:
G.

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]