docbook-apps

  • 1.  xsltproc does not render

    Posted 11-20-2019 17:17
      |   view attached
    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 .

    Attachment(s)



  • 2.  Re: [docbook-apps] xsltproc does not render

    Posted 11-20-2019 20:25
    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:

    <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 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



  • 3.  Re: [docbook-apps] xsltproc does not render

    Posted 11-21-2019 07:01
    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 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/
    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 .



  • 4.  Re: [docbook-apps] xsltproc does not render

    Posted 11-21-2019 08:53
    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 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/
    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 .



  • 5.  Re: [docbook-apps] xsltproc does not render

    Posted 11-21-2019 09:02
    [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 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
    > > >
    >
    >
    >

    --



  • 6.  Re: [docbook-apps] xsltproc does not render

    Posted 11-21-2019 10:39
    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 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/
    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 .