Subject: RE: Repeating data after applying style to SGML document From: Dan Hable <DHable@xxxxxxxxxxxxx> Date: Thu, 4 Jun 1998 13:48:43 -0500 |
That was the problem. Thanks! I'm still having problems with the following code from my DSSSL stylesheet: (element digest (make sequence (make paragraph font-family-name: titileFont font-size: 20pt start-indent: 0pt line-spacing: 26pt quadding: 'center (literal: "My Digest")) (make simple-page-sequence))) When I use the following code, I get the line "My Digest" running into the next line of text like so: My DigestBy Dan Hable and then the document continues on as normal. I think I'm formatting everything correctly in this stylesheet but I can't be quite sure. Can anyone please point me in the right direction? All I want to do is add the title My Digest and then continue with the document as normal. Thanks in Advance! ~~ Daniel T. Hable ~~ XLink Corporation http://www.xlinkcorp.com > -----Original Message----- > From: Daniel Speck [SMTP:dspeck@xxxxxxxxxxxx] > Sent: Thursday, June 04, 1998 11:53 AM > To: dssslist@xxxxxxxxxxxxxxxx > Subject: Re: Repeating data after applying style to SGML document > > > > 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 DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Repeating data after applying s, Daniel Speck | Thread | Re: Repeating data after applying s, Daniel Speck |
Re: Simple guide to transformations, G. Ken Holman | Date | TOC, Booher, Craig |
Month |