Re: [docbook-apps] syntax highlighting in webhelp format

2014-05-06 Thread Bob Stayton
Hi, Can you import the file from the xhtml directory. I don't know how the urn: syntax is interpreted, but could you use something like: xsl:import href=urn:docbkx:stylesheet/../xhtml/highlight.xsl/ Bob Stayton Sagehill Enterprises b...@sagehill.net On 5/4/2014 11:02 PM, Natalie Kershaw

[docbook-apps] syntax highlighting in webhelp format

2014-05-05 Thread Natalie Kershaw
Is anyone syntax highlighting programlistings in webhelp format? I use the maven-docbkx-plugin and in HTML and PDF output, I add the following to my customization layer: xsl:import href=urn:docbkx:stylesheet/highlight.xsl/ But there is no highlight.xsl file in the webhelp directory. Is

Re: [docbook-apps] Syntax highlighting

2013-12-09 Thread Shaun McCance
On Sat, 2013-12-07 at 15:26 -0600, David Cramer wrote: On 12/07/2013 01:38 AM, davep wrote: On 06/12/13 21:53, Norman Walsh wrote: Hello world, A fair bit of effort in the DocBook stylesheets goes into parsing, decomposing, annotating, and recomposing program listings for the purpose

Re: [docbook-apps] Syntax highlighting

2013-12-09 Thread David Cramer
On 12/09/2013 08:10 AM, Shaun McCance wrote: Yelp uses jQuery.Syntax for syntax highlighting, which we've been pretty happy with. I've had no problems with it clobbering markup inside code blocks, which is something I deal with pretty often. That looks interesting. I experimented by adding

Re: [docbook-apps] Syntax highlighting

2013-12-09 Thread Shaun McCance
On Mon, 2013-12-09 at 10:38 -0600, David Cramer wrote: On 12/09/2013 08:10 AM, Shaun McCance wrote: Yelp uses jQuery.Syntax for syntax highlighting, which we've been pretty happy with. I've had no problems with it clobbering markup inside code blocks, which is something I deal with pretty

RE: [docbook-apps] Syntax highlighting

2013-12-08 Thread Jan Tosovsky
On 2013-12-06 Norman Walsh wrote: I'm also tempted to abandon the XSL stylesheets and work instead on a purpose-built HTML+CSS rendering for printing. While I don't plan to upgrade my generating workflow to XSL 2.0 stylesheets in the near future, I am quite curious whether the proposed

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Bob Stayton
On 12/6/2013 1:53 PM, Norman Walsh wrote: ... As long as I'm airing dirty laundry, I'm also tempted to abandon the XSL stylesheets and work instead on a purpose-built HTML+CSS rendering for printing. Hi Norm, What composition engines do you have in mind for rendering HTML+CSS to print?

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Jirka Kosek
On 6.12.2013 22:53, Norman Walsh wrote: It appears that modern systems do this in the JavaScript layer on the client. They also use tables to render line numbers. I'm tempted to move in this direction. Comments? I have used both approaches. Problem with Javascript one is that it doesn't work

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread David Cramer
On 12/07/2013 01:38 AM, davep wrote: On 06/12/13 21:53, Norman Walsh wrote: Hello world, A fair bit of effort in the DocBook stylesheets goes into parsing, decomposing, annotating, and recomposing program listings for the purpose of adding line numbers to them. There's also a bunch of work

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Frank Arensmeier
7 dec 2013 kl. 21:35 skrev Jirka Kosek ji...@kosek.cz: On 6.12.2013 22:53, Norman Walsh wrote: It appears that modern systems do this in the JavaScript layer on the client. They also use tables to render line numbers. I'm tempted to move in this direction. Comments? I have used both

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Jirka Kosek
On 7.12.2013 23:05, Frank Arensmeier wrote: Actually, there is a renderer that is able to generate PDF from HTML with really good results. Wkhtmltopdf (https://code.google.com/p/wkhtmltopdf/). It's basically a wrapper for the WebKit engine used by safari, chrome etc. Not sure if the WebKit

Re: [docbook-apps] Syntax highlighting

2013-12-07 Thread Mike Maxwell
On 12/7/2013 5:05 PM, Frank Arensmeier wrote: Actually, there is a renderer that is able to generate PDF from HTML with really good results. Wkhtmltopdf (https://code.google.com/p/wkhtmltopdf/). There's also htmltolatex (with LaTeX to create the PDF): http://htmltolatex.sourceforge.net/

[docbook-apps] Syntax highlighting

2013-12-06 Thread Norman Walsh
Hello world, A fair bit of effort in the DocBook stylesheets goes into parsing, decomposing, annotating, and recomposing program listings for the purpose of adding line numbers to them. There's also a bunch of work that goes into syntax highlighting them. Occasionally, this takes a *long* time.

Re: [docbook-apps] Syntax highlighting

2013-12-06 Thread davep
On 06/12/13 21:53, Norman Walsh wrote: Hello world, A fair bit of effort in the DocBook stylesheets goes into parsing, decomposing, annotating, and recomposing program listings for the purpose of adding line numbers to them. There's also a bunch of work that goes into syntax highlighting them.

Re: [docbook-apps] Syntax highlighting - setting colours

2013-04-17 Thread Jirka Kosek
On 16.4.2013 18:36, John Brown wrote: xsl:template match=xslthl:keyword You must have this templates in xslthl mode like xsl:template match=xslthl:keyword mode=xslthl Jirka -- -- Jirka Kosek

[docbook-apps] Syntax highlighting - setting colours

2013-04-16 Thread John Brown
Hello All, It seems that by default, keywords are bold. In addition to that, I want to make keywords blue and comments green. I copied the code to do it from http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html, but it is not working. The text in the program listing is bold but black. My

Re: [docbook-apps] syntax highlighting with xslt2/pygments/jython/saxon

2011-11-04 Thread Andreas Reuleaux
OK, thanks a lot. While your explanations are certainly very precise and I understand a lot better now, what's going on and how it is supposed to work, it is still not working for me (for html). - Will try to reduce my example document to the absolute minimum / dig further. -Andreas Mauritz

[docbook-apps] syntax highlighting with xslt2/pygments/jython/saxon

2011-10-29 Thread Andreas Reuleaux
I am trying to get syntax hightlighting working as described in http://norman.walsh.name/2011/08/31/xsltPygments which was a response to a mail thread: http://lists.oasis-open.org/archives/docbook-apps/201108/msg00132.html respectively for the beginning of the thread:

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: (Bump.) Has *anyone* been able to successfully get syntax highlighting to work in linux with the latest DocBook, Saxon 6.5.5, and xslthl-2.0.1? I want to know if this is even possible or a fatal bug...

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: I could send you a version of my build scripts (using ANT) with an example, if that helps. Yes please. At this point I need all the help I can get. I'm following all directions 100% and I still get XSLT

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Hi Mike, Could you send me the following file (if possible): /www/notlive/docbook/docbook-xsl-1.74.3-pre/chunkohp.xsl It is not part of the official Stylesheet release, it seems, so I am assuming that that's your custimization

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Hi Mike, Could you send me the following file (if possible): /www/notlive/docbook/docbook-xsl-1.74.3-pre/chunkohp.xsl It is not part of the official Stylesheet release, it seems, so I am assuming that

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Sure, actually, now I've switched to this one, mfsite.xsl, here it is: This is most peculiar. I replaced the stylesheet styles/custimization.html.xsl with the one you provided and adjusted the paths so

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: But that's about the last idea... for when I use your command-line in the test directory (with adjusted paths), I do get the highlights. So, even if you think I am a moron for even suggesting it, could you check your stylesheet

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: But that's about the last idea... for when I use your command-line in the test directory (with adjusted paths), I do get the highlights. So, even if you think I am a moron for even suggesting it, could you

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Mike
Juri Memmert wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: Alright... let's see... I'll try to summarize what I have in terms of settings... maybe you can spot what's missing: The Java call to transform from Docbook to HTML: java \ - -classpath [Path to

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-24 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Alright... my last attempt for today since it's getting late over here. Attached you'll find a new version of my example project. It now has a build.sh file. I added all paths you mentioned in your previous mails and it should produce an

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-23 Thread Mike
Mike wrote: Mauritz Jeanson wrote: | -Original Message- | From: Mike | | I'm following the instructions here to make syntax | highlighting work, | are these the wrong instructions to follow? | | http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html That

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-23 Thread Juri Memmert
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Mike wrote: (Bump.) Has *anyone* been able to successfully get syntax highlighting to work in linux with the latest DocBook, Saxon 6.5.5, and xslthl-2.0.1? I want to know if this is even possible or a fatal bug... Yes, I have gotten it to

[docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-22 Thread Mike
I'm following the instructions here to make syntax highlighting work, are these the wrong instructions to follow? http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html java -cp

RE: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-22 Thread Mauritz Jeanson
| -Original Message- | From: Mike | | I'm following the instructions here to make syntax | highlighting work, | are these the wrong instructions to follow? | | http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html That documentation is not completely up-to-date,

Re: [docbook-apps] syntax highlighting doesn't work, nor throws errors.

2009-02-22 Thread Mike
Mauritz Jeanson wrote: | -Original Message- | From: Mike | | I'm following the instructions here to make syntax | highlighting work, | are these the wrong instructions to follow? | | http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html That documentation is not

[docbook-apps] Syntax Highlighting in Code Samples

2009-02-19 Thread Eric Johnson
I'm trying to get the syntax highlighting stuff to work but I'm running into a few problems: 1. My callouts are not working. They produce errors and the graphics don't show up in the code listings. 2. Places where I've added emphasis elements to my code listing to callout a particular line

AW: [docbook-apps] Syntax Highlighting in synopsis elements

2008-11-27 Thread Mathias Schindler
: [docbook-apps] Syntax Highlighting in synopsis elements Mathias Schindler wrote: In Bob Stayton's DocBook XSL: The Complete Guide it says that Highlighting works with programlisting, screen, and synopsis elements that have a language attribute.. But in your source there is no synopsis

[docbook-apps] Syntax Highlighting in synopsis elements

2008-11-25 Thread Mathias Schindler
Dear docbook users, I use the xslthl.jar file to highlight my Java and XML programlistings and it works very well. I also generate an Appendix of my JavaDoc-Documentation with the dbdoclet(www.dbdoclet.org) and include it at the end of my document. In this Appendix, every class is written

Re: [docbook-apps] Syntax Highlighting in synopsis elements

2008-11-25 Thread Jirka Kosek
Mathias Schindler wrote: In Bob Stayton's DocBook XSL: The Complete Guide it says that Highlighting works with programlisting, screen, and synopsis elements that have a language attribute.. But in your source there is no synopsis element, only classsynopsis etc. Generally syntax highlighting

Re: [docbook-apps] syntax highlighting with xslthl.jar

2007-05-13 Thread Thierry B.
Mauritz Jeanson a écrit : -Original Message- From: Thierry B. just to avoid that someone else search for a long time like me: - use java = 1.5, not 1.4 or 1.6. While all other docbook things I do works with my previous java 1.4.2, I got a java error with xslthl.jar with this

[docbook-apps] syntax highlighting with xslthl.jar

2007-05-06 Thread Thierry B.
Hi, just to avoid that someone else search for a long time like me: - use java = 1.5, not 1.4 or 1.6. While all other docbook things I do works with my previous java 1.4.2, I got a java error with xslthl.jar with this java version and 1.6.01. I use 1.5.06 - With the correct java runtime,

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Keith Fahlgren
On 3/15/07, Bob Stayton [EMAIL PROTECTED] wrote: I've used xslthl.jar with 1.72.0 and Saxon 6.5.5. I think it is the best approach. Ah, glad to see that someone got it going.[1] :-) Can you provide more details on how you are using it? Yeah, here is my Saxon6.5 attempt: $

Re: [docbook-apps] Syntax Highlighting

2007-03-15 Thread Bob Stayton
[EMAIL PROTECTED] To: Bob Stayton [EMAIL PROTECTED] Cc: apps docbook docbook-apps@lists.oasis-open.org Sent: Thursday, March 15, 2007 7:47 AM Subject: Re: [docbook-apps] Syntax Highlighting On 3/15/07, Bob Stayton [EMAIL PROTECTED] wrote: I've used xslthl.jar with 1.72.0 and Saxon 6.5.5. I

[docbook-apps] Syntax Highlighting

2007-03-14 Thread Keith Fahlgren
Hey, Just wanted to get the current consensus on the state of syntax highlight for FO. XSLTHL[1] looks nice, but I can't get it running...[2]. Bob mentions JEdit Syntax[3], which I think I can find more on in the archives[4]. Does anyone have a syntax coloring technique that they particularly