docbook-apps

  • 1.  Re: [docbook-apps] @role. How high can it go?

    Posted 09-13-2011 16:41
    Hi Dave,
    That sounds fine. There is also a utility template named 'body.attributes' that can
    be customized to add attributes to the body element. The original is in
    html/docbook.xsl. It is called right after the opening tag of .

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    ----- Original Message -----
    From: "davep" <davep@dpawson.co.uk>
    To: "Bob Stayton" <bobs@sagehill.net>
    Cc: "Docbook-apps" <docbook-apps@lists.oasis-open.org>
    Sent: Tuesday, September 13, 2011 9:36 AM
    Subject: Re: [docbook-apps] @role. How high can it go?


    > On 09/13/2011 05:28 PM, Bob Stayton wrote:
    >> Hi Dave,
    >> There are only four elements for which the stylesheets can propagate a role
    >> attribute to an HTML class attribute: emphasis, para, phrase, and entry, and each
    >> has its own stylesheet param to control such behavior (such as
    >> $para.propagates.style). Because @role is used for many different purposes, this
    >> feature has not been implemented for all elements.
    >>
    >> But the stylesheets do support customizing class attributes. If you want to use
    >> propagate role to class for other elements, then you'll need to add a custom
    >> template in mode="class.value", as described here:
    >>
    >> http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#CustomClassValues
    >>
    >> Bob Stayton
    >> Sagehill Enterprises
    >> bobs@sagehill.net
    >
    >
    > Thanks Bob.
    > I need it higher than that... and found
    > <xsl:template name="user.head.content">
    > <xsl:param name="node" select="."/>
    >
    > </xsl:template>
    >
    >
    >
    > Into which I added some jscript.
    >
    > Then used CSS to import a common stylesheet
    > which I used to propograte the font-family to the body element.
    >
    > Working so far, though website is missing the user.head.content call?
    >
    >
    > regards
    >
    >
    >
    >
    >
    > regards
    >
    > --
    > Dave Pawson
    > XSLT XSL-FO FAQ.
    > http://www.dpawson.co.uk
    >
    >
    >




  • 2.  Re: [docbook-apps] @role. How high can it go?

    Posted 09-13-2011 18:00
    On 09/13/2011 05:41 PM, Bob Stayton wrote:
    > Hi Dave,
    > That sounds fine. There is also a utility template named
    > 'body.attributes' that can be customized to add attributes to the body
    > element. The original is in html/docbook.xsl. It is called right
    > after the opening tag of .
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net


    <chuckles/>

    Always 15 ways to skin a cat in docbook it seems!!

    Thanks Bob. Neater than my approach for the css I think.


    Is that used for website? Not sure how I'd check?






    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk