The attribute-set named 'monospace.verbatim.properties' lets you set
properties on all programlisting elements. See this reference:
http://www.sagehill.net/docbookxsl/ProgramListings.html#ReduceFontSize
If you only want to change the size when a programlisting is within an
example element, then you would need to use an xsl:choose statement within
the font-size attribute setting, as shown in the example (but you would use
a different test, testing for ancestor::example).
Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]
----- Original Message -----
From: "Markus Innerebner" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, May 16, 2007 2:24 AM
Subject: [docbook] How to decrease font in the code examples
Hello to everyone,
I am trying to decrease the font size of the examples.
<para>
<example>
<title>My First Example</title>
<programlisting>
<![CDATA[
<root>
<child id="123"/>
</root>
]]>
</programlisting>
</example>
</para>
Is there a way to specify it somewhere? The problem is, I have a big xml
document, that actually occupies the hole page.
Therefore I want to decrease the font of the example.
Thanks for any help
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]