Re: [docbook-apps] Embedding DocBook → PD F transformation in a Java web app
Paul Hoadley <[email protected]> Wed, 9 Aug 2023 13:11:07 +0930
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_9421F49E-F06D-460C-BB5C-9D778A35F3C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 1 Aug 2023, at 15:21, Paul Hoadley <[email protected]> wrote: > On 1 Aug 2023, at 13:14, Paul Hoadley <[email protected] = <mailto:[email protected]>> wrote: >=20 >> While I suspect this will work eventually >=20 > I'm still holding out hope... Got there in the end, thanks to an answer by Jukka Matilainen to my post = on Stack Overflow: = https://stackoverflow.com/questions/76848364/how-can-i-embed-docbook-xslt-= transformation-in-a-java-web-app/ Jukka showed how to integrate a custom URLStreamHandler to source all = resources from the classpath. Here's a small project that demonstrates = the concept: https://github.com/paulhoadley/DocBookInJar Thanks to Norm and Benjamin for additional help on the list here. --=20 Paul Hoadley https://logicsquad.net/ https://www.linkedin.com/company/logic-squad/ --Apple-Mail=_9421F49E-F06D-460C-BB5C-9D778A35F3C8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">On = 1 Aug 2023, at 15:21, Paul Hoadley <<a = href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:<div class=3D""><br = class=3D""><div><blockquote type=3D"cite" class=3D"">On 1 Aug 2023, at = 13:14, Paul Hoadley <<a href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:<br class=3D""><div = class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: = space; line-break: after-white-space;" class=3D""><div class=3D""><br = class=3D""></div><div class=3D""><div class=3D""><blockquote type=3D"cite"= class=3D""><div class=3D""><div class=3D"" style=3D"caret-color: rgb(0, = 0, 0); font-family: LucidaGrande; font-size: 14px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;"><div class=3D"">While I suspect this will work = eventually</div></div></div></blockquote><div class=3D""><br = class=3D""></div><div class=3D"">I'm still holding out = hope...</div></div></div></div></div></blockquote><div><br = class=3D""></div></div><div class=3D"">Got there in the end, thanks to = an answer by Jukka Matilainen to my post on Stack = Overflow:</div><div class=3D""><br class=3D""></div><div class=3D""><a = href=3D"https://stackoverflow.com/questions/76848364/how-can-i-embed-docbo= ok-xslt-transformation-in-a-java-web-app/" = class=3D"">https://stackoverflow.com/questions/76848364/how-can-i-embed-do= cbook-xslt-transformation-in-a-java-web-app/</a></div><div class=3D""><br = class=3D""></div><div class=3D"">Jukka showed how to integrate a = custom URLStreamHandler to source all resources from the classpath. = Here's a small project that demonstrates the concept:</div><div = class=3D""><br class=3D""></div><div class=3D""><a = href=3D"https://github.com/paulhoadley/DocBookInJar" = class=3D"">https://github.com/paulhoadley/DocBookInJar</a></div><div = class=3D""><br class=3D""></div><div class=3D"">Thanks to Norm and = Benjamin for additional help on the list here.</div><div class=3D""><br = class=3D""></div><br class=3D""><div class=3D""> <div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: = break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: = break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D""><span class=3D"Apple-style-span" style=3D"border-collapse: = separate; font-variant-ligatures: normal; font-variant-position: normal; = font-variant-numeric: normal; font-variant-alternates: normal; = font-variant-east-asian: normal; font-weight: normal; line-height: = normal; border-spacing: 0px; -webkit-text-decorations-in-effect: = none;"><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;" class=3D"">-- <br class=3D"">Paul = Hoadley<br class=3D""><a href=3D"https://logicsquad.net/" = class=3D"">https://logicsquad.net/</a><br = class=3D"">https://www.linkedin.com/company/logic-squad/</div><div = style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; line-break: = after-white-space;" class=3D""><br = class=3D""></div></span></div></div></div></div></body></html>= --Apple-Mail=_9421F49E-F06D-460C-BB5C-9D778A35F3C8--