Next in thread → Next in month →

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

From
Mathias Schindler <>
Date
2009-02-12T09:16:13+00:00
ID
Thread
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:] 

Gesendet: Mittwoch, 11. Februar 2009 18:01

An: Mathias Schindler; 

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



 

 

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

From: Mathias Schindler 

To: 

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
Next in thread → Next in month →