docbook-apps

Expand all | Collapse all

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

  • 1.  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

    Posted 08-22-2008 20:11
    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


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

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  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

    Posted 08-24-2008 12:19
    Hi Mr. Stayton!

    On Fri, Aug 22, 2008 at 11:11 PM, Bob Stayton <bobs@sagehill.net> 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


    > 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
    > bobs@sagehill.net
    >
    >
    >