It appears that the DocBook stylesheets have not implemented this feature yet. It has come up before, but I looked on the SourceForge bug list and feature requests list, and I don't see it. That would at least get it into the queue to get fixed.

In FO output, it could be done by putting the content into a fo:block-container of the specified width, while with HTML output it would probably require a table cell of a fixed width.

Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


----- Original Message ----- From: "John Brown" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, July 05, 2008 5:41 AM
Subject: [docbook-apps] screen's width attribute has no effect


Hello All,

A <screen> takes up the entire width of a page regardless of
the value of width. I am using DocBook 5.0, DocBook XSL NS 1.74.0,
xsltproc and fop-0.94 svn 661170 (May 28, 2008).

<!-- DocBook 5.0 XML -->
<article xmlns="http://docbook.org/ns/docbook"; version="5.0">
 <title/>
 <para>
   <screen width="50">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
   </screen>
 </para>
</article>

<!-- customisation layer -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

 <xsl:import href="PATH/TO/docbook-xsl-ns-1.74.0/fo/docbook.xsl"/>
<xsl:attribute-set name="shade.verbatim.style">
 <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
 <xsl:attribute name="border-width">0.5pt</xsl:attribute>
 <xsl:attribute name="border-style">solid</xsl:attribute>
 <xsl:attribute name="border-color">#575757</xsl:attribute>
 <xsl:attribute name="padding">3pt</xsl:attribute>
</xsl:attribute-set>

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

<xsl:param name="shade.verbatim" select="1"/>

</xsl:stylesheet>



---------------------------------------------------------------------
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]

Reply via email to