This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook] Embedding XML schema into DocBook document


Hi Jirka,

Thanks very much for your advice! I finally got the wrap to work on my .pdf
file when I downloaded & used the new DocBook XSL stylesheets, saxon, and
Apache FOP (although FOP couldn't handle my images & I got an out of memory
error...I'm still working on that). I think the problem getting it to work
in XML Mind was the fact that although their param.xsl stylesheet had the
monospace.verbatim.properties attribute-set, it didn't have the wrap-option
attribute at all...I had added it. Whereas in the new (ver 1.66.1) DocBook
stylesheets, it already had the wrap-option attribute; I just changed the
value to "wrap". When I did the transform in saxon and fop using the old XML
Mind stylesheets where I had added the attribute, the programlistings didn't
wrap.

Two last questions if you would be so kind as to give me a one more push in
the right direction:
1) Does changing the wrap-option on this attribute-set only affect
"programlisting"?
2) Is there a way to fix this problem in the html? I tried adding the
declaration to docbook-xsl-1.66.1/html/param.xsl, but got a stylesheet
compile error that said "No attribute-set exists named monospace.properties"

Thanks very much,
Allison
----- Original Message ----- 
From: "Jirka Kosek" <jirka@kosek.cz>
To: "Allison Bloodworth" <abloodworth@berkeley.edu>
Sent: Wednesday, October 06, 2004 12:34 AM
Subject: Re: [docbook] Embedding XML schema into DocBook document


Allison Bloodworth wrote:

> I did find it and make this modification in the fo/params.xsl file:
>
> <xsl:attribute-set name="monospace.verbatim.properties"
> use-attribute-sets="verbatim.properties monospace.properties">
>   <xsl:attribute name="text-align">start</xsl:attribute>
>  <!-- Allison added wrap-option 10/05/04 to make programlisings wrap-->
>  <xsl:attribute name="wrap-option">wrap</xsl:attribute>
> </xsl:attribute-set>
>
> However when I generated the pdf, it didn't make a difference.

This should work. But I would recommend you to try do PDF genereation
outside your editor to test whether editor really uses stylesheets from
location where you have made changes.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální ¹kolení a poradenství v oblasti technologií XML.
      Podívejte se na ná¹ novì spu¹tìný web http://DocBook.cz
        Podrobný pøehled ¹kolení http://xmlguru.cz/skoleni/
------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]