On 6/4/07, Matias Capeletto <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Now that many boost libraries have a logo [1], It will be nice to have
> an option in boostbook to include it in the header of each page.
>
> I have done this for my doxygen docs:
> http://tinyurl.com/2nwjxm
>
> IMO it is an easy to implement feature. My knowledge of XLST is very
> limited but I can try to do it myself if no other volunteer.

Ok, there seems to be no interest :(
Anyway I have implemented it
You use it like:

---------------------------------------------------------------------------------------------
boostbook standalone
    :
        bimap
    :
        <xsl:param>toc.max.depth=2
        <xsl:param>toc.section.depth=4
        <xsl:param>chunk.section.depth=2
        <xsl:param>logo.image.src="'images/bimap/boost.bimap.header.png'"
    ;
---------------------------------------------------------------------------------------------

If you do not specify a logo.image.src, then no image is rendered.

Index: navbar.xsl
===================================================================
RCS file: /cvsroot/boost/boost/tools/boostbook/xsl/navbar.xsl,v
retrieving revision 1.6
diff -r1.6 navbar.xsl
44a45
>
46a48,52
>    <!-- chapter logo support -->
>    <xsl:param name = "logo.image.src"  select = "''"/>
>    <xsl:param name = "logo.image.alt" select = "'Chapter Logo'"/>
>
>
73c79,92
<          </td><xsl:choose>
---
>
>             <!-- Chapter Logo Support -->
>             <xsl:if test = "$logo.image.src != ''">
>                <img alt="{$logo.image.alt}">
>                    <xsl:attribute name="src">
>                        <xsl:call-template name="href.target.relative">
>                           <xsl:with-param name="target" 
> select="$logo.image.src"/>
>                        </xsl:call-template>
>                    </xsl:attribute>
>                </img>
>             </xsl:if>
>
>          </td>
>          <xsl:choose>


Is there interest?
Can I commit this changes?
Best regards
Matias

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to