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] 1] Programlisting attribute + 2] db5 validation


Here is a segement that puts programlistings in a box with a solid outline. You can easily  replace the "solid" border with the other attributes.

I think I got this out of Stayton's book.

Dean Nelson   

    <!-- ===================  Program listing shading =================== -->
    <xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties">
        <xsl:attribute name="font-family">
            <xsl:value-of select="$monospace.font.family"/>
        <xsl:attribute name="font-size">
            <xsl:value-of select="$body.font.master * 0.9"/>
        <xsl:attribute name="border-color">#0000FF</xsl:attribute>
        <xsl:attribute name="border-style">solid</xsl:attribute>
        <xsl:attribute name="border-width">heavy</xsl:attribute>
        <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
        <xsl:attribute name="padding">10pt</xsl:attribute>

-----Original Message-----
From: Bruno GUEGAN [mailto:bruno_guegan@yahoo.fr] 
Sent: Wednesday, November 29, 2006 4:13 AM
To: DocBook Apps Mailing List
Subject: [docbook-apps] 1] Programlisting attribute + 2] db5 validation


1] I just want de have my source code into a frame. I look for documentation 
about  programlisting attribute but i don't find any solution in FO output ! 
And y want, if possible, dashed frame ...

Any idea ?

2] Validation 
/usr/lib/j2sdk1.5-sun/bin/java -Xss512K -jar ../libs/relames-20060319/relames.jar ../libs/docbook-5.0b9/custom_rng.rng 

relmes verifier   Copyright(C) Sun Microsystems, Inc. 2001
parsing    ../libs/docbook-5.0b9/custom_rng.rng
/home/bruno/Travail/DocBook5.0/libs/docbook-5.0b9/relaxng.dtd (No such file or 
java.io.FileNotFoundException: /home/bruno/Travail/DocBook5.0/libs/docbook-5.0b9/relaxng.dtd 
(No such file or directory)

Does it good ?

Best regards,

Le paradoxe est la source de passion du penseur, et le penseur sans paradoxe 
est comme un amoureux sans sentiment: une médiocrité misérable... Soren Kierkegaard

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

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