Chris Taylor wrote:
> That sounds interesting, but how can I do that within XXE? Selecting the
> programlisting element does not appear to have any attributes that can be
> used for this.
You cannot do that within XXE.
What follows is a piece of XSLT ``code'':
---
<xsl:attribute-set name="monospace.properties">
<xsl:attribute name="font-size">
<xsl:choose>
<xsl:when test="self::programlisting">8pt</xsl:when>
<xsl:otherwise>10pt</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:attribute-set>
---
In order to use this piece of code, you need to customize the DocBook
XSLT style sheets.
(Authors are not expected to do this. Power users, local gurus, XML
consultants are expected to do this on the behalf of a group of authors.
This is not really different from what happens with Microsoft Word: a
normal user is not supposed to modify the corporate style sheet.)
How to do that is explained here: "Customizing an existing
configuration"
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html
and more specifically here: "Customizing the XSLT style sheets used in
the Convert Document submenu"
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customize_xslt.html
> CT
>
> -----Original Message-----
> From: Skopik Pavel [mailto:Pavel.Skopik at aipsafe.cz]
> Sent: 24 September 2008 07:47
> To: Rishi Khan
> Cc: xmleditor-support at xmlmind.com; Chris Taylor
> Subject: RE: [XXE] tables
>
> Hi,
> you can use the monospace.verbatim.properties attribute set to specify the
> font size of programlisting.
> See
> http://docbook.sourceforge.net/release/xsl/current/doc/fo/monospace.verbatim.properties.html
> For more information see
> http://www.sagehill.net/docbookxsl/FittingText.html#ReduceFontSize
> You can do for example something like this:
>
> Regards,
> Pavel ?kop?k
>
> -----Original Message-----
> From: xmleditor-support-bounces at xmlmind.com
> [mailto:xmleditor-support-bounces at xmlmind.com] On Behalf Of Rishi Khan
> Sent: Tuesday, September 23, 2008 6:18 PM
> To: Skopik Pavel
> Cc: xmleditor-support at xmlmind.com; Chris Taylor
> Subject: Re: [XXE] tables
>
> I have a similar problem with programlistings, but I would like to decrease
> the font size rather than wrap to the next line (the program listing displays
> code that is lined up with monospaced characters like a table and it looks
> terrible if it wraps).
>
> Any ideas on how to do that?
> Basically, I want the final PDF to show a smaller font size for just that
> programlisting alone.
>
> Rishi
>
> On Sep 23, 2008, at 3:07 AM, Skopik Pavel wrote:
>
>> "I also have some 'programlisting' entries that are a little too width
>> for the pdf. The pdf is not wrapping the text around. Is there a
>> setting in the attributes to allwo text wrapping according to width?"
>>
>> Hello,
>> you can use these parameters in you DocBook XSL customization layer to
>> turn on hyhphenating verbatim environments and to specify list of
>> additional characters after which line break is allowed:
>> http://docbook.sourceforge.net/release/xsl/current/doc/fo/
>> hyphenate.verbatim.html
>> http://docbook.sourceforge.net/release/xsl/current/doc/fo/
>> hyphenate.verbatim.characters.html
>>
>> I use these with XEP and it all works fine. But I have no experience
>> with FOP though.
>>
>> Regards,
>> Pavel ?kop?k
>>
>> --
>> XMLmind XML Editor Support List
>> xmleditor-support at xmlmind.com
>> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>>
>
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>
> This email and any files contained therein is confidential and may contain
> privileged information. If you are not the named addressee(s) or you have
> otherwise received this in error, you should not distribute or copy this
> e-mail or use any of its content for any purpose. Please notify the sender
> immediately by e-mail if you have received this e-mail in error and delete it
> from your system
>
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>
>