[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. 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 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 On Fri, Nov 2, 2012 at 7:25 AM, Shlomi Fish shlo...@shlomifish.org wrote: 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 . - 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] 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 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. Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Shlomi Fish shlo...@shlomifish.org Sent: Friday, November 02, 2012 8:14 AM To: Peter Desjardins peter.desjardins...@gmail.com Cc: docbook-apps@lists.oasis-open.org Subject: 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 - 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