docbook-apps

Re: [docbook-apps] Customizing stylesheet

  • 1.  Re: [docbook-apps] Customizing stylesheet

    Posted 06-28-2011 16:08
    Hi Lwam,
    As listed, this stylesheet has a line that should cause it to fail. Under your
    comment is an <xsl:apply-templates> element, but that can only appear
    inside of an xsl:template. I'm surprised you didn't get an error message about it.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    ----- Original Message -----
    From: "Lwam Berhane" <berhane@punkt.de>
    To: <docbook-apps@lists.oasis-open.org>
    Sent: Tuesday, June 28, 2011 1:33 AM
    Subject: [docbook-apps] Customizing stylesheet


    Hi everybody!

    I write a little stylesheet. In this stylesheet I imported the docbook
    stylesheets.I integrated the new stylesheet in my build.xml.

    <xsl:import
    href="./docbook_config/docbook-xsl/docbook-xsl-ns-1.76.1/fo/docbook.xsl" />

    Now I want to overide several things but it does not work!Can somebody help?




    <xsl:param name="page.margin.inner">2cm</xsl:param>
    <xsl:param name="page.margin.top">3cm</xsl:param>
    <xsl:param name="page.margin.bottom">2cm</xsl:param>




    <xsl:apply-templates select="." mode="object.title.markup"/>
    <xsl:attribute-set name="header.content.properties">
    <xsl:attribute name="font-family">Arial</xsl:attribute>
    <xsl:attribute name="font-size">9pt</xsl:attribute>
    <xsl:attribute name="font-weight">bold</xsl:attribute>
    </xsl:attribute-set>




    <xsl:param name="body.font.family">Arial</xsl:param>

    <xsl:attribute-set name="section.title.properties">
    <xsl:attribute name="font-family">Arial</xsl:attribute>
    <xsl:attribute name="font-weight">bold</xsl:attribute>
    </xsl:attribute-set>


    <xsl:attribute-set name="root.properties">
    <xsl:attribute name="line-height">normal</xsl:attribute>
    </xsl:attribute-set>


    --
    Gruß Lwam Berhane



    punkt.de GmbH TYPO3-Internet-Dienstleistungen-Beratung
    Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100
    76133 Karlsruhe info@punkt.de http://punkt.de/
    AG Mannheim 108285 Gf: Jürgen Egeling

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