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] Using external files in programlistings


Since XInclude takes place before any XSL processing takes place and it doesn't supply any markup, I'm curious about the line-height problem.
 
When you say that the line height is too high, do you mean that the lines are double-spaced?  That would be caused by double-instances of line-feed characters at the end of each line in the text file.  Can you take a peek inside your FO file and see if there is an extra empty line between each line of text?  If so, then examining the text file or the XInclude processor would be next.
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Thursday, February 12, 2009 1:15 AM
Subject: AW: [docbook-apps] Using external files in programlistings

Hmm, that’s what I was afraid of :/.

 

Thank you Bob

 

>Hi Mathias,

>if only the line-height is too big, can't you just modify the attribute-set name="monospace.verbatim.properties" to set your own font-size and line-height ?

>Cheers, Tobias

 

  <xsl:attribute-set name="monospace.verbatim.properties">

                  <xsl:attribute name="font-size">8pt</xsl:attribute>

                  <xsl:attribute name="text-align">left</xsl:attribute>

                  <xsl:attribute name="font-family">Courier New</xsl:attribute>

                  <xsl:attribute name="hyphenation-character">\</xsl:attribute>

                  <xsl:attribute name="line-height">1.2</xsl:attribute>

                  <xsl:attribute name="border-style">solid</xsl:attribute>

                  <xsl:attribute name="border-color">#E6E5E5</xsl:attribute>

                  <xsl:attribute name="border-width">.5pt</xsl:attribute>

                  <xsl:attribute name="text-align">start</xsl:attribute>

                  <xsl:attribute name="wrap-option">wrap</xsl:attribute>

                  <xsl:attribute name="padding-left">0.10in</xsl:attribute>

                  <xsl:attribute name="padding-right">0.10in</xsl:attribute>

                  <xsl:attribute name="padding-bottom">0.10in</xsl:attribute>

                  <xsl:attribute name="padding-top">0.10in</xsl:attribute>

  </xsl:attribute-set>

 

I’ve got many programlistings in my document(without including external files!) and they all look as they should(I also use syntaxhighlighting), but if I use xinclude the line-height is too high.

 

Regards, Mathias

 

Von: Bob Stayton [mailto:bobs@sagehill.net]
Gesendet: Mittwoch, 11. Februar 2009 18:01
An: Mathias Schindler; docbook-apps@lists.oasis-open.org
Betreff: Re: [docbook-apps] Using external files in programlistings

 

Hi Mathias,

If you are using Saxon 9, you cannot use the textinsert.extension, because that is a Saxon 6 extension written by Norm Walsh and does not work with Saxon 9 (as you discovered).  There is no Saxon 9 version of the extension.  You might inquire with Norm if he plans to update them.  8^)

 

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

 

 

----- Original Message -----

Sent: Wednesday, February 11, 2009 2:26 AM

Subject: [docbook-apps] Using external files in programlistings

 

Hi everybody!

 

 I try to include files with the <textdata> tag, but I got some problems using SAXON9. I need to set the parameters use.extensions=1 and textinsert.extension=1. But if I try to transform my XML-file I always get the message: “Don't know how to insert files with SAXON 9.1.0.2 from Saxonica”.

 

Here’s my classpath: lib\xslthl.jar;lib\saxon9-dom.jar;lib\saxon9.jar;

 

Any ideas?

 

Cheers, Mathias



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