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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: Adding an icon to each defined <term>

Hello together,

I have this docbook snippets:

          <varlistentry role="REQ">
            <para>This is an example requirement.</para>

          <varlistentry role='REC'>
            <para>This is an example recommendation.</para>

With the perfect help of Bob Stayton, I get it worked, that all REQs and RECs are
auto numbered for the whole document.

Now, I'm trying to add an icon before each REQ-xxx and REC-xxx. I have this xsl:

<xsl:template match="varlistentry/term">
   <xsl:call-template name="simple.xlink">
     <xsl:with-param name="content">
         <xsl:when test="parent::varlistentry/@role = 'REQ'">
         <fo:external-graphic src="url(proc/docbook-xsl/images/note.svg)"
            content-width="10pt" width="10pt"/>

This works for my FO output, but it looks nasty...

The second thing is, I wanna defined in a way, that it works also for the HTML output.
Is there are general way to do it?

If not:
I have an 3-level customization layer:

                        My-FO.xsl   My-HTML.xsl
                         ^     ^     ^       ^
                         |     |     |       |
 docbook-xsl/fo/docbook.xsl    |     |      docbook-xsl/html/onechunk.xsl
                               |     |

 Who can I say, in My-FO.xsl to get all merge templates from My-COMMON.xsl instead of repalcing.

Thanks in advance,


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