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

Re: [docbook-apps] Colored listings

2010-04-14 Thread Dave Pawson
On Wed, 14 Apr 2010 15:02:17 +0400 Александр Мартынов am...@mail.ru wrote: 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

[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 --- ?xml version=1.0 encoding=UTF-8? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo =http://www.w3.org/1999/XSL/Format;

Re: [docbook-apps] Colored listings

2010-04-14 Thread Jirka Kosek
Александр Мартынов wrote: !-- xsl:param name=highlight.xslthl.config select=file:/F:/work/docbook-tools/docbook-xsl/highlighting/xslthl-config.xml/ -- xsl:param name=highlight.xslthl.config select='file:/F:/work/docbook-tools/docbook-xsl/highlighting/xslthl-config.xml'/ xsl:param

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

Re: [docbook-apps] Colored listings

2010-04-13 Thread Mathieu Malaterre
2010/4/13 Александр Мартынов am...@mail.ru: But listings are still black and white. I'm looking in generated .fo and found that there is no differences with xsltproc generated .fo. Try HTML output. You'll see that Syntax Highlithing is working. PDF output by default will display shade or gray

Re: [docbook-apps] Colored listings

2010-04-13 Thread Christophe HARO
It's not true that citation PDF output by default will display shade or gray /citation I think that you are using saxon9 but you must use saxon65. (Saxon9 is a xslt 2 proc). See http://xmlguru.cz/2006/07/docbook-syntax-highlighting Regards, -- Christophe HARO christophe.h...@free.fr

Re: [docbook-apps] Colored listings

2010-04-13 Thread Dave Pawson
On Tue, 13 Apr 2010 15:20:47 +0400 Александр Мартынов am...@mail.ru wrote: 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. Saxon can process xIncludes, but

Re: [docbook-apps] Colored listings

2010-04-13 Thread Александр Мартынов
Hello Mathieu, I try to generate html using next bat file: --- mkhtml.bat --- java -cp F:\work\docbook-tools\syntax-hl\xslthl-2.0.1.jar;F:\work\docbook-tools\syntax-hl\saxonhe9-2-0-6j\saxon9he.jar^ net.sf.saxon.Transform^ -o:%2^ -s:%1^ -xsl:%~dp0\..\docbook-xsl\html\docbook.xsl^

Re: [docbook-apps] Colored listings

2010-04-13 Thread Mathieu Malaterre
2010/4/13 Александр Мартынов am...@mail.ru: Hello Mathieu, I try to generate html using next bat file: --- mkhtml.bat --- java -cp F:\work\docbook-tools\syntax-hl\xslthl-2.0.1.jar;F:\work\docbook-tools\syntax-hl\saxonhe9-2-0-6j\saxon9he.jar^  net.sf.saxon.Transform^  -o:%2^  -s:%1^  

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 citation CH PDF output

[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 color color=dark_greenclass/color CMyClass { }; or there is more specialized tags such cpp-keywordclass/cpp-keyword CMyClass { }; or there is another way to make

RE: [docbook-apps] Colored listings

2010-04-12 Thread Rowland, Larry
Rowland -Original Message- From: Александр Мартынов [mailto:am...@mail.ru] Sent: Monday, April 12, 2010 11:40 AM To: docbook-apps@lists.oasis-open.org Subject: [docbook-apps] Colored listings Hello, I want to get colored listings in docbook output, how I can get