Re: Repeating data after applying style to SGML document

Subject: Re: Repeating data after applying style to SGML document
From: Daniel Speck <dspeck@xxxxxxxxxxxx>
Date: Thu, 04 Jun 1998 12:52:43 -0400

Dan Hable wrote:

> I've been creating a DSSSL stylesheet and when I send the SGML file and
> the DSL file through Jade, I get three copies of the data in RTF format.
> Why is the data appearing three times and how can I stop the data from
> repeating itself? Am I missing a ) somewhere in my stylesheet?

I remember having this problem when I first started writing DSSSL style
sheets. If you are used to one pass systems like perl or OmniMark where you
have to go out of your way to duplicate data this is surprising. You need to
realize that having the grove right there and accessible at all times is a
two-edged sword: it's great to be able to go find information whenever you
want it but you have to be careful when processing not to unwittingly
traverse the tree multiple times when you do (process-children). For
example, if I have a root construction rule that looks like:

(root
    (sosofo-append
        (process-children)
        (process-children)))

I will get two copies of my document.

I suspect that in one or more of your element rules you have two
(process-children)'s operating on the same tree.

-dan

--
Daniel Speck                              e-mail: dspeck@xxxxxxxxxxxx
Systems Engineer                           voice:     +1 301.548.7818
Thomson Technology Services Group            fax:     +1 301.527.4094
1375 Piccard Drive, Rockville, MD 20850      WWW:    www.thomtech.com



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


Current Thread
  • Repeating data after applying style to SGML document
    • Dan Hable - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA06891Thu, 4 Jun 1998 11:52:07 -0400 (EDT)
      • Daniel Speck - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id NAA08696Thu, 4 Jun 1998 13:00:01 -0400 (EDT) <=
      • <Possible follow-ups>
      • Dan Hable - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA11553Thu, 4 Jun 1998 14:51:01 -0400 (EDT)
        • Daniel Speck - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id QAA18449Thu, 4 Jun 1998 16:55:38 -0400 (EDT)