Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-08-08 Thread Paul Hoadley
On 1 Aug 2023, at 15:21, Paul Hoadley wrote: > On 1 Aug 2023, at 13:14, Paul Hoadley > wrote: > >> While I suspect this will work eventually > > I'm still holding out hope... Got there in the end, thanks to an answer by Jukka Matilainen to my post on Stack

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-31 Thread Paul Hoadley
On 1 Aug 2023, at 13:14, Paul Hoadley wrote: > While I suspect this will work eventually I'm still holding out hope... I've now got a catalog.xml mapping every .xsl, .xml, .ent, and .dtd file to its 'classpath:' URI equivalent. (Another aside: given that's a really simple string manipulation,

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-31 Thread Paul Hoadley
[Some of this exchange unintentionally fell off-list.] On 29 Jul 2023, at 22:37, Norm Tovey-Walsh wrote: > So what’s happened here is that classpath:/xsl/juno-driver.xsl has > succeeded and now it’s trying to import docbook.xsl. Unfortunately, the > java.net class doesn’t like classpath:, so

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-30 Thread Benjamin DE DARDEL
Yes it works via files : - docbook xls stylesheets are embedded in the resources jar - they are copied in $HOME/.ant4docbook directory to be used by an internal or external processor (that generates files). I understand that you prefer an 'in memory' approach for your web app. Le sam. 29 juil.

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-29 Thread Paul Hoadley
On 29 Jul 2023, at 6:28 pm, Benjamin DE DARDEL wrote: > This is an old problem that I looked into some time ago. > I use my ant4docbook project daily to generate pdfs, from docbook, markdown > and docbook xsl1.xx. > Surely there are some interesting things to take in there. Thanks for the

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-29 Thread Benjamin DE DARDEL
Hi, This is an old problem that I looked into some time ago. I use my ant4docbook project daily to generate pdfs, from docbook, markdown and docbook xsl1.xx. Surely there are some interesting things to take in there. The next step is to use xsltng + an html to pdf converter (chromium cef pdf?).

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-29 Thread Paul Hoadley
On 29 Jul 2023, at 13:48, Paul Hoadley wrote: > I'll put together a minimal example and see if you can put me in the right > direction. To recap, I'm building a Java project that will encapsulate the DocBook stylesheets and some classes to do some transformations, all packaged as a JAR to

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-28 Thread Paul Hoadley
On 28 Jul 2023, at 3:10 pm, Norm Tovey-Walsh wrote: > Paul Hoadley writes: >> I can be more specific about what I've tried, and how it fails, but >> obviously this isn't a Java mailing list. For now, can anyone (a) tell >> me whether this is likely to succeed, or whether there's a better >>

Re: [docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-27 Thread Norm Tovey-Walsh
Paul Hoadley writes: > I can be more specific about what I've tried, and how it fails, but > obviously this isn't a Java mailing list. For now, can anyone (a) tell > me whether this is likely to succeed, or whether there's a better > approach, or (b) even better, point me at an example of this

[docbook-apps] Embedding DocBook → PDF transformation in a Java web app

2023-07-27 Thread Paul Hoadley
Hello, I'm at the proof-of-concept phase of building some DocBook → PDF transformation into a web application. Our requirements are quite modest, and I've built a customisation layer over the 1.79.2 stylesheets for the moment, though could happily use the xslt20 stylesheets if more