Another JadeTeX problem

Subject: Another JadeTeX problem
From: Thomas Corte <thomas@xxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Sep 1998 12:08:01 +0200 (MESZ)
Hello,

I have found another strange JadeTeX behaviour and I wonder
if anyone on this list can help me with this:

The DSSSL standard claims that consecutive display spaces shall be
reduced down to one of them according to certain rules.

jadetex.dtx (Version 1.05 with appropriately patched Jade 1.1.1)
seems to have code for this, and this works for e.g. sequences of
display-group FOs with space-before- and space-after characteristics.
However, it sometimes fails for NESTED display groups. To make the
problem clear, I have included some (short) test material:

Test DTD (simple.dtd):
--8<--------------------------------------------------------------------
<!--
      simple.dtd
-->

<!ELEMENT Root - - (Block | Para)+>
<!ELEMENT Block - - (Block | Para)+>
<!ELEMENT Para - - (#PCDATA)>
--8<--------------------------------------------------------------------

Test instance:
--8<--------------------------------------------------------------------
<!DOCTYPE root SYSTEM "simple.dtd" [
]>
<root>
  <para>Text outside any Block</para>
  <block>
    <para>Text in Block</para>
  </block>
  <para>Text2 outside any Block, followed by double blocksep</para>
  <block>
    <block>
      <para>Text in Block in Block</para>
    </block>
  </block>
  <para>Text3 outside any Block, followed by triple blocksep</para>
  <block>
    <block>
      <block>
	<para>Text in Block in Block in Block</para>
      </block>
    </block>
  </block>
  <para>Text outside any Block</para>
</root>
--8<--------------------------------------------------------------------

Test stylesheet:
--8<--------------------------------------------------------------------
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(element ROOT
  (make simple-page-sequence
    (process-children)))

(element BLOCK
  (make display-group
    start-indent: 10pt
    space-before: 30pt
    space-after: 30pt
    (process-children)))

(element PARA
  (make paragraph
    space-before: 10pt
    space-after: 10pt
    (process-children)))
--8<--------------------------------------------------------------------

While RTF output correctly shows 30pt display space between all the
paragraphs of this example, JadeTeX inserts 60pt of space after the
"Text2 ..." paragraph and 90pt of space after the "Text3 ..."
paragraph.

Am I wrong or should this be considered a JadeTeX bug?

____________________________________________________________________
     |       |
     | knipp |                   Knipp  Medien und Kommunikation oHG
      -------                           Technologiepark
                                        Martin-Schmeisser-Weg 9
                                        D-44227 Dortmund
     Thomas Corte                       Fon: 0231-9703-0
     thomas@xxxxxxxxxxxxxxxxxx          Fax: 0231-9703-200



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • SGML/XML Web Page - New URL
    • Robin Cover - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA12149Sat, 5 Sep 1998 11:39:51 -0400 (EDT)
      • Thomas Corte - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id SAA18565Sat, 5 Sep 1998 18:30:58 -0400 (EDT)
        • Thomas Corte - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id GAA05875Sun, 6 Sep 1998 06:11:08 -0400 (EDT) <=
          • Louis-Dominique Dubeau - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA05382Tue, 8 Sep 1998 11:27:14 -0400 (EDT)
          • Sebastian Rahtz - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id EAA13134Wed, 9 Sep 1998 04:58:34 -0400 (EDT)
        • Sebastian Rahtz - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id HAA07382Mon, 7 Sep 1998 07:48:07 -0400 (EDT)