docbook-apps

Re: [docbook-apps] Inserting tag into generated text?

  • 1.  Re: [docbook-apps] Inserting tag into generated text?

    Posted 09-03-2008 15:52
    Hi Boris,
    The simple answer is that you can't put tags inside attribute values.
    That's a limitation of XML. If you are asking why an attribute value is
    used to hold gentext rather than an element body, I'm not sure. I think it
    is to make the gentext work in any output mode, not just HTML or XSL-FO.

    To do what you want, you generally have to make your own xsl:template that
    assembles the gentext components and wraps them in elements as needed.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net