[docbook-apps] Fitting text

2010-04-14 Thread Александр Мартынов
Hello, I am reading topic that descibes how to fit large lines of listings - http://www.sagehill.net/docbookxsl/FittingText.html But there is not that I want. I want: 1) Reduce font size for all listings by default, better if this will be controlled by the option like 'programlisting.reduce-

[docbook-apps] Colored listings

2010-04-14 Thread Александр Мартынов
Hello, Big thanks for all, yours help was helpfull. As result, I found next solution: --- my-pdf.xsl --- http://www.w3.org/1999/XSL/Transform"; xmlns:fo ="http://www.w3.org/1999/XSL/Format"; xmlns:db5="http://docbook.org/ns/docbook"; xmlns:xslt

Re: [docbook-apps] FOP can't find images

2010-04-14 Thread Александр Мартынов
Hello Bob, Thanks, it's work good for pdf, but for html I need to copy images/callouts to destination directory where html file will be placed. Is there any solution for automating copying of images? Also, I try to use Unicode characters instead of images using but I got an "unknown symbol" (sq

Re: [docbook-apps] Colored listings

2010-04-14 Thread Александр Мартынов
Hello Mathieu, I have got an error when using highlight.xsl: Error at xsl:when on line 47 of file:/F:/work/docbook-tools/docbook-xsl/highlighting/common.xsl: Variable highlight.default.language has not been declared Tuesday, April 13, 2010, 4:01:31 PM, you wrote: MM> I am not using docbook-x

Re: [docbook-apps] Colored listings

2010-04-13 Thread Александр Мартынов
Hello Christophe, Yes, Your are right, I using Saxon 9.2 and have got warning from saxon about xslt v1.0, but I didn't think that is very important. I wil try your recommended version of saxon. Tuesday, April 13, 2010, 3:52:58 PM, you wrote: CH> It's not true that CH> CH> PDF output by de

Re: [docbook-apps] Colored listings

2010-04-13 Thread Александр Мартынов
010, 3:39:34 PM, you wrote: MM> 2010/4/13 Александр Мартынов : >> But listings are still black and white. I'm looking in generated .fo >> and found that there is no differences with xsltproc generated .fo. MM> Try HTML output. You'll see that Syntax Highlithing is worki

Re: [docbook-apps] Colored listings

2010-04-13 Thread Александр Мартынов
Hello Larry, As I understand, there is no way to use syntax highlighting with xsltproc, it's requres Saxon. Next, Saxon itself does not process XInclude's, and I need to use xmllint to do this. Also, saxon need the F:\work\docbook-tools\docbook-xsl\fo\F:\work\docbook-tools\docbook-xsl\fo\par

[docbook-apps] FOP can't find images

2010-04-13 Thread Александр Мартынов
Hello, I got an error when try to using 13.04.2010 12:47:24 org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: images/callouts/1.svg In .fo it seems like this: I think my toolset misconfigured, but which tool need to be configured? I need to configure xsltproc to generate n

Re: [docbook-apps] XInclude quiestion

2010-04-13 Thread Александр Мартынов
Hello Larry, Thanks, this link was helpfull for my question. I forgot that conversion to pdf consist with two steps: 1) converting docbook to fop with xsltproc; 2) converting fop to pdf with apache fop. In first step I forgot to add --xinclude xsltproc option. RL> It sounds like the xincludes ar

[docbook-apps] Colored listings

2010-04-12 Thread Александр Мартынов
Hello, I want to get colored listings in docbook output, how I can get it? Is there a simple way to make text colored, such tags class CMyClass { }; or there is more specialized tags such class CMyClass { }; or there is another way to make listings colored? Marty. -

[docbook-apps] XInclude quiestion

2010-04-12 Thread Александр Мартынов
Hello Docbook-apps, I'm newby in docbook. I try to include some text file into docbook document using tag and got an error: Element include in namespace 'http://www.w3.org/2001/XInclude' encountered in section, but no template matches. What I am doing wrong? I am using Apache FOP under Wind