OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Title placement and guibuttons with a frame around -> FO o...

In regards to your second issue, have you tried "<keycap>Ok</keycap>" ?
Here is my stylesheet for keycaps and keycombo that will outline a phrase. This may work for you.
Dean Nelson
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:fo="http://www.w3.org/1999/XSL/Format" >
    <xsl:template name="inline.sansseq">
        <xsl:param name="content">
        <fo:inline font-family="{$sans.font.family}">
            <xsl:if test="@id">
                <xsl:attribute name="id">
                    <xsl:value-of select="@id"/>
            <xsl:if test="@dir">
                <xsl:attribute name="direction">
                        <xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
            <xsl:copy-of select="$content"/>
    <xsl:template match="keycap">
        <xsl:param name="key.contents" select="."/>
        <xsl:variable name="key.length" select="string-length($key.contents)"/>
        <fo:inline font-size="7.5pt" border="0.45pt solid black"
            padding-top="2pt" padding-bottom="0.75pt"
            padding-left="2pt" padding-right="2pt">
                <!-- NovDoc style keycaps -->
                <xsl:when test="@function">
                    <xsl:call-template name="inline.sansseq">
                        <xsl:with-param name="content">
                            <xsl:value-of select="@function"/>
                <!-- regular Docbook Keycaps -->
                    <xsl:call-template name="inline.sansseq"/>
    <xsl:template match="keycombo">
        <xsl:variable name="action" select="@action"/>
        <xsl:variable name="joinchar">
                <xsl:when test="$action='seq'"> &#x2013; </xsl:when>
                <xsl:when test="$action='press'"> + </xsl:when>
                <xsl:when test="$action='other'"></xsl:when>
                <xsl:otherwise> + </xsl:otherwise>
        <xsl:for-each select="*">
            <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if>
            <xsl:apply-templates select="."/>
In a message dated 5/28/2008 8:25:44 A.M. Pacific Daylight Time, keh@parsytec.de writes:
Hey folks!

I've tried to customize my title with the customization layer, but it
didn't solve my problem.
At the moment my title's are formatted like the following:

    1.   |This is my long title with a

And i want to create such like this:

    1.   |This is my long title with a

I've only found how i could insert special characters to the title. But
i think i must make a list/table or a floating block on the right or
such like this. But there is no way in the customization layer.

The second question i wrote a little time ago, but i received only an
answer for html output. So i try to describe it in detail.
I want a border/frame around my guibutton elements in the pdf. I used
docbook-xsl-1.72.0 with saxon 6.5.5 and xep 3.8.4 to render my pdf.
But i think it's a problem to describe it in fo. So i want an inline
It should look like this (in one line!):
| OK |

Another example:
Something like "ein GUI-Button" oder "eine Taste".

Big Thanks,


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

Get trade secrets for amazing burgers. Watch "Cooking with Tyler Florence" on AOL Food.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]