docbook-apps

  • 1.  XSL Chapter Customization

    Posted 05-29-2008 12:44
    Hi all,



    I am new in Docbook and I want to change the way chapter titles are
    presented.



    I tried this :





    <xsl:stylesheet

    version="1.0"

    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

    xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">



    <xsl:param name="local.l10n.xml" select="document('')"/>

    <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">

    <l:l10n language="en">

    <l:context name="title">

    <l:template name="chapter"
    text="%t"/>

    </l:context>

    </l:l10n>

    </l:i18n>

    </xsl:stylesheet>



    But I always have errors while processing with Xalan.



    Does anyone have an idea ?



    Thank you in advance



    Chedly








  • 2.  RE: [docbook-apps] XSL Chapter Customization

    Posted 05-30-2008 15:40
    > -----Original Message-----
    > From: Chedly GUERFALI

    > <xsl:stylesheet
    > version="1.0"
    > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    > xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
    > <xsl:param name="local.l10n.xml" select="document('')"/>
    >
    > <l:i18n
    > xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
    > <l:l10n language="en">
    > <l:context name="title">
    > <l:template
    > name="chapter" text="%t"/>
    > </l:context>
    > </l:l10n>
    > </l:i18n>
    > </xsl:stylesheet>
    >
    > But I always have errors while processing with Xalan.


    You need to import the standard stylesheets to the customization:

    <xsl:import href="/your/path/to/xsl/fo/docbook.xsl"/>

    See http://www.sagehill.net/docbookxsl/CustomMethods.html#CustomizationLayer

    /MJ