Re: DB2LATEX 0.8pre1 bugs?
James Devenish <[email protected]> Tue, 23 Mar 2004 07:53:01 +0800
| Newsgroups | gmane.text.docbook.db2latex.general |
|---|---|
| Message-ID | <[email protected]> |
In message <[email protected]> on Mon, Mar 22, 2004 at 09:59:42PM +0100, Petr Jane?ek wrote: > 1) first is error about lists.mod.xsl on line 273, somtehing like that > xsl:param must be declared at the begining of function. I can recall it with > any docbook xml file. Thanks. That should now been fixed in CVS (will appear in next snapshot). I think this is the fix: --- lists.mod.xsl 31 Jan 2004 11:53:50 -0000 1.25 +++ lists.mod.xsl 22 Mar 2004 23:14:10 -0000 1.26 @@ -270,7 +270,7 @@ </doc:template> <xsl:template match="varlistentry"> <xsl:param name="next.is.list"> - <xsl:param name="object" select="listitem/*[1]"/> + <xsl:variable name="object" select="listitem/*[1]"/> <xsl:value-of select="count($object[self::itemizedlist or self::orderedlist or self::variablelist])"/> </xsl:param> <xsl:variable name="id"> > 2) i use czech (cs) language for my docbook files. When processing it I > receive following error: > Error at xsl:value-of on line 165 of > file:/c:/docbook/db2latex/xsl/common/l10n.xsl: > Output character not available in this encoding (decimal 345) I'm not entirely certainly, but I think this is a general XML issue, explained by the following: By default, DB2LaTeX uses ISO-8859-1 encoding for its output. If the Czech language requires a different encoding, you will need to specify it yourself. If you have a DB2LaTeX customisation file (explained at the DB2LaTeX website), you can use the following lines: <xsl:import href="...path.or.url.to...db2latex/docbook.xsl"/> <xsl:output encoding="something.other.than.ISO-8859-1"/> Note, however, that you will also need to enable corresponding fonts in LaTeX (for this, you add another line to your DB2LaTeX customisation file). This can be done in a number of ways, but I am not sure what conventions to use for Czech. If you have lang="cs' in your DocBook source files, DB2LaTeX might automatically get LaTeX's babel package to help you out (not sure if it's sufficient, though). If you have a small sample document, I could try some things for you. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click