Hi Everyone,

I think, I have found a bug.
I want to use FOP to convert xsl-fo files into txt files with layout.

I experienced, that the layout is distorted because the max column number is 
set to 80 by default. I wanted to change this value using a config xml ( fop -c 
so I took the example config xml (distribution 0.95, {fop-dir}/conf/fop.xconf).

It contains this section:

    <renderer mime="text/plain">
      <pageSize columns="80"/>


This would be exactly what I need, and because this section, I think, FOP is 
supposed to read this information from the configuration xml and not only to 
work with the default value. 
The problem is, that the application is not reading this config information 
from the config file.
Than I validated the config file I built, and according to the latest .xsd 
 No 731248), 
it is not valid, the "pageSize" element does not exist.

Can You please advise, how to set default column number to higher or could 
anyone please add this functionality/fix this bug?

Thank You


href=" http://ad.adverticum.net/b/cl,1,6022,359365,443916/click.prm";>
Nokia 5130 Domino csomagban 25 990 Ft helyett 23 391 Ft csak a T-Mobile 

<?xml version="1.0"?>
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at


  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  See the License for the specific language governing permissions and
  limitations under the License.
<!-- $Id: fop.xconf 447325 2006-09-18 08:55:33Z jeremias $ -->


This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.

Relative config url's will be resolved relative to
the location of this file.


<!-- NOTE: This is the version of the configuration -->
<fop version="1.0">

  <!-- Base URL for resolving relative URLs -->
  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size 
of pixels in SVG and bitmap images, default: 72dpi -->
  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the 
target resolution for generated bitmaps, default: 72dpi -->
  <!-- Default page-height and page-width, in case
       value is specified as auto -->
  <default-page-settings height="11in" width="8.26in"/>
  <!-- Information for specific renderers -->
  <!-- Uses renderer mime type for renderers -->
    <renderer mime="application/pdf">
        <!-- provides compression using zlib flate (default is on) -->
        <!-- encodes binary data into printable ascii characters (default off)
             This provides about a 4:5 expansion of data size -->
        <!-- <value>ascii-85</value> -->
        <!-- encodes binary data with hex representation (default off)
             This filter is not recommended as it doubles the data size -->
        <!-- <value>ascii-hex</value> -->

        <!-- embedded fonts -->
        This information must exactly match the font specified
        in the fo file. Otherwise it will use a default font.

        For example,
        <fo:inline font-family="Arial" font-weight="bold" font-style="normal">
            Arial-normal-normal font
        for the font triplet specified by:
        <font-triplet name="Arial" style="normal" weight="bold"/>

        If you do not want to embed the font in the pdf document
        then do not include the "embed-url" attribute.
        The font will be needed where the document is viewed
        for it to be displayed properly.

        possible styles: normal | italic | oblique | backslant
        possible weights: normal | bold | 100 | 200 | 300 | 400
                          | 500 | 600 | 700 | 800 | 900
        (normal = 400, bold = 700)

        <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
          <font-triplet name="Arial" style="normal" weight="normal"/>
          <font-triplet name="ArialMT" style="normal" weight="normal"/>
        <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
          <font-triplet name="Arial" style="normal" weight="bold"/>
          <font-triplet name="ArialMT" style="normal" weight="bold"/>

      <!-- This option lets you specify additional options on an XML handler -->
      <!--xml-handler namespace="http://www.w3.org/2000/svg";>


    <renderer mime="application/postscript">
      <!-- This option forces the PS renderer to rotate landscape pages -->
      <!-- This option lets you specify additional options on an XML handler -->
      <!--xml-handler namespace="http://www.w3.org/2000/svg";>

    <renderer mime="application/vnd.hp-PCL">

    <!-- MIF does not have a renderer
    <renderer mime="application/vnd.mif">

    <renderer mime="image/svg+xml">
      <format type="paginated"/>
      <link value="true"/>
      <strokeText value="false"/>

    <renderer mime="application/awt">

    <renderer mime="image/png">

    <renderer mime="image/tiff">
      <!--compression>CCITT T.6</compression-->

    <renderer mime="text/xml">

    <!-- RTF does not have a renderer
    <renderer mime="text/rtf">

    <renderer mime="text/plain">
      <pageSize columns="80"/>



Reply via email to