Subject: (dsssl) rtf from XML using DSSSL and Openjade newlines missing. From: Lars Bungum <Lars.Bungum@xxxxxxxxxxx> Date: Thu, 13 Mar 2003 01:00:09 +0100 (CET) |
Greetings! Although I'm still fumbling somewhat, I've been able to create a nice rtf-document from an xml-file using a DSSSL style-sheet. I've been able to do all the formatting I would like, but still there is one last piece missing that I can't grip. That is, that inside one of my xml tags (<answer>), lies several newlines and line-breaks. They simply disappear in my rtf-document, and I'm desperate to get them back. :) What I have tried, is to locate some builtin function, but wasn't able to find one. Another thing that struck me was that I am perhaps using the wrong newline character in some way. Any help would be greatly appreciated. I'll enclose my dsl-file: <!doctype style-sheet PUBLIC "-//OpenJade//DTD DSSSL Style Sheet//EN"> (root (make simple-page-sequence (make scroll))) (element qna (make paragraph space-before: 10pt font-family-name: "Times New Roman" font-size: 18pt font-weight: 'bold space-after: 10pt (literal "Questions and Answers, Norsk Kabinforening:") (process-children) ) ) (element qnaitem (make paragraph space-before: 10pt start-indent: 30pt font-family-name: "Times New Roman" font-size: 12pt font-weight: 'medium space-after: 1pt (process-children) ) ) (element index (make paragraph font-family-name: "Arial" font-size: 14pt font-weight: 'bold (literal "Question:") (process-children) ) ) (element question (make paragraph (literal "Sp?rsm?l:") (process-children) ) ) (element answer (make paragraph (literal "Svar:") (process-children) ) ) (element boldface (make element font-weight: 'bold) ) (element underline (make score score-spaces?: #t ;; or #f type: 'after ) ) (element italic (make element font-posture: 'italic) ) (element heading1 (make paragraph space-before: 15pt space-after: 15pt font-size: 30pt) ) (element heading2 (make paragraph space-before: 15pt space-after: 15pt font-size: 23pt) ) (element heading3 (make paragraph space-before: 15pt space-after: 15pt font-size: 18pt) ) (element firstlevel (make paragraph space-before: 5pt space-after: 5pt (literal "\U-2022") (process-children) ) ) (element sublevel (make paragraph space-before: 5pt space-after: 5pt (literal "\U-2022 \U-2022") (process-children) ) ) Regards, -- Mvh. Lars Bungum <lb@xxxxx> Copyleft Software AS Telefon : +47 22 71 67 00 Organisasjonsnummer: 982 116 252 DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
(dsssl) Adding a text the *first* t, Stephane Bortzmeyer | Thread | Re: (dsssl) rtf from XML using DSSS, Adam DiCarlo |
(dsssl) Adding a text the *first* t, Stephane Bortzmeyer | Date | Re: (dsssl) rtf from XML using DSSS, Adam DiCarlo |
Month |