docbook-apps

  • 1.  Bug in olink's use of mode="xref-to"?

    Posted 08-27-2013 00:11
    Hi all,

    I've stumbled over an issue where application of docbook XSL fails with
    $collect.xref.targets="only" (or "yes") with certain @xrefstyle's. The issue is that
    the "obj" template in common/targets.xsl applies the template in the xref-to
    mode, without passing the $referrer parameter. This eventually gets verbatim to
    the make.gentext.template template, which attempts to call local-
    name($referrer) - which aborts the processing (at least with xsltproc):

    XPath error : Invalid type
    xmlXPathCompiledEval: 1 objects left on the stack.

    The attached patch makes the make.gentext.template accept being called
    without the $referrer argument.

    Regards,
    Alexey.



  • 2.  Re: [docbook-apps] Bug in olink's use of mode="xref-to"?

    Posted 08-27-2013 17:00
    Hi Alexey,
    Thanks for the thorough analysis and patch. I've commited the change.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    From: Alexey Neyman
    Sent: Monday, August 26, 2013 5:11 PM
    To: DocBook Apps
    Subject: [docbook-apps] Bug in olink's use of mode="xref-to"?


    Hi all,



    I've stumbled over an issue where application of docbook XSL fails with $collect.xref.targets="only" (or "yes") with certain @xrefstyle's. The issue is that the "obj" template in common/targets.xsl applies the template in the xref-to mode, without passing the $referrer parameter. This eventually gets verbatim to the make.gentext.template template, which attempts to call local-name($referrer) - which aborts the processing (at least with xsltproc):



    XPath error : Invalid type

    xmlXPathCompiledEval: 1 objects left on the stack.



    The attached patch makes the make.gentext.template accept being called without the $referrer argument.



    Regards,

    Alexey.



    --------------------------------------------------------------------------------



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org