Re: [docbook-apps] how to embed youtube videos using docbook 5.1 / xsltproc?
On Fri, 16 Dec 2022 16:15:29 + (UTC) Alemps Florimond wrote: > Hello > > Just overload the template with the > expected html code for the iframe. > https://www.w3schools.com/html/html5_video.asp might be an alternative to > iframe. > Thanks, mr./ms. Florimond. i'd like to try out your leads. > > Regards,Florimond > Le vendredi 16 décembre 2022 à 16:51:37 UTC+1, Shlomi Fish > a écrit : > how to embed youtube videos using docbook 5.1 / xsltproc? > > I want "iframe"s similar to this HTML5 page: > > https://www.shlomifish.org/philosophy/culture/case-for-commercial-fan-fiction/ > -- Shlomi Fish https://www.shlomifish.org/ My Favourite FOSS - https://www.shlomifish.org/open-source/favourite/ When Chuck Norris disses your product, it’s not good publicity, even though you can bet he’ll get the name right. — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - https://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Generating markdown output from DocBook
Hi Peter! On Tue, 26 Jan 2021 21:11:32 -0500 Peter Desjardins wrote: > I'm finding that more documentation tools are optimized for consuming > markdown these days. For example, some commercial API portal framework > <https://redoc.ly/docs/developer-portal/organizing-files/>s and > site-generation tools use markdown as their default input formats. > > Does anyone have a nice solution for using tools that consume markdown when > you write and maintain your documentation source in DocBook XML format? > > I have considered using a utility like Pandoc as a final processing step. > So the chain would be something like DocBook > XSLT > HTML > Pandoc > > markdown. > > I have also wondered whether anyone has built DocBook XSLT that directly > converts the XML to markdown. > > Do you have something that works well for you? > See: https://www.shlomifish.org/philosophy/computers/web/choice-of-docs-formats/ for a roundup. pandoc often does an imperfect job from my experience. I prefer asciidoctor over the markdowns because it has a first-class docbook 5/xml backend support and because "every markdown dialect has an army and a navy" (see: https://en.wikipedia.org/wiki/A_language_is_a_dialect_with_an_army_and_navy ). Also see https://twitter.com/shlomif/status/1350006472877420546 about why both "herd mentality" or "anti-popular"/"anti-mainstream" fixation and prejudices are not good. > Thanks! > > Peter -- Shlomi Fish https://www.shlomifish.org/ https://youtu.be/GoEn1YfYTBM - Tiffany Alvord - “Fall Together” People who think they know everything greatly annoy those of us who do. — Source unknown, via Linux’s fortune-mod Please reply to list if it's a mailing list post - https://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Fw: [docbook-apps] DocBook XSL: The Next Generation
This email bounced due to spamcop: Begin forwarded message: Date: Thu, 30 Jul 2020 14:26:24 +0300 From: Shlomi Fish To: Eric Streit Subject: Re: [docbook-apps] DocBook XSL: The Next Generation Hi Eric, On Wed, 29 Jul 2020 09:41:19 +0200 Eric Streit wrote: > thanks! > You should thank Norman - not me. Please reply to list: https://www.shlomifish.org/philosophy/computers/netiquette/email/reply-to-list.html > Eric > > Le 29/07/2020 à 09:40, Shlomi Fish a écrit : > > Hi, Norman! > > > > On Tue, 28 Jul 2020 17:12:03 +0100 > > Norman Tovey-Walsh wrote: > > > >> Hello world, > >> > >> A few days ago, I released the first version of the DocBook xslTNG > >> Stylesheets. These are a complete rewrite of DocBook to HTML stylesheets > >> in XSLT 3.0. > >> > >> The goal of the stylesheets is to produce clean, semantically rich > >> HTML(5) that can be beautifully rendered with CSS (and a dash or two of > >> JavaScript, if you wish) in the browser and in print. I’ve done my best > >> in all cases to make sure that the presentations are accessible. If you > >> find something that isn’t accessible, please report it. > >> > >> I made the 1.1.1 release yesterday. (The small fix over 1.0.0 from > >> Friday is that annotations are now more accessible.) > >> > >> See https://xsltng.docbook.org/ for details. > >> > >> Or https://so.nwalsh.com/2020/07/25-docbook-xsltng for more blather > >> about it from me. > >> > > > > Thanks for your work, and for sharing it! > > > >> Be seeing you, > >> norm > >> > >> -- > >> Norman Tovey-Walsh > >> https://nwalsh.com/ > >> > >>> Wit consists in seeing the resemblance between things which differ, and > >>> the difference between things which are alike.--Madame De Stæl > > > > > > -- Shlomi Fish https://www.shlomifish.org/ https://www.shlomifish.org/humour/bits/facts/Emma-Watson/ In the Technion, there are many ways to get from one place to the other, but they are all the same length. — https://www.shlomifish.org/humour.html Please reply to list if it's a mailing list post - https://shlom.in/reply . -- Shlomi Fish https://www.shlomifish.org/ Freecell Solver - https://fc-solve.shlomifish.org/ “God is dead.” — Nietzsche “Nietzsche is dead.” — God “Nietzsche is God.” — dead(via fortune-mod) Please reply to list if it's a mailing list post - https://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] DocBook XSL: The Next Generation
Hi, Norman! On Tue, 28 Jul 2020 17:12:03 +0100 Norman Tovey-Walsh wrote: > Hello world, > > A few days ago, I released the first version of the DocBook xslTNG > Stylesheets. These are a complete rewrite of DocBook to HTML stylesheets > in XSLT 3.0. > > The goal of the stylesheets is to produce clean, semantically rich > HTML(5) that can be beautifully rendered with CSS (and a dash or two of > JavaScript, if you wish) in the browser and in print. I’ve done my best > in all cases to make sure that the presentations are accessible. If you > find something that isn’t accessible, please report it. > > I made the 1.1.1 release yesterday. (The small fix over 1.0.0 from > Friday is that annotations are now more accessible.) > > See https://xsltng.docbook.org/ for details. > > Or https://so.nwalsh.com/2020/07/25-docbook-xsltng for more blather > about it from me. > Thanks for your work, and for sharing it! > Be seeing you, > norm > > -- > Norman Tovey-Walsh > https://nwalsh.com/ > > > Wit consists in seeing the resemblance between things which differ, and > > the difference between things which are alike.--Madame De Stæl -- Shlomi Fish https://www.shlomifish.org/ https://is.gd/htwEXQ - Integrating GNU Guile into GNU coreutils Well I don't see why I have to make one man miserable when I can make so many men happy. — Ellyn Mustard, about marriage (via fortune-mod). Please reply to list if it's a mailing list post - https://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] xsltproc does not render
Hi Bob! See https://www.shlomifish.org/meta/FAQ/#reply_to_list . CCing the list. On Thu, 21 Nov 2019 12:56:48 -0800 Bob Stayton wrote: > Hi Shlomi, > > Isn't your fix the same as what I sent to you, except for the order of > the last two "or" items? I cannot see why your fix worked and mine did > not. It worked for me when I tested it. xsltproc complained about your fix, and with it even .jpg imgs did not render. Maybe it was a copy+paste issue. Regards, Shlomi > > Bob Stayton > b...@sagehill.net > > On 11/21/2019 2:38 AM, Shlomi Fish wrote: > > Hi Bob and all! > > > > This was fixed in a recent commit with a copypasta + tweaking from the xslt > > docbook: > > > > https://github.com/shlomif/cookiecutter--shlomif-latemp-sites/commit/afa66db951e71a4b51859f57d2b371178016f914 > > > > (short URL: https://is.gd/zthno4 ) > > > > thanks! > > > > On Thu, 21 Nov 2019 11:02:13 +0200 > > Shlomi Fish wrote: > > > >> [resending due to lack of arrival.] > >> > >> Hi Bob, > >> > >> sorry but it does not work and now .jpgs are not rendered either: > >> > >> * > >> https://github.com/shlomif/my-real-person-fan-fiction/tree/fix-docbook5-imgs-links > >> (note the branch and see test.bash ) > >> > >> * https://github.com/shlomif/cookiecutter--shlomif-latemp-sites > >> > >> Can you send me a pull request or a patch as an attachment? > >> > >> Regards, > >> > >>Shlomi > >> > >> On Thu, 21 Nov 2019 09:01:25 +0200 > >> Shlomi Fish wrote: > >> > >>> Hi Bob, > >>> > >>> On Wed, 20 Nov 2019 12:24:33 -0800 > >>> Bob Stayton wrote: > >>> > >>>> Hi Shlomi, > >>>> > >>>> Thanks for pointing out this problem. The cause is that DocBook XSL > >>>> checks the filename extension on the fileref, and .webp is not included > >>>> in the list yet. I'll file a Github issue to fix that, but in the > >>>> meantime, you'll need to use this customization to get it to work: > >>>> > >>> Many thanks, Bob! I'll try that and keep you posted. > >>> > >>> Regards, > >>> > >>> Shlomi > >>>> > >>>> > >>>> > >>>> 1 > >>>> > >>>> > >>>> Bob Stayton > >>>> b...@sagehill.net > >>>> > >>>> On 11/20/2019 9:16 AM, Shlomi Fish wrote: > >>>>> hi all! > >>>>> > >>>>> with the attached file and the command: > >>>>> > >>>>> xsltproc --nonet > >>>>> http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl > >>>>> my-real-person-fan-fiction.docbook5.xml | less > >>>>> > >>>>> I am not seeing any tags. See: > >>>>> > >>>>> https://github.com/shlomif/my-real-person-fan-fiction for the asciidoc > >>>>> sources. > >>>>> > >>>>> I am on fedora 31 x86-64. > >>>>> > >>>>> How can i get the img tags working? > >>>>> > >>>>> > >>>>> - > >>>>> To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org > >>>>> For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org > >>>>> > >>> > >>> > > > > -- Shlomi Fish https://www.shlomifish.org/ Let’s talk about restores instead of backups - http://is.gd/WatQqu Cliff: And he takes losing (like with me - I won two rounds out of three) amazingly well. Says that he can learn more from a lost fight than from a fight he’s won. — http://www.shlomifish.org/humour/Buffy/A-Few-Good-Slayers/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] xsltproc does not render
Hi Bob and all! This was fixed in a recent commit with a copypasta + tweaking from the xslt docbook: https://github.com/shlomif/cookiecutter--shlomif-latemp-sites/commit/afa66db951e71a4b51859f57d2b371178016f914 (short URL: https://is.gd/zthno4 ) thanks! On Thu, 21 Nov 2019 11:02:13 +0200 Shlomi Fish wrote: > [resending due to lack of arrival.] > > Hi Bob, > > sorry but it does not work and now .jpgs are not rendered either: > > * > https://github.com/shlomif/my-real-person-fan-fiction/tree/fix-docbook5-imgs-links > (note the branch and see test.bash ) > > * https://github.com/shlomif/cookiecutter--shlomif-latemp-sites > > Can you send me a pull request or a patch as an attachment? > > Regards, > > Shlomi > > On Thu, 21 Nov 2019 09:01:25 +0200 > Shlomi Fish wrote: > > > Hi Bob, > > > > On Wed, 20 Nov 2019 12:24:33 -0800 > > Bob Stayton wrote: > > > > > Hi Shlomi, > > > > > > Thanks for pointing out this problem. The cause is that DocBook XSL > > > checks the filename extension on the fileref, and .webp is not included > > > in the list yet. I'll file a Github issue to fix that, but in the > > > meantime, you'll need to use this customization to get it to work: > > > > > > > Many thanks, Bob! I'll try that and keep you posted. > > > > Regards, > > > > Shlomi > > > > > > > > > > > > 1 > > > > > > > > > Bob Stayton > > > b...@sagehill.net > > > > > > On 11/20/2019 9:16 AM, Shlomi Fish wrote: > > > > hi all! > > > > > > > > with the attached file and the command: > > > > > > > > xsltproc --nonet > > > > http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl > > > > my-real-person-fan-fiction.docbook5.xml | less > > > > > > > > I am not seeing any tags. See: > > > > > > > > https://github.com/shlomif/my-real-person-fan-fiction for the asciidoc > > > > sources. > > > > > > > > I am on fedora 31 x86-64. > > > > > > > > How can i get the img tags working? > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org > > > > For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org > > > > > > > > > > > -- Shlomi Fish https://www.shlomifish.org/ Original Riddles - https://www.shlomifish.org/puzzles/ I promised, I forgot, I did not keep my promise — just shoot me, and get on with it! — http://www.shlomifish.org/humour.html Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] xsltproc does not render
Hi Bob, sorry but it does not work and now .jpgs are not rendered either: * https://github.com/shlomif/my-real-person-fan-fiction/tree/fix-docbook5-imgs-links (note the branch and see test.bash ) * https://github.com/shlomif/cookiecutter--shlomif-latemp-sites Can you send me a pull request or a patch as an attachment? Regards, Shlomi On Thu, 21 Nov 2019 09:01:25 +0200 Shlomi Fish wrote: > Hi Bob, > > On Wed, 20 Nov 2019 12:24:33 -0800 > Bob Stayton wrote: > > > Hi Shlomi, > > > > Thanks for pointing out this problem. The cause is that DocBook XSL > > checks the filename extension on the fileref, and .webp is not included > > in the list yet. I'll file a Github issue to fix that, but in the > > meantime, you'll need to use this customization to get it to work: > > > > Many thanks, Bob! I'll try that and keep you posted. > > Regards, > > Shlomi > > > > > > > > 1 > > > > > > Bob Stayton > > b...@sagehill.net > > > > On 11/20/2019 9:16 AM, Shlomi Fish wrote: > > > hi all! > > > > > > with the attached file and the command: > > > > > > xsltproc --nonet > > > http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl > > > my-real-person-fan-fiction.docbook5.xml | less > > > > > > I am not seeing any tags. See: > > > > > > https://github.com/shlomif/my-real-person-fan-fiction for the asciidoc > > > sources. > > > > > > I am on fedora 31 x86-64. > > > > > > How can i get the img tags working? > > > > > > > > > - > > > To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org > > > For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org > > > > > > -- Shlomi Fish https://www.shlomifish.org/ https://youtu.be/xZLwtc9x4yA - Anime in Real Life!! (Parody) George: I guess you can enter now. I’m just following orders. SGlau: The Nuremberg defense! George: This place gives you no other option. — http://www.shlomifish.org/humour/Summerschool-at-the-NSA/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] xsltproc does not render
[resending due to lack of arrival.] Hi Bob, sorry but it does not work and now .jpgs are not rendered either: * https://github.com/shlomif/my-real-person-fan-fiction/tree/fix-docbook5-imgs-links (note the branch and see test.bash ) * https://github.com/shlomif/cookiecutter--shlomif-latemp-sites Can you send me a pull request or a patch as an attachment? Regards, Shlomi On Thu, 21 Nov 2019 09:01:25 +0200 Shlomi Fish wrote: > Hi Bob, > > On Wed, 20 Nov 2019 12:24:33 -0800 > Bob Stayton wrote: > > > Hi Shlomi, > > > > Thanks for pointing out this problem. The cause is that DocBook XSL > > checks the filename extension on the fileref, and .webp is not included > > in the list yet. I'll file a Github issue to fix that, but in the > > meantime, you'll need to use this customization to get it to work: > > > > Many thanks, Bob! I'll try that and keep you posted. > > Regards, > > Shlomi > > > > > > > > 1 > > > > > > Bob Stayton > > b...@sagehill.net > > > > On 11/20/2019 9:16 AM, Shlomi Fish wrote: > > > hi all! > > > > > > with the attached file and the command: > > > > > > xsltproc --nonet > > > http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl > > > my-real-person-fan-fiction.docbook5.xml | less > > > > > > I am not seeing any tags. See: > > > > > > https://github.com/shlomif/my-real-person-fan-fiction for the asciidoc > > > sources. > > > > > > I am on fedora 31 x86-64. > > > > > > How can i get the img tags working? > > > > > > > > > - > > > To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org > > > For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org > > > > > > -- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] xsltproc does not render
Hi Bob, On Wed, 20 Nov 2019 12:24:33 -0800 Bob Stayton wrote: > Hi Shlomi, > > Thanks for pointing out this problem. The cause is that DocBook XSL > checks the filename extension on the fileref, and .webp is not included > in the list yet. I'll file a Github issue to fix that, but in the > meantime, you'll need to use this customization to get it to work: > Many thanks, Bob! I'll try that and keep you posted. Regards, Shlomi > > > > 1 > > > Bob Stayton > b...@sagehill.net > > On 11/20/2019 9:16 AM, Shlomi Fish wrote: > > hi all! > > > > with the attached file and the command: > > > > xsltproc --nonet > > http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl > > my-real-person-fan-fiction.docbook5.xml | less > > > > I am not seeing any tags. See: > > > > https://github.com/shlomif/my-real-person-fan-fiction for the asciidoc > > sources. > > > > I am on fedora 31 x86-64. > > > > How can i get the img tags working? > > > > > > - > > To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org > > For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org -- Shlomi Fish https://www.shlomifish.org/ http://is.gd/i5eMQd - Emma Watson’s Interview for a Software Dev Job An original philosopher knows the right combination of ideas to steal. — http://www.shlomifish.org/humour.html Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] xsltproc does not render
hi all! with the attached file and the command: xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl my-real-person-fan-fiction.docbook5.xml | less I am not seeing any tags. See: https://github.com/shlomif/my-real-person-fan-fiction for the asciidoc sources. I am on fedora 31 x86-64. How can i get the img tags working? -- Shlomi Fish https://www.shlomifish.org/ https://github.com/shlomif/what-you-should-know-about-automated-testing Chuck Norris helps the gods that help themselves. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . my-real-person-fan-fiction.docbook5.xml Description: XML document - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Chapter title in a smaller font the section titles
On Mon, 26 Nov 2018 10:09:47 +0100 Bernhard Kleine wrote: > I had no influence over the size of the titles (the only size > information in my customization is body.font.master), but chapter titles > appear smaller the section titles as you see in the screenshot. > Hi! I don't see a screenshot anywhere. > Where to remedy that? > > Regards Bernhard > -- ----- Shlomi Fish http://www.shlomifish.org/ Escape from GNU Autohell - http://www.shlomifish.org/open-source/anti/autohell/ I believe in the Golden Rule - the man with the gold... rules. — https://en.wikiquote.org/wiki/Mr._T (Attributed) Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] [ANN] docmake 0.0603 ; Choice of Docs Formats document updated ; The shlomif-docbook generation framework
Hi all! This email announces three new updates: 1. https://metacpan.org/pod/distribution/App-XML-DocBook-Builder/bin/docmake v. 0.0603 with support for generating xhtml5 and the new --trailing-slash=0 flag: docmake is a tool to render DocBook/XML into its resultant formats using XSLT: XHTML, XSL-FO, PDF, RTF, etc. For a brief help type docmake help . It aims to be a replacement for xmlto - http://cyberelk.net/tim/software/xmlto/ . As opposed to xmlto, it is written in Perl, which is easier to get right than xmlto's Bash, and xmlto hasn't been updated for a long time when I started work on docmake. # To render input.xml file into XHTML docmake -o output.xhtml xhtml input.xml # Same with more verbose output docmake -v -o output.xhtml xhtml input.xml # Avoid trailing slash when emitting to a dummy file in a dir docmake --trailing-slash=0 -o output/notneeded.xhtml xhtml5 input.xml # Render into pdf docmake -v -o output.pdf pdf input.xml # Same while not rebuilding if not necessary docmake -v --make -o output.pdf pdf input.xml # Render using a Stylesheet docmake -v -o output.xhtml -x my-stylesheets.xsl xhtml input.xml - 2. The document https://www.shlomifish.org/philosophy/computers/web/choice-of-docs-formats/ was recently updated and still recommends taking a look at DocBook 5/XML and Asciidoc(tor). It is available under https://creativecommons.org/licenses/by/4.0/ . 3. I recently started extracting my homesite's GNU Make-based framework for generating various formats out of DocBook 5 and it is available here for now: https://github.com/shlomif/cookiecutter--shlomif-latemp-sites it requires docmake, gnu make, some CPAN modules and may be too opinionated, and documentation is somewhat scarce at the moment. Licence is https://tldrlegal.com/license/mit-license . Enjoy! -- - Shlomi Fish http://www.shlomifish.org/ http://shlomifishswiki.branchable.com/Encourage_criticism_and_try_to_get_offended/ The conversation about how someone shouldn’t do something in an IRC channel is always at least twice as long as the text the accused person created in the first place — Chris62vw’s Rule Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Find unused XML files in a projectSZ@#%€£€¿£€=£_£¥:-\O:-)O:-):-D££¡3
Aa On 31 Jul 2014 08:22, Nordlund, Eric er...@amazon.com wrote: Hello docbook-apps. I have a large set of projects that I am looking to scrub for unused graphics and XML files prior to sending off to localization. Some of my colleagues have created some very basic bash and batch scripts to scan through the folders and find files that aren’t referenced in any of the source files so we can delete them, but I worry that these scripts don’t catch everything (unused XML files in the base directory that reference images will ‘bless’ this images) and we could still have extraneous files left over or accidentally delete important ones unknowingly. Each project has a book.xml file that is the gold master for the outputs. If the book.xml file or any of its includes doesn’t reference a file in the project, it’s safe to delete. I was hoping that I could use xmllint to tell me which files are loaded when I try to validate the book.xml, but I haven’t found the magic formula yet. I’ve tried the following command to reference all of the loaded files during a pass, but it doesn’t seem to list the image files referenced, which is mostly the point of this exercise, and I get a lot of noise from the module files for the DTD on every include. $ xmllint --load-trace book.xml --xinclude --noout test1 Has anyone had a similar problem to solve? Am I going about this the right way? Thanks, and I’m open to any suggestion. If bash and xmllint don’t work here, I am partial to Python as an alternative. Just saying. *Eric Nordlund* Senior Technical Writer Amazon Web Services Ph: 206-266-8048 | er...@amazon.com [image: Description: Description: New Picture]
Re: [docbook-apps] Re: Fw: Typo at http://www.sagehill.net/docbookxsl/TOCcontrol.html#SectionTocs - It's vs. Its
On Mon, 03 Feb 2014 09:55:41 -0800 Bob Stayton b...@sagehill.net wrote: Fixed now. Thanks! Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Rethinking CPAN - http://shlom.in/rethinking-cpan We agree. But do we agree to agree? Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Fw: Typo at http://www.sagehill.net/docbookxsl/TOCcontrol.html#SectionTocs - It's vs. Its
Hi, Bob! I didn't hear from you and the typo was not fixed. Can you tend to it? Regards, Shlomi Fish Begin forwarded message: Date: Fri, 9 Aug 2013 19:30:49 +0300 From: Shlomi Fish shlo...@shlomifish.org To: i...@sagehill.net Subject: Typo at http://www.sagehill.net/docbookxsl/TOCcontrol.html#SectionTocs - It's vs. Its Hi Bob, In http://www.sagehill.net/docbookxsl/TOCcontrol.html#SectionTocs , «It's default value of 2 means only sections up to sect2 will appear in any TOC.» == It's should be Its. Please correct it and maybe go over the rest of the manuscript to catch other typos like that. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/ Larry Wall dreams in Perl. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- - Shlomi Fish http://www.shlomifish.org/ Buffy Factoids - http://www.shlomifish.org/humour/bits/facts/Buffy/ Wikipedia has a page about everything including the http://en.wikipedia.org/wiki/Kitchen_sink . Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] dbtoepub is broken on latest docbook-xsl-ns-snapshot
Hi Bob and all, On Sun, 12 May 2013 00:06:57 +0300 Shlomi Fish shlo...@shlomifish.org wrote: Hi Bob, On Sat, 11 May 2013 13:02:29 -0700 Bob Stayton b...@sagehill.net wrote: The snapshot build machine is still having problems, and they seem to be at the filesystem level rather than the DocBook tools level. We are working to get it fixed. In the meantime, use the 1.78.1 distribution instead of the snapshot build. Sorry. Thanks for letting me know and for the advice about the workaround. I'm going to try it. Thanks! Using the 1.78.1 distribution appears to have made it work again. Regards, Shlomi Fish Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- - Shlomi Fish http://www.shlomifish.org/ What does Zionism mean? - http://shlom.in/def-zionism In the Technion, there are many ways to get from one place to the other, but they are all the same length. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] dbtoepub is broken on latest docbook-xsl-ns-snapshot
Hi all, does anyone have any idea about it? Regards, Shlomi Fish On Wed, 8 May 2013 14:08:59 +0300 Shlomi Fish shlo...@shlomifish.org wrote: Hi all, On Mon, 6 May 2013 20:23:52 +0300 Shlomi Fish shlo...@shlomifish.org wrote: Hi all, dbtoepub appears to be broken on the latest docbook-xsl-ns-snapshot. How can it be fixed? I'm on Mageia Linux 3 Cauldron and the xhtml-1_1 stylesheets appear to be missing. I'm attaching the offending DocBook 5/XML file inside a .zip file. This still happens with the latest snapshot: 1. $ tar -tvf ~/docbook-xsl-ns-snapshot.tar.bz2 | grep xhtml-1 | wc -l 0 2. sha256sum gives me: f6ab45400273992f0dc2d5bf769abc1f77315a941b73d069562d182075041faf /home/shlomif/docbook-xsl-ns-snapshot.tar.bz2 3. Dated from 8-May: 4. With the .zip I am getting: shlomif@telaviv1:~$ ruby /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub -o The-Enemy-English.epub PROCESSED_The-Enemy-English.db5.xml warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/docbook.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl line 21 element import xsl:import : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/docbook.xsl warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-common.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl line 22 element import xsl:import : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-common.xsl warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-code.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl line 23 element include xsl:include : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-code.xsl /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/lib/docbook.rb:91:in `render_to_epub': Could not render as .epub to The-Enemy-English.epub (cd /home/shlomif/tmp/.epubtmp1368011298.393787 xsltproc --stringparam chunk.quietly 1 --stringparam callout.graphics.path images/callouts/ --stringparam callout.graphics.number.limit 15 --stringparam callout.graphics.extension .png --stringparam base.dir OEBPS/ --stringparam epub.metainf.dir META-INF/ --stringparam epub.oebps.dir OEBPS/ /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl /home/shlomif/.collapsed.PROCESSED_The-Enemy-English.db5.xml) (RuntimeError) from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/lib/docbook.rb:43:in `render_to_file' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub:75:in `block in main' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub:64:in `each' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub:64:in `main' shlomif@telaviv1:~$ Can anyone help? Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Beginners Site for the Vim text editor - http://vim.begin-site.org/ rindolf buu: do you have a functional spec? An architecture document? An interface whitepaper? A developer’s guide? A user manual? A “The BL Book” and “BL — The Program”? buu rindolf: no, no, no no and no Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] dbtoepub is broken on latest docbook-xsl-ns-snapshot
Hi Bob, On Sat, 11 May 2013 13:02:29 -0700 Bob Stayton b...@sagehill.net wrote: The snapshot build machine is still having problems, and they seem to be at the filesystem level rather than the DocBook tools level. We are working to get it fixed. In the meantime, use the 1.78.1 distribution instead of the snapshot build. Sorry. Thanks for letting me know and for the advice about the workaround. I'm going to try it. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- - Shlomi Fish http://www.shlomifish.org/ Parody of The Fountainhead - http://shlom.in/towtf Knuth is not God! Unless you confuse him with Dijkstra. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] dbtoepub is broken on latest docbook-xsl-ns-snapshot
Hi all, On Mon, 6 May 2013 20:23:52 +0300 Shlomi Fish shlo...@shlomifish.org wrote: Hi all, dbtoepub appears to be broken on the latest docbook-xsl-ns-snapshot. How can it be fixed? I'm on Mageia Linux 3 Cauldron and the xhtml-1_1 stylesheets appear to be missing. I'm attaching the offending DocBook 5/XML file inside a .zip file. This still happens with the latest snapshot: 1. $ tar -tvf ~/docbook-xsl-ns-snapshot.tar.bz2 | grep xhtml-1 | wc -l 0 2. sha256sum gives me: f6ab45400273992f0dc2d5bf769abc1f77315a941b73d069562d182075041faf /home/shlomif/docbook-xsl-ns-snapshot.tar.bz2 3. Dated from 8-May: 4. With the .zip I am getting: shlomif@telaviv1:~$ ruby /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub -o The-Enemy-English.epub PROCESSED_The-Enemy-English.db5.xml warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/docbook.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl line 21 element import xsl:import : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/docbook.xsl warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-common.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl line 22 element import xsl:import : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-common.xsl warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-code.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl line 23 element include xsl:include : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/xhtml-1_1/chunk-code.xsl /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/lib/docbook.rb:91:in `render_to_epub': Could not render as .epub to The-Enemy-English.epub (cd /home/shlomif/tmp/.epubtmp1368011298.393787 xsltproc --stringparam chunk.quietly 1 --stringparam callout.graphics.path images/callouts/ --stringparam callout.graphics.number.limit 15 --stringparam callout.graphics.extension .png --stringparam base.dir OEBPS/ --stringparam epub.metainf.dir META-INF/ --stringparam epub.oebps.dir OEBPS/ /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/docbook.xsl /home/shlomif/.collapsed.PROCESSED_The-Enemy-English.db5.xml) (RuntimeError) from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/lib/docbook.rb:43:in `render_to_file' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub:75:in `block in main' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub:64:in `each' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub:64:in `main' shlomif@telaviv1:~$ Can anyone help? Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Star Trek: We, the Living Dead - http://shlom.in/st-wtld Q2: Busy people are unproductive. We are very productive and so we’re never busy. — http://www.shlomifish.org/humour/Star-Trek/We-the-Living-Dead/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] dbtoepub is broken on latest docbook-xsl-ns-snapshot
Hi Thomas, On Wed, 8 May 2013 13:49:56 +0200 Thomas Schraitle tom_s...@web.de wrote: Hi Shlomi, On Wed, 8 May 2013 14:08:59 +0300 Shlomi Fish shlo...@shlomifish.org wrote: This still happens with the latest snapshot: 1. $ tar -tvf ~/docbook-xsl-ns-snapshot.tar.bz2 | grep xhtml-1 | wc -l 0 2. sha256sum gives me: f6ab45400273992f0dc2d5bf769abc1f77315a941b73d069562d182075041faf /home/shlomif/docbook-xsl-ns-snapshot.tar.bz2 3. Dated from 8-May: You've used the namespace aware version. Have you tried the non-namespaced version? Download the docbook-xsl-snapshot.tar.bz2 and try again, please. Now that I try it, I get the same result: [SHELL] shlomif@telaviv1:~$ shlomif@telaviv1:~$ shlomif@telaviv1:~$ shlomif@telaviv1:~$ shlomif@telaviv1:~$ shlomif@telaviv1:~$ shlomif@telaviv1:~$ ruby /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/bin/dbtoepub -o The-Enemy-English.epub PROCESSED_The-Enemy-English.db5.xml warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/xhtml-1_1/docbook.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/docbook.xsl line 20 element import xsl:import : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/xhtml-1_1/docbook.xsl warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/xhtml-1_1/chunk-common.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/docbook.xsl line 21 element import xsl:import : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/xhtml-1_1/chunk-common.xsl warning: failed to load external entity /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/xhtml-1_1/chunk-code.xsl compilation error: file /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/docbook.xsl line 22 element include xsl:include : unable to load /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/xhtml-1_1/chunk-code.xsl /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/bin/lib/docbook.rb:91:in `render_to_epub': Could not render as .epub to The-Enemy-English.epub (cd /home/shlomif/tmp/.epubtmp1368019229.582523 xsltproc --stringparam chunk.quietly 1 --stringparam callout.graphics.path images/callouts/ --stringparam callout.graphics.number.limit 15 --stringparam callout.graphics.extension .png --stringparam base.dir OEBPS/ --stringparam epub.metainf.dir META-INF/ --stringparam epub.oebps.dir OEBPS/ /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/docbook.xsl /home/shlomif/.collapsed.PROCESSED_The-Enemy-English.db5.xml) (RuntimeError) from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/bin/lib/docbook.rb:43:in `render_to_file' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/bin/dbtoepub:75:in `block in main' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/bin/dbtoepub:64:in `each' from /home/shlomif/Download/unpack/file/docbook/docbook-xsl-snapshot/epub/bin/dbtoepub:64:in `main' shlomif@telaviv1:~$ [/SHELL] I'm also interested in using the namespace-aware version. shlomif@telaviv1:~/Download/unpack/file/docbook$ sha256sum docbook-xsl-snapshot.tar.bz2 9df02e382ee2ca2fff961617befb6e98a3b825d2709fb5db909393c6e9d15582 docbook-xsl-snapshot.tar.bz2 shlomif@telaviv1:~/Download/unpack/file/docbook$ Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Humanity - Parody of Modern Life - http://shlom.in/humanity My Commodore 64 is suffering from slowness and insufficiency of memory, and its display device is grievously short of pixels. Can anybody help? — Omer Zak Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] dbtoepub is broken on latest docbook-xsl-ns-snapshot
Hi Bob, On Mon, 6 May 2013 10:50:12 -0700 Bob Stayton b...@sagehill.net wrote: The snapshot build process is currently broken, I'm afraid. There appears to be filesystem corruption that is producing random SVN locks in the working copy. We are working on it. OK, thanks for letting us know. Is there anywhere I can find a working snapshot? Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- - Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/ Clarissa Darling will win over Chuck Norris in a battle of wits. — http://www.shlomifish.org/humour/bits/facts/Clarissa/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] DocBook/XSL: What's the Subversion/SVN URL of the docbook-xsl-ns and docbook-xsl stylesheets?
Hi all, Please let me know what is the Subversion/SVN URL of the docbook-xsl-ns and docbook-xsl stylesheets that can be found here: http://docbook.sourceforge.net/snapshot/ . I want to do an svn checkout/svn co command and update it using svn update/svn up. You can also answer it on http://stackoverflow.com/questions/16151067/docbook-xsl-whats-the-subversion-svn-url-of-the-docbook-xsl-ns-and-docbook-xsl ( shorter URL - http://stackoverflow.com/questions/16151067/ ) and let me know about it. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Interview with Ben Collins-Sussman - http://shlom.in/sussman There are no deletionists. Only Wikipedia articles which Chuck Norris allows to live. (By: joeyadams) — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] DocBook/XSL: What's the Subversion/SVN URL of the docbook-xsl-ns and docbook-xsl stylesheets?
Hi Stefan, On Mon, 22 Apr 2013 12:22:36 -0400 Stefan Seefeld ste...@seefeld.name wrote: On 04/22/2013 11:39 AM, Shlomi Fish wrote: Hi all, Please let me know what is the Subversion/SVN URL of the docbook-xsl-ns and docbook-xsl stylesheets that can be found here: http://docbook.sourceforge.net/snapshot/ . I want to do an svn checkout/svn co command and update it using svn update/svn up. The DB stylesheet sources are here: https://docbook.svn.sourceforge.net/svnroot/docbook/trunk Please note that there are no separate trees for xsl-ns and xsl. Both packages are generated from the same sources. In fact, to be able to work with the source tree requires quite a bit of insight knowledge of the build process, as well as a bunch of prerequisite tools. Unless you really know what you are doing it might be best to stick to prepackaged releases / snapshots. Thanks for the info. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/ Chuck Norris does not code; when he sits at a computer, it just does whatever he wants. — Kattana on Freenode’s #perl6 . — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] DocBook/XSL: What's the Subversion/SVN URL of the docbook-xsl-ns and docbook-xsl stylesheets?
Hi Bob, On Mon, 22 Apr 2013 09:45:50 -0700 Bob Stayton b...@sagehill.net wrote: Hi Shlomi The SVN co command is described here: http://sourceforge.net/scm/?type=svngroup_id=21935 Please be aware that the DocBook XSL distributions are built from the SVN source files, and will not run directly from the SVN repo. For example, the -ns- version is built from the non-namespaced version so they stay in sync, so you won't find the -ns- version in the repo. BTW, the snapshot URL you mentioned is obsolete. The current snapshots are found here: http://snapshots.docbook.org/ I thought the old one was redirected, but apparently not. I'll redirect to the new location. I see. Thanks for the information. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Monday, April 22, 2013 8:39 AM To: docbook-apps@lists.oasis-open.org Subject: [docbook-apps] DocBook/XSL: What's the Subversion/SVN URL of the docbook-xsl-ns and docbook-xsl stylesheets? Hi all, Please let me know what is the Subversion/SVN URL of the docbook-xsl-ns and docbook-xsl stylesheets that can be found here: http://docbook.sourceforge.net/snapshot/ . I want to do an svn checkout/svn co command and update it using svn update/svn up. You can also answer it on http://stackoverflow.com/questions/16151067/docbook-xsl-whats-the-subversion-svn-url-of-the-docbook-xsl-ns-and-docbook-xsl ( shorter URL - http://stackoverflow.com/questions/16151067/ ) and let me know about it. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Interview with Ben Collins-Sussman - http://shlom.in/sussman There are no deletionists. Only Wikipedia articles which Chuck Norris allows to live. (By: joeyadams) — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org -- - Shlomi Fish http://www.shlomifish.org/ Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/ Reality to be conquered, must be obeyed. You’d better obey Chuck Norris or he’ll conquer you. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi Bob, On Tue, 9 Apr 2013 10:04:13 -0700 Bob Stayton b...@sagehill.net wrote: HI Shlomi, Your .xslt file is trying to do two things at once, and it won't work as written. It seems you need to preprocess the XML to alter the legalnotice, but you should do that step *before* processing it to generate epub output. 1. Run an XSLT process with xsltproc or saxon with your original preprocess stylesheet without importing the epub stylesheet. That will generate a temporary DocBook XML file with the altered legalnotice. 2. Run the ruby process on that temporary DocBook file using another stylesheet that imports epub/docbook.xsl and includes the empty d:revhistory templates. Using this stylesheet does not appear to get rid of the revhistory in the final epub either: # Start of docbook-epub-preproc.xsl ?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns=http://docbook.org/ns/docbook; xmlns:d=http://docbook.org/ns/docbook; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xlink=http://www.w3.org/1999/xlink; xsl:import href=epub/docbook.xsl / xsl:output method=xml version=1.0 encoding=UTF-8 indent=no / !-- Get rid of the revhistory element -- xsl:template match=d:revhistory mode=titlepage.mode / xsl:template match=d:revhistory / /xsl:stylesheet End. Any insights will be appreciated. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Sunday, April 07, 2013 11:14 AM To: Bob Stayton b...@sagehill.net Cc: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output Hi Bob, sorry for the late response. On Wed, 3 Apr 2013 08:50:54 -0700 Bob Stayton b...@sagehill.net wrote: Hi, I'm not clear what is going wrong with your setup. I just tried this simple customization stylesheet: OK, now it seems I am trying the docbook-xsl-ns instead. Here is something that reproduces this: http://www.shlomifish.org/temp-db5-epub/ The http://www.shlomifish.org/temp-db5-epub/epub_repr.zip contains two files: 1. human-hacking-field-guide--english.db5.xml - the DocBook 5/XML file. 2. docbook-epub-preproc.xslt - the customisation layer. 3. epub-build.bash - a script I use to locally build it. Can you tell me what is wrong? I also tried it with: xsl:import href=docbook-xsl-ns-snapshot/epub/docbook.xsl / Instead. Best regards, Shlomi Fish -- ?xml version=1.0 encoding=utf-8? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:d=http://docbook.org/ns/docbook; version=1.0 xsl:import href=docbook-xsl-ns-1.78.1/epub/docbook.xsl/ xsl:template match=d:revhistory mode=titlepage.mode/ /xsl:stylesheet -- I ran this command on a DocBook 5 book containing info/revhistory: docbook-xsl-1.78.1/epub/bin/dbtoepub -s custom5.xsl mybook.xml and the revhistory does not show on the title page. So the custom XSL template does work, but for some reason is not being applied in your setup. Can you put an XSL message in your custom template to see if it is being called? Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Tuesday, April 02, 2013 2:56 PM To: Bob Stayton b...@sagehill.net Cc: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output Hi Bob, On Tue, 2 Apr 2013 09:37:36 -0700 Bob Stayton b...@sagehill.net wrote: Hi, I would have written those custom templates to match on revhistory, not on the descendants of revhistory: !-- Get rid of the revhistory element -- xsl:template match=d:revhistory mode=titlepage.mode / xsl:template match=d:revhistory / Did you try that? I tried it - yes. Didn't work. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ What does Zionism mean? - http://shlom.in/def-zionism In Soviet Russia, superstition believes in you. — Sawyer X Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi all, On Tue, 9 Apr 2013 23:05:18 +0300 Shlomi Fish shlo...@shlomifish.org wrote: Hi Bob, On Tue, 9 Apr 2013 10:04:13 -0700 Bob Stayton b...@sagehill.net wrote: after some tinkering here is what allowed me to fix the problem eventually: https://github.com/shlomif/Human-Hacking-Field-Guide/commit/337ad3365e6b375ecb34492954a7b37da960e7b6 There were several problems: 1. No fully qualified URL in the import. 2. The ruby -s flag which interfered. 3. Others in the commit. Now I'm very happy. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ My Aphorisms - http://www.shlomifish.org/humour.html Gödel’s Incompleteness Theorem is about to be replaced by the [Clarissa] Darling “Like, Totally!” Completeness Theorem. — http://www.shlomifish.org/humour/bits/facts/Clarissa/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi Bob, sorry for the late response. On Wed, 3 Apr 2013 08:50:54 -0700 Bob Stayton b...@sagehill.net wrote: Hi, I'm not clear what is going wrong with your setup. I just tried this simple customization stylesheet: OK, now it seems I am trying the docbook-xsl-ns instead. Here is something that reproduces this: http://www.shlomifish.org/temp-db5-epub/ The http://www.shlomifish.org/temp-db5-epub/epub_repr.zip contains two files: 1. human-hacking-field-guide--english.db5.xml - the DocBook 5/XML file. 2. docbook-epub-preproc.xslt - the customisation layer. 3. epub-build.bash - a script I use to locally build it. Can you tell me what is wrong? I also tried it with: xsl:import href=docbook-xsl-ns-snapshot/epub/docbook.xsl / Instead. Best regards, Shlomi Fish -- ?xml version=1.0 encoding=utf-8? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:d=http://docbook.org/ns/docbook; version=1.0 xsl:import href=docbook-xsl-ns-1.78.1/epub/docbook.xsl/ xsl:template match=d:revhistory mode=titlepage.mode/ /xsl:stylesheet -- I ran this command on a DocBook 5 book containing info/revhistory: docbook-xsl-1.78.1/epub/bin/dbtoepub -s custom5.xsl mybook.xml and the revhistory does not show on the title page. So the custom XSL template does work, but for some reason is not being applied in your setup. Can you put an XSL message in your custom template to see if it is being called? Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Tuesday, April 02, 2013 2:56 PM To: Bob Stayton b...@sagehill.net Cc: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output Hi Bob, On Tue, 2 Apr 2013 09:37:36 -0700 Bob Stayton b...@sagehill.net wrote: Hi, I would have written those custom templates to match on revhistory, not on the descendants of revhistory: !-- Get rid of the revhistory element -- xsl:template match=d:revhistory mode=titlepage.mode / xsl:template match=d:revhistory / Did you try that? I tried it - yes. Didn't work. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ What does Zionism mean? - http://shlom.in/def-zionism In Soviet Russia, superstition believes in you. — Sawyer X Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org -- - Shlomi Fish http://www.shlomifish.org/ Buffy Factoids - http://www.shlomifish.org/humour/bits/facts/Buffy/ Comedy is simply a funny way of being serious. — http://en.wikiquote.org/wiki/Peter_Ustinov Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi Bob, On Tue, 2 Apr 2013 09:37:36 -0700 Bob Stayton b...@sagehill.net wrote: Hi, I would have written those custom templates to match on revhistory, not on the descendants of revhistory: !-- Get rid of the revhistory element -- xsl:template match=d:revhistory mode=titlepage.mode / xsl:template match=d:revhistory / Did you try that? I tried it - yes. Didn't work. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ What does Zionism mean? - http://shlom.in/def-zionism In Soviet Russia, superstition believes in you. — Sawyer X Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi all, On Mon, 25 Mar 2013 19:15:50 +0200 Shlomi Fish shlo...@shlomifish.org wrote: Hi all, I am trying to get rid of the revhistory / tag in the EPUB output here: https://github.com/shlomif/Human-Hacking-Field-Guide/tree/master/HHFG/text see below for more information - any help will be appreciated. Thanks for all your help. OK, now my XSLT file reads: «QUOTE» xsl:stylesheet version = '1.0' xmlns=http://docbook.org/ns/docbook; xmlns:d=http://docbook.org/ns/docbook; xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:xlink=http://www.w3.org/1999/xlink; xsl:import href=epub/docbook.xsl / xsl:output method=xml version=1.0 encoding=UTF-8 indent=no / xsl:template match=* xsl:choose xsl:when test=local-name() = 'legalnotice' legalnotice xsl:copy-of select=@*/ xsl:call-template name=nc_legal_notice / /legalnotice /xsl:when xsl:otherwise xsl:element name={local-name()} xsl:copy-of select=@* / xsl:apply-templates / /xsl:element /xsl:otherwise /xsl:choose /xsl:template xsl:template name=nc_legal_notice para This document is copyrighted by Shlomi Fish under the link xlink:href=http://creativecommons.org/licenses/by-nc-sa/3.0/;Creative Commons Attribution Noncommercial Share-Alike (Unported) License (CC-by-nc-sa) version 3.0/link (or at your option, any greater version). /para para Note that the original text of the story and its DocBook source is under CC-by-sa, but the author relicensed the final EPUB to CC-by-nc-sa upon publishing. /para /xsl:template !-- Get rid of the revhistory element -- xsl:template match=d:revhistory//* mode=titlepage.mode / xsl:template match=d:revhistory//* / /xsl:stylesheet «/QUOTE» I am still getting the revhistory / elements in the EPUB right at the beginning. I invoke the command like this: QUOTE ruby -s /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub -s docbook-epub-preproc.xslt -o human-hacking-field-guide--english.epub human-hacking-field-guide--english.db5.xml /QUOTE Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Freecell Solver - http://fc-solve.shlomifish.org/ Chuck Norris is the greatest man in history. He killed all the great men who could ever pose a competition. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi Bob, On Wed, 27 Mar 2013 09:52:07 -0700 Bob Stayton b...@sagehill.net wrote: Hi Shlomi, Yes, the dbtoepub is the script to generate epub2 output using the stylesheets in the epub directory. Ah, OK. If you are using DocBook 5 and the namespaced stylesheets, then any custom templates that specify an element name must attach the namespace prefix to the element name. See this section of my book for details: http://www.sagehill.net/docbookxsl/ProcesingDb5.html#Db5Xslt Thanks! I'll remedy it. So your empty template should use match=d:revhistory, where the d: prefix is bound to the DocBook 5 namespace. OK, thanks. Will do. But I looked at docbook-epub-preproc.xslt and it does not import the stock epub/docbook.xsl file. I don't understand how it produces any useful output at all. Are you use that is the file you use? == Are you sure that is the file you use? Yes, I'm positive. It does appear to produce something, and if I put invalid XML inside the .xslt, then xslt fails spectacularly, but maybe it's one of xsltproc's quirks and things it ignores and moves on to without failing spectacularly. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Tuesday, March 26, 2013 10:30 AM To: Bob Stayton b...@sagehill.net Cc: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output Hi Bob, thanks for returning to me. See below for my responses. On Tue, 26 Mar 2013 08:59:00 -0700 Bob Stayton b...@sagehill.net wrote: Hi, More details are needed to determine the problem. let me answer them one by one. What numbered version of DocBook XSL are you using? Close to latest docbook-xsl-ns-snapshot from http://docbook.sourceforge.net/snapshot/ . Are you using DocBook 5 and the the docbook-ns stylesheets, or DocBook4 and the non-namespaced stylesheets? I'm using DocBook 5 and docbook-ns. Are you processing a book or article? Technically, the story is an article. You can find it at: https://github.com/shlomif/Human-Hacking-Field-Guide/blob/master/HHFG/text/human-hacking-field-guide--english.db5.xml Is the revhistory element located in an info element or in the body of the document? (revhistory can appear in a para, for example) Inside an info/info Are you using the epub or epub3 stylesheet? The EPUB ones I think. I can try using the EPUB 3 too. How are you importing it and customizing it I use this: ruby -s /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub -s docbook-epub-preproc.xslt -o human-hacking-field-guide--english.epub human-hacking-field-guide--english.db5.xml Where docbook-epub-preproc.xslt is: https://github.com/shlomif/Human-Hacking-Field-Guide/blob/master/HHFG/text/docbook-epub-preproc.xslt (sorry, I don't have time to reverse engineer your whole build setup). Sure, I'm happy to provide assistance. Sorry for losing patience several times before - I think I figured out what the problem is, and I was doing something wrong, but it's too bad the toolchains did not crash and burn and eat my dog when I did it. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net [SNIPPED] -- - Shlomi Fish http://www.shlomifish.org/ My Public Domain Photos - http://www.flickr.com/photos/shlomif/ Every successful open source project will eventually spawn a sub‐project. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- - Shlomi Fish http://www.shlomifish.org/ Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/ The difference between a good student and a bad student is that a bad student forgets the material five minutes before the test, while a good student five minutes afterwards. — One of Shlomi Fish’s Technion Lecturers Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi Bob, thanks for returning to me. See below for my responses. On Tue, 26 Mar 2013 08:59:00 -0700 Bob Stayton b...@sagehill.net wrote: Hi, More details are needed to determine the problem. let me answer them one by one. What numbered version of DocBook XSL are you using? Close to latest docbook-xsl-ns-snapshot from http://docbook.sourceforge.net/snapshot/ . Are you using DocBook 5 and the the docbook-ns stylesheets, or DocBook4 and the non-namespaced stylesheets? I'm using DocBook 5 and docbook-ns. Are you processing a book or article? Technically, the story is an article. You can find it at: https://github.com/shlomif/Human-Hacking-Field-Guide/blob/master/HHFG/text/human-hacking-field-guide--english.db5.xml Is the revhistory element located in an info element or in the body of the document? (revhistory can appear in a para, for example) Inside an info/info Are you using the epub or epub3 stylesheet? The EPUB ones I think. I can try using the EPUB 3 too. How are you importing it and customizing it I use this: ruby -s /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub -s docbook-epub-preproc.xslt -o human-hacking-field-guide--english.epub human-hacking-field-guide--english.db5.xml Where docbook-epub-preproc.xslt is: https://github.com/shlomif/Human-Hacking-Field-Guide/blob/master/HHFG/text/docbook-epub-preproc.xslt (sorry, I don't have time to reverse engineer your whole build setup). Sure, I'm happy to provide assistance. Sorry for losing patience several times before - I think I figured out what the problem is, and I was doing something wrong, but it's too bad the toolchains did not crash and burn and eat my dog when I did it. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net [SNIPPED] -- - Shlomi Fish http://www.shlomifish.org/ My Public Domain Photos - http://www.flickr.com/photos/shlomif/ Every successful open source project will eventually spawn a sub‐project. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory ...
On Tue, 26 Mar 2013 01:47:54 -0400 (EDT) deannel...@aol.com wrote: Does this work? xsl:template match=revhistory/ Tried it - it does not. Regards, Shlomi Fish In a message dated 3/25/2013 10:02:29 P.M. Pacific Daylight Time, tso...@vocera.com writes: When I post a question on a forum I keep working at it till I find the answer. Often times I find the answer before someone in the know has time to respond, then I post the answer to my own question for others to find. It is not a perfect process but it is synergetic and cooperative when it works. I don't know the answer to your query, but I know that XML is logical and easy to read. Look through the style sheets and you will likely find the joy of solving a tricky coding problem, like a riddle but a very Zen experience. Good luck:) Tiffany Sonny On Mar 25, 2013, at 9:48 PM, Shlomi Fish shlo...@shlomifish.org wrote: Hi all, can anyone reply to my post with an answer? I have waited a long time enough after wasting a lot of time waiting for an answer on #docbook on Freenode. See: http://www.joelonsoftware.com/articles/customerservice.html Regards, Shlomi Fish On Mon, 25 Mar 2013 19:15:50 +0200 Shlomi Fish shlo...@shlomifish.org wrote: Hi all, I am trying to get rid of the revhistory / tag in the EPUB output here: https://github.com/shlomif/Human-Hacking-Field-Guide/tree/master/HHFG/text see below for more information - any help will be appreciated. This seems to be misleading: http://www.sagehill.net/docbookxsl/FormatRevhistory.html : Tip A quick way to turn off revhistory from output is to define an empty template for it in a customization layer. The following example will turn it off for all elements that contain a revhistory: xsl:template match=revhistory mode=titlepage.mode/ Please see below for the conversation log. Any help will be appreciated. Regards, Shlomi Fish [SNIPPED] -- - Shlomi Fish http://www.shlomifish.org/ Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/ Give me ASCII or give me deaþ! Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org -- - Shlomi Fish http://www.shlomifish.org/ My Favourite FOSS - http://www.shlomifish.org/open-source/favourite/ Su-Shee Absolutely. Also: a German dog barks wau and a cat meows miau rindolf Su-Shee: German animals are true German patriots. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi all, I am trying to get rid of the revhistory / tag in the EPUB output here: https://github.com/shlomif/Human-Hacking-Field-Guide/tree/master/HHFG/text see below for more information - any help will be appreciated. This seems to be misleading: http://www.sagehill.net/docbookxsl/FormatRevhistory.html : Tip A quick way to turn off revhistory from output is to define an empty template for it in a customization layer. The following example will turn it off for all elements that contain a revhistory: xsl:template match=revhistory mode=titlepage.mode/ Please see below for the conversation log. Any help will be appreciated. Regards, Shlomi Fish rindolf Hi all. rindolf I cannot seem to know how to get rid of revhistory.../revhistory on my page. rindolf https://github.com/shlomif/Human-Hacking-Field-Guide/tree/master/HHFG/text - it's here. rindolf LotR: here? rindolf Vampire0: here? rindolf Anyone? * dcramer_ has quit (Ping timeout: 245 seconds) * scotm (~sc...@c-67-189-56-13.hsd1.or.comcast.net) has joined * pere (~p...@cm-84.215.38.245.getinternet.no) has joined * dcramer_ (~dcra...@of1-nat2.aus1.rackspace.com) has joined rindolf couture, dcramer_ , dtardon , joat , LotR , mhnoyes , pbor , pere , scotm , shaunm , stefan2 , sunny256 , ThomasWaldmann , Vampire0 , verm__ : any idea? * pere did not notice the question. dcramer_ rindolf, That would be via the titlepage stuff... dcramer_ http://www.sagehill.net/docbookxsl/HTMLTitlePage.html rindolf dcramer_: did you look at https://github.com/shlomif/Human-Hacking-Field-Guide/blob/master/HHFG/text/docbook-epub-preproc.xslt ? dcramer_ https://github.com/rackerlabs/clouddocs-maven-plugin/blob/master/src/main/resources/cloud/webhelp/titlepage/titlepage.templates.xml dcramer_ See how revhistory is commented out in the titlepage spec? dcramer_ What you do is edit the titlepagespec, then generate a new titlepage.xsl from it: http://www.sagehill.net/docbookxsl/TitlePageNewElems.html dcramer_ Which you then import into your customization layer. dcramer_ rindolf: Give that a shot. If you're still having trouble, try the docbook-apps mailing list. rindolf dcramer_: OK. rindolf dcramer_: isn't there an easier way? dcramer_ Well, that's the right way :-) rindolf dcramer_: why doesn't xsl:template match=revhistory mode=titlepage.mode/ rindolf work? dcramer_ I'd have to dig in to see what template is generated by the titlepage mechanism. But on the list Bob could answer that off the top of his head I bet. dcramer_ The template spec stuff isn't really that hard. dcramer_ 1. Edit the titlepage.xml provided with the dist to remove revhistory dcramer_ 2. Generate titlepage.xsl by just running a provided xslt over the edited spec. dcramer_ 3. Import result into your customization layer. dcramer_ Easier in a way. -- - Shlomi Fish http://www.shlomifish.org/ Rethinking CPAN - http://shlom.in/rethinking-cpan I started out as a BASIC programmer. Some people would say that I’m permanently damaged. Some people are undoubtedly right. — Larry Wall Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output
Hi all, can anyone reply to my post with an answer? I have waited a long time enough after wasting a lot of time waiting for an answer on #docbook on Freenode. See: http://www.joelonsoftware.com/articles/customerservice.html Regards, Shlomi Fish On Mon, 25 Mar 2013 19:15:50 +0200 Shlomi Fish shlo...@shlomifish.org wrote: Hi all, I am trying to get rid of the revhistory / tag in the EPUB output here: https://github.com/shlomif/Human-Hacking-Field-Guide/tree/master/HHFG/text see below for more information - any help will be appreciated. This seems to be misleading: http://www.sagehill.net/docbookxsl/FormatRevhistory.html : Tip A quick way to turn off revhistory from output is to define an empty template for it in a customization layer. The following example will turn it off for all elements that contain a revhistory: xsl:template match=revhistory mode=titlepage.mode/ Please see below for the conversation log. Any help will be appreciated. Regards, Shlomi Fish [SNIPPED] -- - Shlomi Fish http://www.shlomifish.org/ Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/ Give me ASCII or give me deaþ! Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet
/xsl:template !-- Avoid Generating a Table-of-Contents-- xsl:param name=generate.toc article toc /xsl:param !-- Disable the title= attribute in sections. -- xsl:template name=generate.html.title /xsl:template !-- xsl:template match=d:article priority=1 xsl:call-template name=id.warning/ xsl:element name={$div.element} namespace=http://www.w3.org/1999/xhtml; xsl:call-template name=common.html.attributes xsl:with-param name=inherit select=1/ /xsl:call-template xsl:call-template name=id.attribute xsl:with-param name=conditional select=0/ /xsl:call-template xsl:call-template name=article.titlepage/ xsl:variable name=toc.params xsl:call-template name=find.path.params xsl:with-param name=table select=normalize-space($generate.toc)/ /xsl:call-template /xsl:variable xsl:call-template name=make.lots xsl:with-param name=toc.params select=$toc.params/ xsl:with-param name=toc xsl:call-template name=component.toc xsl:with-param name=toc.title.p select=contains($toc.params, 'title')/ /xsl:call-template /xsl:with-param /xsl:call-template xsl:apply-templates/ xsl:call-template name=process.footnotes/ /xsl:element /xsl:template -- /xsl:stylesheet [/Q] Previously I had a problem that while everything was in one chunk, the page was empty. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ My Public Domain Photos - http://www.flickr.com/photos/shlomif/ Ran Eilam To Shlomi Fish: so what are you working on? Working on a new wiki about unit testing fortunes in freecell? Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet
Hi Bob, On Wed, 16 Jan 2013 11:44:32 -0800 Bob Stayton b...@sagehill.net wrote: I cannot tell if any of your stylesheet modules is importing xhtml-1_1/docbook.xsl. Does shlomif-essays-5-xhtml-common.xsl? no, it does not: shlomif[perl-begin]:$trunk$ ack -a 'docbook\.xsl' lib/sgml/shlomif-docbook/xsl-5-stylesheets/ lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-fo.xsl 6: xsl:import href=http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl; / lib/sgml/shlomif-docbook/xsl-5-stylesheets/mychunk.xsl 22: as mydocbook.xsl that imports the original docbook.xsl and 24: customization should import mydocbook.xsl instead of 25: docbook.xsl. -- 26:xsl:import href=shlomif-db5-xhtml-mydocbook.xsl/ shlomif[perl-begin]:$trunk$ Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Wednesday, January 16, 2013 12:22 AM To: Bob Stayton b...@sagehill.net Cc: DocBook Apps docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet Hi Bob, On Tue, 15 Jan 2013 15:17:42 -0800 Bob Stayton b...@sagehill.net wrote: The problem here is that in chunking, even with onechunk, every chunk-level element is processed twice, once to generate its chunk file and once to generate its content. The two steps are separated by import precedence only, so maintaining the two levels of import precedence is necessary when dealing with chunked elements. That is done by having two customization files, as described here: http://www.sagehill.net/docbookxsl/ChunkingCustomization.html Your custom template for article content would go into the first file, which is named 'mydocbook.xsl' in the example. Thanks, this is working better. Now I have a different problem. With: [Q] xsltproc --stringparam root.filename lib/docbook/5/essays/bad-elements/all-in-one.xhtml.temp.xml --path /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1 lib/sgml/shlomif-docbook/xsl-5-stylesheets/mychunk.xsl lib/docbook/5/xml/bad-elements.xml [/Q] I get: [Q] runtime error: file /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1/chunk-code.xsl line 432 element call-template The called template 'get.doc.title' was not found. runtime error: file /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1/chunk-code.xsl line 470 element choose Variable 'rootid' has not been declared. [/Q] mychunk.xsl is: [Q] ?xml version=1.0 encoding=ASCII? !--This file was created automatically by html2xhtml-- !--from the HTML stylesheets.-- xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:d=http://docbook.org/ns/docbook; xmlns:exsl=http://exslt.org/common; xmlns=http://www.w3.org/1999/xhtml; version=1.0 exclude-result-prefixes=exsl d !-- $Id: chunk.xsl 6910 2007-06-28 23:23:30Z xmldoc $ This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://docbook.sf.net/release/xsl/current/ for copyright and other information. -- !-- -- !-- First import the non-chunking templates that format elements within each chunk file. In a customization, you should create a separate non-chunking customization layer such as mydocbook.xsl that imports the original docbook.xsl and customizes any presentation templates. Then your chunking customization should import mydocbook.xsl instead of docbook.xsl. -- xsl:import href=shlomif-db5-xhtml-mydocbook.xsl/ !-- chunk-common.xsl contains all the named templates for chunking. In a customization file, you import chunk-common.xsl, then add any customized chunking templates of the same name. They will have import precedence over the original chunking templates in chunk-common.xsl. -- xsl:import href=chunk-common.xsl/ !-- The manifest.xsl module is no longer imported because its templates were moved into chunk-common and chunk-code -- !-- chunk-code.xsl contains all the chunking templates that use a match attribute. In a customization it should be referenced using xsl:include instead of xsl:import, and then add any customized chunking templates with match attributes. But be sure to add a priority=1 to such customized templates to resolve its conflict with the original, since they have the same import precedence. Using xsl:include prevents adding another layer of import precedence, which would cause any
Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet
Hi Bob, On Wed, 16 Jan 2013 14:32:26 -0800 Bob Stayton b...@sagehill.net wrote: Sorry, I'm not following this. I think your shlomif-db5-xhtml-mydocbook.xsl should import xhtml_1-1/docbook.xsl as described in step 1 in the instructions. yes, I realised that was the problem. Now everything is working fine - I was able to fix the one chunking as well as get my original motivation for this sleigh ride - placing the introduction before the table-of-contents to work, by overriding xsl:template match=d:article priority=1. Many thanks for everything. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Wednesday, January 16, 2013 12:12 PM To: Bob Stayton b...@sagehill.net Cc: DocBook Apps docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet Hi Bob, On Wed, 16 Jan 2013 11:44:32 -0800 Bob Stayton b...@sagehill.net wrote: I cannot tell if any of your stylesheet modules is importing xhtml-1_1/docbook.xsl. Does shlomif-essays-5-xhtml-common.xsl? no, it does not: shlomif[perl-begin]:$trunk$ ack -a 'docbook\.xsl' lib/sgml/shlomif-docbook/xsl-5-stylesheets/ lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-fo.xsl 6: xsl:import href=http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl; / lib/sgml/shlomif-docbook/xsl-5-stylesheets/mychunk.xsl 22: as mydocbook.xsl that imports the original docbook.xsl and 24: customization should import mydocbook.xsl instead of 25: docbook.xsl. -- 26:xsl:import href=shlomif-db5-xhtml-mydocbook.xsl/ shlomif[perl-begin]:$trunk$ Regards, Shlomi Fish Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Wednesday, January 16, 2013 12:22 AM To: Bob Stayton b...@sagehill.net Cc: DocBook Apps docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet Hi Bob, On Tue, 15 Jan 2013 15:17:42 -0800 Bob Stayton b...@sagehill.net wrote: The problem here is that in chunking, even with onechunk, every chunk-level element is processed twice, once to generate its chunk file and once to generate its content. The two steps are separated by import precedence only, so maintaining the two levels of import precedence is necessary when dealing with chunked elements. That is done by having two customization files, as described here: http://www.sagehill.net/docbookxsl/ChunkingCustomization.html Your custom template for article content would go into the first file, which is named 'mydocbook.xsl' in the example. Thanks, this is working better. Now I have a different problem. With: [Q] xsltproc --stringparam root.filename lib/docbook/5/essays/bad-elements/all-in-one.xhtml.temp.xml --path /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1 lib/sgml/shlomif-docbook/xsl-5-stylesheets/mychunk.xsl lib/docbook/5/xml/bad-elements.xml [/Q] I get: [Q] runtime error: file /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1/chunk-code.xsl line 432 element call-template The called template 'get.doc.title' was not found. runtime error: file /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1/chunk-code.xsl line 470 element choose Variable 'rootid' has not been declared. [/Q] mychunk.xsl is: [Q] ?xml version=1.0 encoding=ASCII? !--This file was created automatically by html2xhtml-- !--from the HTML stylesheets.-- xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:d=http://docbook.org/ns/docbook; xmlns:exsl=http://exslt.org/common; xmlns=http://www.w3.org/1999/xhtml; version=1.0 exclude-result-prefixes=exsl d !-- $Id: chunk.xsl 6910 2007-06-28 23:23:30Z xmldoc $ This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://docbook.sf.net/release/xsl/current/ for copyright and other information. -- !-- -- !-- First import the non-chunking templates that format elements within each chunk file. In a customization, you should create a separate non-chunking customization layer such as mydocbook.xsl that imports the original docbook.xsl and customizes any presentation templates. Then your chunking customization should
[docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet
Hi all, can anyone tell me why in this Mercurial repository, bash REPRODUCE_ME.bash exits with: * https://bitbucket.org/shlomif/docbook-5-xsltproc-snafu/src * Error: runtime error: file shlomif-essays-5-xhtml-onechunk.xsl line 30 element call-template The called template 'id.attribute' was not found. no result for bad-elements.xml It seems to work fine with Saxon9, but Saxon9 is slow because the handling of XML catalogue files there is so complicated, and I did not get to configuring it. Anyway, I would appreciate any insights because I spent many hours trying to fix it since 12:00 and I'm a shipwreck. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ What does Zionism mean? - http://shlom.in/def-zionism Knuth is not God! Unless you confuse him with Dijkstra. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet
Hi Bob, On Tue, 15 Jan 2013 10:42:51 -0800 Bob Stayton b...@sagehill.net wrote: The template named 'id.attribute' was added in version 1.77.1 of the stylesheets. If your XML catalog is resolving the 'current' URLs in your import statements to version 1.76.1 or earlier, then the call to that template in your customization will not work. thanks, that was the problem and I fixed it now. Now I'm running into a different problem. With this stylesheet if I uncomment the xsl:template match=d:article element then I get the output only to STDOUT. I will give the invocation of xsltproc that I use separately: [QUOTE] ?xml version='1.0' encoding='UTF-8'? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:db=http://docbook.org/ns/docbook; xmlns:d=http://docbook.org/ns/docbook; xmlns:vrd=http://www.shlomifish.org/open-source/projects/XML-Grammar/Vered/; xmlns=http://docbook.org/ns/docbook; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xhtml=http://www.w3.org/1999/xhtml; xsl:import href=http://docbook.sourceforge.net/release/xsl-ns/current/xhtml-1_1/onechunk.xsl; / xsl:import href=shlomif-essays-5-xhtml-common.xsl / !-- Avoid Generating a Table-of-Contents-- xsl:param name=generate.toc article toc /xsl:param !-- Disable the title= attribute in sections. -- xsl:template name=generate.html.title /xsl:template !-- xsl:template match=d:article xsl:call-template name=id.warning/ xsl:element name={$div.element} namespace=http://www.w3.org/1999/xhtml; xsl:call-template name=common.html.attributes xsl:with-param name=inherit select=1/ /xsl:call-template xsl:call-template name=id.attribute xsl:with-param name=conditional select=0/ /xsl:call-template xsl:call-template name=article.titlepage/ xsl:variable name=toc.params xsl:call-template name=find.path.params xsl:with-param name=table select=normalize-space($generate.toc)/ /xsl:call-template /xsl:variable xsl:call-template name=make.lots xsl:with-param name=toc.params select=$toc.params/ xsl:with-param name=toc xsl:call-template name=component.toc xsl:with-param name=toc.title.p select=contains($toc.params, 'title')/ /xsl:call-template /xsl:with-param /xsl:call-template xsl:apply-templates/ xsl:call-template name=process.footnotes/ /xsl:element /xsl:template -- /xsl:stylesheet [/QUOTE] [SHELL] xsltproc --stringparam root.filename lib/docbook/5/essays/bad-elements/all-in-one.xhtml.temp.xml --path /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1 lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-xhtml-onechunk.xsl lib/docbook/5/xml/bad-elements.xml [/SHELL] Note that without the commenting-out intact, the output outputs to the right place. I am using docbook5-style-xsl-1.78.0-1.mga3 (which I built myself). Regards, -- Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/ Dax: yep, space. Nothing but nothing all around. — Star Trek, “We, the Living Dead” by Shlomi Fish Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] How to programmatically get a list of elements of DocBook 4 and DocBook 5?
Hi all, here: https://bitbucket.org/shlomif/vim-docbook-5-support I have a repository where I am trying to get a machine readable list of DocBook 4 and DocBook 5 elements. What I have done of parsing the DocBook 5's RNG appears to work fine, but I'm having trouble with parsing the DocBook 4 RNGs from http://www.docbook.org/rng/4.5/ and some elements, suck as ulink / are missing. Should I just parse and extract element name=... from all the RNG fragments and then concatenate them and remove duplicates? Or is there a better way? I tried to find a way to extract this information out of the DocBook 4.x DTD, but could not find a DTD parser that allowed for introspection. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/ Chuck Norris can read Perl code that was RSA encrypted. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] DocBook/XSL Renders img / without the alt=... attribute in XHTML mode (xsltproc/xalan)
Hi all, DocBook/XSL ( docbook-style-xsl-1.77.1-3.mga3 on Mageia Linux 3/Cauldron) converts DocBook 5 with mediaobject with the alt tags to img /s without the alt=... attribute. I am attaching here a sample document (compressed with gzip) - it's in Hebrew, but you can view the XHTML fine. Here are the command I use to render it and both give me img-s without the alt=... attribute: $ java org.apache.xalan.xslt.Process -IN hebrew-html-tutorial.xml -XSL http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl -OUT foo.html $ xsltproc http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl hebrew-html-tutorial.xml I verified that they open files from /usr/share/sgml/docbook/xsl-stylesheets-1.77.1/xhtml/html-rtf.xsl / etc. Can anyone help? Am I doing something wrong? Is this a bug? Is there a workaround? Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Freecell Solver - http://fc-solve.shlomifish.org/ ew73 VB.NET is all of the fun of enforced privacy OO with all of the power of BASIC. — Freenode’s #perl Please reply to list if it's a mailing list post - http://shlom.in/reply . hebrew-html-tutorial.xml.gz Description: GNU Zip compressed data - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] DocBook/XSL Renders img / without the alt=... attribute in XHTML mode (xsltproc/xalan)
Hi Peter, On Fri, 2 Nov 2012 10:37:20 -0400 Peter Desjardins peter.desjardins...@gmail.com wrote: Hi. You could try wrapping the mediaobject in an informalfigure element. I use alt text for images and I'm publishing to XHTML via webhelp. Here's one of my informalfigure elements: informalfigure mediaobject altThis illustration is described in the preceding text./alt imageobject role=html imagedata fileref=media/server-and-administrator.jpg/ /imageobject imageobject role=fo imagedata fileref=media/server-and-administrator.jpg/ /imageobject textobject phraseThis illustration is described in the preceding text./phrase /textobject /mediaobject /informalfigure Thanks for this workaround - I am going to try it, but I wonder why it does not work without it. My DocBook/XML validates. Regards, Shlomi Fish. And the resulting XHTML: div class=informalfigure div class=mediaobject title=This illustration is described in the preceding text. img src=media/server-and-administrator.jpg alt=This illustration is described in the preceding text./ /div /div -- - Shlomi Fish http://www.shlomifish.org/ Perl Humour - http://perl-begin.org/humour/ Real programmers don’t write workarounds. They tell their users to upgrade their software. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] DocBook/XSL Renders img / without the alt=... attribute in XHTML mode (xsltproc/xalan)
Hi Bob, On Fri, 2 Nov 2012 09:33:12 -0700 Bob Stayton b...@sagehill.net wrote: Hi Shlomi, This appears to be a bug in the stylesheets. There is some code for alt, but it is not in the right place to be used. I'll fix it before the next release. Many thanks! Regards, Shlomi Fsih Bob Stayton Sagehill Enterprises b...@sagehill.net -- - Shlomi Fish http://www.shlomifish.org/ Humanity - Parody of Modern Life - http://shlom.in/humanity Trying to block Internet pornography is like climbing a waterfall and trying to stay dry. (— one of Shlomi Fish’s Internet Friends) Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] re:New docbook-xsl-ns snapshots
Hi all, On Thu, Apr 21, 2011 at 6:50 PM, Kasun Gajasinghe kasun.gajasin...@gmail.com wrote: On Thu, Apr 21, 2011 at 9:08 PM, Robert Nagle idiotprogram...@gmail.com wrote: to ask a rather silly question. The snapshot page only shows the last snapshot being in November and the instructions say that this page is updated automatically when there are checkins. But according to this page, the latest check ins for anything seems to be in November. http://docbook.sourceforge.net/snapshot/ Is this information just not current? If I actually used subversion to pull things to my machine, would I get substantially more up-to-date stylesheets? (I'm talking about all stylesheets, not just the ns version). There were checkins after that [1] but the build got broken around that time [2]. Docbook dearly need a helping hand to fix the broken piece. I'm willing to help and have the time for that. Where do I start? Regards, -- Shlomi Fish Thanks, --Kasun [1] http://cia.vc/stats/project/docbook [2] http://sourceforge.net/mailarchive/forum.php?forum_name=docbook-snapshots -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] New docbook-xsl-ns snapshots
Hi all. Where are the new docbook-xsl-ns snapshots? The last one here - http://docbook.sourceforge.net/snapshot/ - was only updated on November of 2010 (last year). Regards, -- Shlomi Fish -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Re: New docbook-xsl-ns snapshots
Hi all, On Wed, Apr 20, 2011 at 11:42 AM, Shlomi Fish shlo...@gmail.com wrote: Hi all. Where are the new docbook-xsl-ns snapshots? The last one here - http://docbook.sourceforge.net/snapshot/ - was only updated on November of 2010 (last year). I should also note that the DocBook SourceForge.net bug tracker has several unaddressed bugs: https://sourceforge.net/tracker/?words=tracker_browsesort=submitted_bysortdir=descoffset=50group_id=21935atid=373747assignee=status=1category=artgroup=keyword=submitter=artifact_id= I've been waiting for a response for the EPUB one for a few weeks now. Regards, -- Shlomi Fish Regards, -- Shlomi Fish -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Nested Itemized Lists
On Saturday 26 Jun 2010 00:07:11 Tom Browder wrote: On Fri, Jun 25, 2010 at 13:11, Dick Hamilton rlhamil...@frii.com wrote: Tom, The DocBook Definitive Guide is where I'd go. The syntax descriptions will give you that information. I have that book (DB v5), and the syntax was detailed, but not easy to use in a casual reading. I did try to figure it out by looking at the content models. but I got lost in the maze. What I should have done was taken the content models and broken them down in some kind of vertical fashion to make it easier to check by eye, Another problem was that Relax NG validation by both nvdl and xmllint didn't catch the errors in my two attempted nested forms There are also examples, though as editor I'm embarrassed to say that the list examples, though they mention nesting, don't include a nested example. Yes, that would have helped, but you guys pack a LOT of info in that book! You can't cover examples of everything. A book (or web site) with detailed examples of output vs. input would be very useful. The tools are described in great detail lots of places, but hard-core complete book examples, including the customization style sheets are hard to find (I'm still looking). Any chance of getting such for Docbook 5? I scrounged all around O'Reilly's site and couldn't find anything except final examples generated by customized styles sheets which were not there. Some of my latest essays are in DocBook 5 format: http://www.shlomifish.org/philosophy/ Though they use the article tag instead of book. And many of the manuals of the Mandriva distribution are in DocBook 5 format. Hope it helps. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Human Hacking Field Guide - http://shlom.in/hhfg God considered inflicting XSLT as the tenth plague of Egypt, but then decided against it because he thought it would be too evil. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] RE: [docbook] Question about xml
Hi Christopher! On Tuesday 23 Feb 2010 17:24:05 Compagnon Christopher wrote: Hi, Thanks for your answer. But my question was bad. The question don't use docbook here. Only xml. If it isn't related to DocBook, why did you ask it here? There are other mailing lists and forums which are better suited to questions about general XML or its use on web-pages. docbook@ and docbook-apps@ are about DocBook. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Interview with Ben Collins-Sussman - http://shlom.in/sussman Deletionists delete Wikipedia articles that they consider lame. Chuck Norris deletes deletionists whom he considers lame. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Re: [docbook] Question about xml
On Monday 22 Feb 2010 11:20:35 Compagnon Christopher wrote: Hi, I have a question about xml. Which DocBook/XML? DocBook 4 or DocBook 5? In HTML, a reference by anchor is « myfile.html#myref » and points on an anchor : a name=myref .../a That's antiquated HTML. Better use the id=... attribute there now. (And make sure you quote your attribute values). How to obtain the same comportement with xml, pointing a link to another part of a xml document ? In DocBook 5, you should use link xlink:href=#anchor and xml:id=anchor for that. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ The Case for File Swapping - http://shlom.in/file-swap Deletionists delete Wikipedia articles that they consider lame. Chuck Norris deletes deletionists whom he considers lame. Please reply to list if it's a mailing list post - http://shlom.in/reply . - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Re: [docbook] DocBook and Google Summer of Code ?
On Wednesday 16 Dec 2009 15:28:56 Stefan Seefeld wrote: All, Google is sponsoring each year many organizations to allow students to contribute to free software projects over the summer. This is known as the Google Summer of Code. Such organizations would apply to become a mentoring organization, sometime in early March. Being a mentoring organization means to provide project ideas, as well as mentors who would help the student(s) over the summer keep in touch with the community, as well as make progress on the project. I have been a mentor for different projects and mentoring organizations in the past (notably, the Python Software Foundation and Boost.org), and I know firsthand what a great way to help advance a project this is, as well as allow students to get involved with Free Software. I have been wondering whether there was any interest in the DocBook community to apply to become a GSoC mentoring organization, too. I can see many projects that are doable in such a context (I have a couple of specific ideas that I would very much like to see realized, and I think GSoC would be an ideal framework for this). Before diving into such details, I'd just like to ask for feedback about the general idea. What do you think ? Sounds good to me, but until now I've only been a DocBook/XML end-user - not an active developer (though I've reported and triaged a few bugs). I've also been active to some extent in the Perl GSoC. Regards, Shlomi Fish (For details about the program, see http://socghop.appspot.com/document/show/program/google/gsoc2009/faqs) Thanks, Stefan -- - Shlomi Fish http://www.shlomifish.org/ My Aphorisms - http://www.shlomifish.org/humour.html Bzr is slower than Subversion in combination with Sourceforge. ( By: http://dazjorz.com/ ) - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Cannot validate a UTF-8 document with mediaobject
Hi! On Sat, Feb 14, 2009 at 8:31 PM, Mauritz Jeanson m...@johanneberg.com wrote: | -Original Message- | From: Shlomi Fish | | I cannot seem to validate the attached document using: | | {{{ | xmllint --relaxng http://www.docbook.org/xml/5.0/rng/docbook.rng | hebrew-html-tutorial.xml | }}} | | I'm on Mandriva Linux Cooker. When I comment out the mediaobject it | validates. My question is why? What am I doing wrong? I don't think you are doing anything wrong. This looks like an xmllint bug. I see. I'll report it. Both Jing (http://www.thaiopensource.com/relaxng/jing.html) and MSV (https://msv.dev.java.net/) report that your document is valid. Thanks! I may switch to using one of them for validating my document. Regards, -- Shlomi Fish Mauritz -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Cannot validate a UTF-8 document with mediaobject
Hi all! I cannot seem to validate the attached document using: {{{ xmllint --relaxng http://www.docbook.org/xml/5.0/rng/docbook.rng hebrew-html-tutorial.xml }}} I'm on Mandriva Linux Cooker. When I comment out the mediaobject it validates. My question is why? What am I doing wrong? Regards, -- Shlomi Fish -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. ?xml version='1.0' ? book xmlns=http://docbook.org/ns/docbook; xmlns:xlink=http://www.w3.org/1999/xlink; version=5.0 xml:id=index xml:lang=he info titleהמדריך העברי ל-HTML תקני/title author personname firstnameShlomi/firstname surnameFish/surname /personname affiliation address emailshlo...@iglu.org.il/email /address /affiliation /author copyright year2008/year holderShlomi Fish/holder /copyright legalnotice xml:lang=en !-- Ci vis pacem -- para !-- belum. ;-) -- This document was written by Shlomi Fish and is available under the terms of either the: /para orderedlist listitem para link xlink:href=http://creativecommons.org/licenses/publicdomain/;The Public Domain/link, as defined by the Creative Commons or your local jurisdication. /para /listitem listitem para link xlink:href=http://creativecommons.org/licenses/by/3.0/;The Creative Commons Attribution License (CC-by) version 3.0/link (or at your option any later version of the same license.) /para /listitem listitem para The link xlink:href=http://www.opensource.org/licenses/mit-license.php;MIT X11 License/link. /para /listitem /orderedlist /legalnotice revhistory revision revnumber2780/revnumber date27 April 2008/date authorinitialsshlomif/authorinitials revremark Started working on this document after forking the template of an older one. /revremark /revision /revhistory /info chapter xml:id=basic-html info titleHTML בסיסי/title /info section xml:id=more-HTML-tags info titleתגי HTML נוספים/title /info para בפרק זה נכיר תגי HTML נוספים ושימושיים. /para section xml:id=headings info titleכותרות - h1, h2, h3/title /info para וכך זה נראה: /para mediaobject imageobject imagedata fileref=images/h1-h2-example.png format=PNG / /imageobject /mediaobject para Foo. /para /section /section /chapter /book - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] DocBook 5.0 XSLT Customisation: runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute
Hi Mr. Stayton! On Fri, Aug 22, 2008 at 11:11 PM, Bob Stayton [EMAIL PROTECTED] wrote: Hi Shlomi, The template named language.attribute generates an xsl:attribute element, and it must appear just after an output element's start tag. The problem is that in your custom template, you are calling that template and generating an attribute but you have not started an output element yet. The p element to which you want to attach the attribute is generated by the template named paragraph, which you call after language.attribute. Perhaps instead of customizing d:para, you should customize the template named paragraph. Thanks! That seems to have done the trick. Now the custom.xsl is working. Regards, Shlomi Fish Bob Stayton Sagehill Enterprises [EMAIL PROTECTED] - Original Message - From: Shlomi Fish [EMAIL PROTECTED] To: docbook-apps@lists.oasis-open.org Sent: Friday, August 22, 2008 3:39 AM Subject: [docbook-apps] DocBook 5.0 XSLT Customisation: runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute Hi all! I'm trying to use the custom.xsl here: https://svn.berlios.de/svnroot/repos/web-cpan/doc-Hebrew-HTML-Tutorial/trunk/hebrew-html-tutorial/ (You can use the svn checkout to checkout it.) What it's trying to do is to propagate xml:lang into various elements that I'm using and require it. I'm using the command (also in the makefile): {{{ xsltproc --path /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/xhtml -o hebrew-html-tutorial/index.html custom.xsl hebrew-html-tutorial.xml }}} And I'm getting the following errors: { runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. error: file hebrew-html-tutorial.xml xsltRunStylesheet : run failed } Now custom.xsl contains the following customisation: {{ xsl:template match=d:para xsl:call-template name=language.attribute / xsl:call-template name=paragraph xsl:with-param name=class xsl:if test=@role and $para.propagates.style != 0 xsl:value-of select=@role/ /xsl:if /xsl:with-param xsl:with-param name=content xsl:if test=position() = 1 and parent::d:listitem xsl:call-template name=anchor xsl:with-param name=node select=parent::d:listitem/ /xsl:call-template /xsl:if xsl:call-template name=anchor/ xsl:apply-templates/ /xsl:with-param /xsl:call-template /xsl:template }} When I remove the xsl:call-template name=language.attribute / the problem disappears but naturally then I don't have xml:lang propagated which is what I want. The .xml validates according to {{ xmllint --relaxng ~/docbook.rng hebrew-html-tutorial.xml }}. Regards, Shlomi Fish -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[docbook-apps] DocBook 5.0 XSLT Customisation: runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute
Hi all! I'm trying to use the custom.xsl here: https://svn.berlios.de/svnroot/repos/web-cpan/doc-Hebrew-HTML-Tutorial/trunk/hebrew-html-tutorial/ (You can use the svn checkout to checkout it.) What it's trying to do is to propagate xml:lang into various elements that I'm using and require it. I'm using the command (also in the makefile): {{{ xsltproc --path /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/xhtml -o hebrew-html-tutorial/index.html custom.xsl hebrew-html-tutorial.xml }}} And I'm getting the following errors: { runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. runtime error: file /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/common/l10n.xsl line 140 element attribute xsl:attribute: Cannot add attributes to an element if children have been already added to the element. error: file hebrew-html-tutorial.xml xsltRunStylesheet : run failed } Now custom.xsl contains the following customisation: {{ xsl:template match=d:para xsl:call-template name=language.attribute / xsl:call-template name=paragraph xsl:with-param name=class xsl:if test=@role and $para.propagates.style != 0 xsl:value-of select=@role/ /xsl:if /xsl:with-param xsl:with-param name=content xsl:if test=position() = 1 and parent::d:listitem xsl:call-template name=anchor xsl:with-param name=node select=parent::d:listitem/ /xsl:call-template /xsl:if xsl:call-template name=anchor/ xsl:apply-templates/ /xsl:with-param /xsl:call-template /xsl:template }} When I remove the xsl:call-template name=language.attribute / the problem disappears but naturally then I don't have xml:lang propagated which is what I want. The .xml validates according to {{ xmllint --relaxng ~/docbook.rng hebrew-html-tutorial.xml }}. Regards, Shlomi Fish -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[docbook-apps] xml:lang= in DocBook/XML 5.0 in para, orderedlist etc. does not propagate to the XHTML
Hi all! I have the following markup: { ?xml version='1.0' ? book xmlns=http://docbook.org/ns/docbook; version=5.0 id=index lang=he info titleהמדריך העברי ל-HTML תקני/title authorgroup author firstnameShlomi/firstname surnameFish/surname affiliation address email[EMAIL PROTECTED]/email /address /affiliation /author /authorgroup copyright year2008/year holderShlomi Fish/holder /copyright legalnotice xml:lang=en !-- Ci vis pacem -- para xml:lang=en !-- belum. ;-) -- This document was written by Shlomi Fish and is available under the terms of either the: /para orderedlist xml:lang=en listitem para ulink url=http://creativecommons.org/licenses/publicdomain/;The Public Domain/ulink, as defined by the Creative Commons or your local jurisdication. /para /listitem listitem para ulink url=http://creativecommons.org/licenses/by/3.0/;The Creative Commons Attribution License (CC-by) version 3.0/ulink (or at your option any later version of the same license.) /para /listitem listitem para The ulink url=http://www.opensource.org/licenses/mit-license.php;MIT X11 License/ulink. /para /listitem /orderedlist /legalnotice revhistory revision revnumber2780/revnumber date27 April 2008/date authorinitialsshlomif/authorinitials revremark Started working on this document after forking the template of an older one. /revremark /revision /revhistory /info chapter id=introduction titleמבוא/title para מדריך זה בא לענות /para /chapter /book !-- vim:ft=tt2 -- } When processing it with: {{{ xsltproc --path /usr/share/sgml/docbook/xsl-stylesheets-db5-1.73.2/xhtml -o hebrew-html-tutorial/index.html custom.xsl hebrew-html-tutorial.xml }}} With the attached custom.xsl I'm getting the para and orderedlist items with the lang= or xml:lang attribute in the resultant XHTML file. How can I make them propagate to the XHTML? Regards, Shlomi Fish -- Shlomi Fish http://www.shlomifish.org/ Electrical Engineering studies. In the Technion. Been there. Done that. Forgot a lot. Remember too much. xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns=http://www.w3.org/1999/xhtml; version='1.0' xsl:import href=xhtml/docbook.xsl/ xsl:param name=use.id.as.filename1/xsl:param xsl:param name=html.stylesheetstyle.css/xsl:param xsl:param name=itemizedlist.propagates.style1/xsl:param xsl:param name=chunker.output.doctype-public-//W3C//DTD XHTML 1.0 Transitional//EN/xsl:param xsl:param name=chunker.output.doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/xsl:param !-- Parameters for Generating Strict Output. See: http://www.sagehill.net/docbookxsl/OtherOutputForms.html#StrictXhtmlValid -- xsl:param name=css.decoration0/xsl:param xsl:param name=ulink.target/xsl:param xsl:param name=use.viewport0/xsl:param !-- End of Strict Params -- xsl:param name=toc.section.depth10/xsl:param xsl:param name=generate.section.toc.level10/xsl:param !-- Enable fop extensions - see: http://www.sagehill.net/docbookxsl/InstallingAnFO.html http://www.mail-archive.com/fop-users%40xmlgraphics.apache.org/msg06170.html -- xsl:param name=fop1.extensions1/xsl:param xsl:template name=html_itemized_list div xmlns=http://www.w3.org/1999/xhtml; class={name(.)} xsl:call-template name=anchor/ xsl:if test=title xsl:call-template name=formal.object.heading/ /xsl:if xsl:apply-templates select=*[not(self::listitem or self::title or self::titleabbrev)]/ ul xsl:if test=@role xsl:attribute name=class xsl:value-of select=@role/ /xsl:attribute /xsl:if xsl:if test=$css.decoration != 0 xsl:attribute name=type xsl:call-template name=list.itemsymbol/ /xsl:attribute /xsl:if xsl:if test=@spacing='compact' xsl:attribute name=compact xsl:value-of select=@spacing
DOCBOOK-APPS: Re: CSS stylesheet for DocBook
On Mon, 3 Mar 2003, Jonathan Lo wrote: Hi all, I am a beginner in the DocBook. The information on the web is great and I am able to generate HTML, XHTML and PDF format using various tools and XSL stylesheet. Currently, I am looking for ways to display the DocBook xml file directly on a browser. I believe I can use CSS stylesheet for this purpose. I have got a couple of questions: 1) Is there any CSS stylesheet for DocBook available? 2) Would it be able to display MathML elements in the broswer? CSS stylesheet are used on the web to customize the look and feel of HTML files. DocBook is not compatible with HTML and many of the tags and semantics are different. It may be possible to convert a DocBook/XML file into HTML on the fly using an XSLT stylesheet. Generally speaking, DocBook is intended for off-line processing. Regards, Shlomi Fish Thanks for your help. Regards, Jonathan Lo -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ My opinions may seem crazy, but they all make sense. Insane sense, but sense nonetheless.
DOCBOOK-APPS: Re: Re: Footnote and ulink's in Acrobat Reader PDFscreated by openjade
On Thu, 27 Feb 2003, Doug du Boulay wrote: Then a latex \href{url}{text} seems to rendered in a beautiful shade of puke! no idea how to change that. To change it into blue add the following line to your jadetex.cfg file: \hypersetup{urlcolor=blue} Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ My opinions may seem crazy, but they all make sense. Insane sense, but sense nonetheless.
DOCBOOK-APPS: Re: Re: Footnote and ulink's in Acrobat Reader PDFscreated by openjade
On Thu, 27 Feb 2003, Doug du Boulay wrote: I'm not using any stylesheet (at least not now). (define %bop-footnotes% ;; Make bottom-of-page footnotes? #t) When you have a hundred odd page chapter and the footnotes all turn up at the end (and not at bop!), finding where the notes originate from is rather difficult :-/ 2. ulink's are not clickable or marked in blue. In case you missed it, Kevin Dunn just posted a fix for that to the list a few hours ago! Actually, his fix does the opposite thing - it makes sure a ulink marked with htmlonly is not rendered as a ulink in the PDF... And I want my ulinks to be hyperlinks in the PDF as well. Ah crap. I misunderstood the latex \url{} command! ok. did some experimenting. The following seems to work for me (only in print/tex/ you understand) (declare-flow-object-class formatting-instruction UNREGISTERED::James Clark//Flow Object Class::formatting-instruction) (element ulink (let ((type (attribute-string (normalize type (if (equal? type htmlonly) (sosofo-append (process-children);; Wrote the text ) (sosofo-append (make formatting-instruction data: \\href{ ) (literal (attribute-string (normalize url)) ) (make formatting-instruction data: }{ ) (process-children) ;; Wrote the text with its format (HTML anchor) (make formatting-instruction data: } ) ) ) ) ) Then a latex \href{url}{text} seems to rendered in a beautiful shade of puke! no idea how to change that. Works for me as well. However, URLs that include _ or - are appended a / before each such element. This breaks a lot of my URLs. Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ My opinions may seem crazy, but they all make sense. Insane sense, but sense nonetheless.
DOCBOOK-APPS: Customizing DocBook to Produce a real URL Tree
Hi! I'm not happily using the db2* tools to convert DocBook/XML into various formats. However, I noticed that jade put all the HTML file into one directory and calls them with obscure names such as: book1.html c16.html x208.html etc. Now what I want is that it will be real URL Tree: (Root) [id1] [id1]/[id2] [id1]/[id2]/[id3] [id4] etc. As is the case with my Quad-Pres generated lectures: http://vipe.technion.ac.il/~shlomif/lecture/Freecell-Solver/slides/ http://vipe.technion.ac.il/~shlomif/lecture/Autotools/ http://vipe.technion.ac.il/~shlomif/lecture/Gimp/1/slides/ [id*] are the IDs I assigned to the chapters and sections. My question: how can I customize the DSSSL (or XSL while we're at it) stylesheets to produce such a tree? (and still maintain prev-next-up link consistency and link to the same CSS stylesheet) Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ He who re-invents the wheel, understands much better how a wheel works.
DOCBOOK-APPS: Re: Customizing DocBook to Produce a real URL Tree
On Tue, 26 Nov 2002, Ian Castle wrote: With DSSSL (and I imagine XSL) it would be perfectly possible to generate the node names... the problem would be creating the directories - as there are no facilities in DSSSL to do file manipulation on the underlying file system. However, DSSSL is extensible so you could create an external procedure to do this for you. There would be quite a fair bit of work involved for a novice - and a few days for an expert. Would it be possible to scan the XML beforehand (say with a Perl script) and make the directory structure for jade, a priori? Regards, Shlomi Fish On Tuesday 26 Nov 2002 4:20 pm, Janning Vygen wrote: Am Dienstag, 26. November 2002 16:38 schrieb Dennis Grace: Shlomi Fish asks: I'm not happily using the db2* tools to convert DocBook/XML into various formats. However, I noticed that jade put all the HTML file into one directory and calls them with obscure names such as: book1.html c16.html x208.html etc. Now what I want is that it will be real URL Tree: (Root) [id1] [id1]/[id2] [id1]/[id2]/[id3] [id4] snip My question: how can I customize the DSSSL (or XSL while we're at it) stylesheets to produce such a tree? (and still maintain prev-next-up link consistency and link to the same CSS stylesheet) For the DSSSLs, in your customization layer you need to set: (define %use-id-as-filename% #t) For XSL, two params do the task you're trying to assign. If you set xsl:param name=use.id.as.filename select=1 the id attribute will be used for all chunks except the root, which will be named index.html. If you would rather set the root filename to the id, set xsl:param name=root.filename select=@id Thats not what he asked for, everything is still in one directory. kind regards janning --- PLANWERK 6 websolutions Herzogstraße 85 40215 Düsseldorf fon 0211 - 601 606 93 fax 0211 - 601 591 7 [EMAIL PROTECTED] http://www.planwerk6.de --- -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ He who re-invents the wheel, understands much better how a wheel works.
DOCBOOK-APPS: Re: Jade Yells at me on Mandrake 9.0
On Mon, 25 Nov 2002, [ISO-8859-1] Camille Bégnis wrote: Hi, we've been battling with Schlomi to make the thing work. First of all, I suggest people using Mandrake to upgrade openjade to openjade-1.3.1-12mdk from 9.0 unsupported or Cooker. Then it appeared db2html scripts use /etc/sgml/xml-docbook-4.1.2.cat which does not necessarily reference /usr/share/sgml/openjade/catalog So my question is: - Should /etc/sgml/xml-docbook-4.1.2.cat reference /usr/share/sgml/openjade/catalog or - should db2html scripts use /etc/sgml/catalog ? Second option looks more logical to me WDYT? I indeed vote for the second option. Regards, Shlomi Fish Camille. Ian Castle wrote: You are missing the DTDs etc that you need for DSSSL stylesheets and a few other things. This probably means that you are missing an rpm. I would look for one that contains the words docbook and dl. I'm not using mandrake so cannot so for sure. Also make sure that you have an rpm called sgml-common. In fact, it might be good to install anything that has the word DTD in it! On Sunday 24 Nov 2002 6:11 am, Shlomi Fish wrote: When I invoke db2pdf or db2html or something similar on a Mandrake Linux 9.0 system I get the following errors: http://vipe.technion.ac.il/~shlomif/jade.dump.txt And the output file is not created. It worked fine on Mandrake 8.2. What should I do to resolve this? Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ He who re-invents the wheel, understands much better how a wheel works. -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ He who re-invents the wheel, understands much better how a wheel works.
DOCBOOK-APPS: db2pdf Generates Flat Acrobat Bookmarks
Hi! I'm using db2pdf on Mandrake Linux 9.0, with openjade and some other docbook packages updated to what available on Cooker. My problem is that the PDF generated by db2pdf -c /etc/sgml/catalog contain flat Acrobat Reader bookmarks: all the chapters and section are under one another, and I cannot expand or collapse anything. I remember it used to be fine in the configuration that came with Mandrake 8.2. I'm using Acrobat Reader 5 on i386 Linux. For a demonstration of what I mean check: http://fc-solve.berlios.de/arch_doc/ Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ He who re-invents the wheel, understands much better how a wheel works.
DOCBOOK-APPS: Jade Yells at me on Mandrake 9.0
When I invoke db2pdf or db2html or something similar on a Mandrake Linux 9.0 system I get the following errors: http://vipe.technion.ac.il/~shlomif/jade.dump.txt And the output file is not created. It worked fine on Mandrake 8.2. What should I do to resolve this? Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ He who re-invents the wheel, understands much better how a wheel works.
DOCBOOK-APPS: DocBook support for BiDi (and other i18n)
Hi! I would like to query the list if anyone has successfully written and rendered Bi-directional (i.e: Hebrew+English or less preferably AFAIC, Arabic+English) DocBook documents. While I have no intention of using it that way, I am interested to know what it's status is. I know that the various end-formats (HTML, LaTeX and RTF) use a different model for bidirectionality, so it is not trivial to convert them. As a side note I wish to add that someone I know, noted that he could not get a Russian DocBook document he wrote to translate well. Did anybody here have a positive experience with it? Regards, Shlomi Fish -- Shlomi Fish[EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ Home E-mail: [EMAIL PROTECTED] He who re-invents the wheel, understands much better how a wheel works.