You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ingo Bruell <ib...@gmx.de> on 2002/04/24 19:45:24 UTC

printout text as is

Hi,

i am using docbook to generate a book and have the problem that my
programlistings (examples) will not look as i have entered.

Docbook generates the following fo's:

--- snip ---
      <fo:block space-before.minimum="0.8em"
                space-before.optimum="1em"
                space-before.maximum="1.2em"
                font-family="Courier"
                font-size="10.8pt"
                wrap-option="no-wrap"
                white-space-collapse="false"
                linefeed-treatment="preserve">
&lt;%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %&gt;
&lt;%@taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %&gt;

&lt;layout:form align="center"
                action="/account.do"
                reqCode="create"
                styleClass="FORM"&gt;

   &lt;layout:text key="account.username"
                   property="userName" styleClass="LABEL"/&gt;
   &lt;layout:password key="account.password"
                       property="password" styleClass="LABEL"/&gt;
   &lt;layout:text key="account.username"
                   property="firstName" styleClass="LABEL"/&gt;
   &lt;layout:text key="account.username"
                   property="lastName" styleClass="LABEL"/&gt;
   &lt;layout:text key="account.username"
                   property="matriculation" styleClass="LABEL"/&gt;
   &lt;layout:text key="account.username"
                   property="email" styleClass="LABEL"/&gt;

   &lt;layout:formActions&gt;
      &lt;layout:submit&gt;
         &lt;bean:message key="button.edit"/&gt;
      &lt;/layout:submit&gt;
      &lt;layout:reset&gt;
         &lt;bean:message key="button.reset"/&gt;
      &lt;/layout:reset&gt;
      &lt;layout:cancel&gt;
         &lt;bean:message key="button.cancel"/&gt;
      &lt;/layout:cancel&gt;
   &lt;/layout:formActions&gt;

&lt;/layout:form&gt;
      </fo:block>
--- snap ---

Most of the text is aligned right, sometimes one word is aligned left
and the rest of the line is aligned right.

Is there somethinh i could do ?


so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



Re[2]: printout text as is

Posted by Ingo Bruell <ib...@gmx.de>.
Hi Devendra,

DT> I remember having changed the value of the "alignment" parameter in the
DT> param.xsl file to the value "left".

DT> Thus the alignment parameter im my file is now:
DT> <xsl:param name="alignment">left</xsl:param>

DT> This changes the default alignment to left and should solve your problem.
DT> This is not a FOP issue ;-)

Wow, that solved the problem, many thanks


so long


Ingo Bruell

---
<ib...@gmx.de>
<In...@epost.de>
<ICQ# 40377720>
Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany      PGP-Public-Key available at pgpkeys.mit.edu



Re: printout text as is

Posted by Devendra Tewari <de...@br.inter.net>.
Hi Ingo,

I remember having changed the value of the "alignment" parameter in the
param.xsl file to the value "left".

Thus the alignment parameter im my file is now:
<xsl:param name="alignment">left</xsl:param>

This changes the default alignment to left and should solve your problem.
This is not a FOP issue ;-)

Regards,
Devendra

----- Original Message -----
From: "Ingo Bruell" <ib...@gmx.de>
To: <fo...@xml.apache.org>
Sent: Wednesday, April 24, 2002 2:45 PM
Subject: printout text as is


> Hi,
>
> i am using docbook to generate a book and have the problem that my
> programlistings (examples) will not look as i have entered.
>
> Docbook generates the following fo's:
>
> --- snip ---
>       <fo:block space-before.minimum="0.8em"
>                 space-before.optimum="1em"
>                 space-before.maximum="1.2em"
>                 font-family="Courier"
>                 font-size="10.8pt"
>                 wrap-option="no-wrap"
>                 white-space-collapse="false"
>                 linefeed-treatment="preserve">
> &lt;%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %&gt;
> &lt;%@taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %&gt;
>
> &lt;layout:form align="center"
>                 action="/account.do"
>                 reqCode="create"
>                 styleClass="FORM"&gt;
>
>    &lt;layout:text key="account.username"
>                    property="userName" styleClass="LABEL"/&gt;
>    &lt;layout:password key="account.password"
>                        property="password" styleClass="LABEL"/&gt;
>    &lt;layout:text key="account.username"
>                    property="firstName" styleClass="LABEL"/&gt;
>    &lt;layout:text key="account.username"
>                    property="lastName" styleClass="LABEL"/&gt;
>    &lt;layout:text key="account.username"
>                    property="matriculation" styleClass="LABEL"/&gt;
>    &lt;layout:text key="account.username"
>                    property="email" styleClass="LABEL"/&gt;
>
>    &lt;layout:formActions&gt;
>       &lt;layout:submit&gt;
>          &lt;bean:message key="button.edit"/&gt;
>       &lt;/layout:submit&gt;
>       &lt;layout:reset&gt;
>          &lt;bean:message key="button.reset"/&gt;
>       &lt;/layout:reset&gt;
>       &lt;layout:cancel&gt;
>          &lt;bean:message key="button.cancel"/&gt;
>       &lt;/layout:cancel&gt;
>    &lt;/layout:formActions&gt;
>
> &lt;/layout:form&gt;
>       </fo:block>
> --- snap ---
>
> Most of the text is aligned right, sometimes one word is aligned left
> and the rest of the line is aligned right.
>
> Is there somethinh i could do ?
>
>
> so long
>
>
> Ingo Bruell
>
> ---
> <ib...@gmx.de>
> <In...@epost.de>
> <ICQ# 40377720>
> Oldenburg    PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648
169E E5FC
> Germany      PGP-Public-Key available at pgpkeys.mit.edu
>
>
>