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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Repeating data after applying style, Dan Hable | Thread | RE: Repeating data after applying s, Dan Hable |
Repeating data after applying style, Dan Hable | Date | Re: Simple guide to transformations, G. Ken Holman |
Month |