docbook-apps

  • 1.  Custom css with webhelp

    Posted 04-16-2013 13:05
    I want to use a custom CSS file with webhelp output. I'm using Oxygen. I set the html.stylesheet parameter and pointed it to a custom CSS file.

    In my output, however, the CSS is not linked. I only see one for css in the output, which is for tocWDiv.css.

    Does the html.stylesheet parameter not work the way I'm expecting it to with webhelp?

    ---
    David Goss, M.A.
    Technical Writer, Laboratory Division
    Frontier Science & Technology Research Foundation
    4033 Maple Road
    Amherst, NY 14226
    (716) 834-0900 x7218




  • 2.  Re: [docbook-apps] Custom css with webhelp

    Posted 04-16-2013 14:34
    If you have a custom xsl file, you can add a webhelp.head.content template for this purpose. For example:


    <xsl:template name="user.webhelp.head.content">

    </xsl:template>

    This template adds your content at the end of the html element,
    in this case a link to your CSS file:

    ...



    Since it comes after the stock links, it overrides their default CSS rules.

    hth,
    Denis

    On 04/16/2013 09:04 AM, David Goss wrote:


    > I want to use a custom CSS file with webhelp output. I'm using Oxygen. I set the html.stylesheet parameter and pointed it to a custom CSS file.
    >
    > In my output, however, the CSS is not linked. I only see one for css in the output, which is for tocWDiv.css.
    >
    > Does the html.stylesheet parameter not work the way I'm expecting it to with webhelp?
    >
    > ---
    > David Goss, M.A.
    > Technical Writer, Laboratory Division
    > Frontier Science & Technology Research Foundation
    > 4033 Maple Road
    > Amherst, NY 14226
    > (716) 834-0900 x7218
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >




  • 3.  Re: [docbook-apps] Custom css with webhelp

    Posted 04-19-2013 16:50
    Hi David,
    All the usual params are supported in the xslts BUT the sample
    Makefile and build.xml don't pass in every supported param. Looking
    at it, I see that it supports only the profiling params out of the box.

    So if you're using the supplied build.xml or Makefile as a starting point
    you'll need to adapt it so that it also passes in the params you set.

    If that's the case, look for the following lines in the build file and
    add html.stylesheet following the pattern you see for the profiling
    params.

    Regards,
    David

    Sample Makefile:

    chunk:
    xsltproc --xinclude --output xincluded-profiled.xml \
    --stringparam profile.arch ${PROFILE.ARCH} \
    --stringparam profile.audience ${PROFILE.AUDIENCE} \
    --stringparam profile.condition ${PROFILE.CONDITION} \
    --stringparam profile.conformance ${PROFILE.CONFORMANCE} \
    --stringparam profile.lang ${PROFILE.LANG} \
    --stringparam profile.os ${PROFILE.OS} \
    --stringparam profile.revision ${PROFILE.REVISION} \
    --stringparam profile.revisionflag ${PROFILE.REVISIONFLAG} \
    --stringparam profile.role ${PROFILE.ROLE} \
    --stringparam profile.security ${PROFILE.SECURITY} \
    --stringparam profile.status ${PROFILE.STATUS} \
    --stringparam profile.userlevel ${PROFILE.USERLEVEL} \
    --stringparam profile.vendor ${PROFILE.VENDOR} \
    --stringparam profile.wordsize ${PROFILE.WORDSIZE} \
    --stringparam profile.attribute ${PROFILE.ATTRIBUTE} \
    --stringparam profile.value ${PROFILE.VALUE} \
    ../profiling/profile.xsl \
    ${INPUT_XML}

    Sample build.xml:

    <xslt
    in="${input-xml}"
    out="${xincluded-profiled.xml}"
    style="${ant.file.dir}/../profiling/profile.xsl"
    classpath="${xercesImpl.jar}">
    <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration"
    value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
















    </xslt>

    On 04/16/2013 08:04 AM, David Goss wrote:
    > I want to use a custom CSS file with webhelp output. I'm using Oxygen. I set the html.stylesheet parameter and pointed it to a custom CSS file.
    >
    > In my output, however, the CSS is not linked. I only see one for css in the output, which is for tocWDiv.css.
    >
    > Does the html.stylesheet parameter not work the way I'm expecting it to with webhelp?
    >
    > ---
    > David Goss, M.A.
    > Technical Writer, Laboratory Division
    > Frontier Science & Technology Research Foundation
    > 4033 Maple Road
    > Amherst, NY 14226
    > (716) 834-0900 x7218
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >