[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] xsltproc does not render <img src tags inside docbook 5/xml
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 <bobs@sagehill.net> 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
> bobs@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 <shlomif@shlomifish.org> 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 <shlomif@shlomifish.org> wrote:
> >>
> >>> Hi Bob,
> >>>
> >>> On Wed, 20 Nov 2019 12:24:33 -0800
> >>> Bob Stayton <bobs@sagehill.net> 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
> >>>> <xsl:template name="is.graphic.extension">
> >>>> Â <xsl:param name="ext"></xsl:param>
> >>>> Â <xsl:variable name="lcext" select="translate($ext,
> >>>> 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
> >>>> 'abcdefghijklmnopqrstuvwxyz')"/>
> >>>> Â <xsl:if test="$lcext = 'svg'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'png'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'jpeg'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'jpg'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'avi'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'mpg'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'mp4'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'mpeg'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'qt'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'gif'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'acc'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'mp1'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'mp2'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'mp3'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'mp4'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'm4v'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'm4a'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'wav'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'ogv'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'ogg'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'webm'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'webp'
> >>>> ÂÂÂÂÂÂÂÂÂÂÂÂ or $lcext = 'bmp'">1</xsl:if>
> >>>> </xsl:template>
> >>>>
> >>>> Bob Stayton
> >>>> bobs@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 <img> 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-unsubscribe@lists.oasis-open.org
> >>>>> For additional commands, e-mail: docbook-apps-help@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 .
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]