Re: multiple rtf files

Subject: Re: multiple rtf files
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
Date: Fri, 13 Feb 1998 07:50:13 -0500
At 22:51 98/02/12 -0600, James.W Wilson wrote:
>     I had the same need, on a large scale; I needed to generate tens of 
>     thousands of rtf files from single large chunks of sgml. Originally I 
>     split the sgml into tiny pieces and ran jade on each piece, but the 
>     per-file startup time made this very slow. I think this was because 
>     our dtd is very big; using xml might have helped this, but the 'xml 
>     dtd' needed for each file would still be pretty big...

This was the nub of my earlier point, though, that with XML the DTD isn't
necessary _at all_ for downstream processing.

I hope the example below helps.  Imagine that the example source below is
one of the thousands of files created from the large file that has the
large DTD.  Note how it does not have a DTD, and how JADE is instructed to
not report validity errors on the incoming instance.

............ Ken

F:\FTEMP>type test.xml
<first>This is the first sub-element.</first>
<second>This is the second sub-element.</second>

F:\FTEMP>type test.dsl
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(define debug
  (external-procedure "UNREGISTERED::James Clark//Procedure::debug"))

(default                       ;handle all elements not explicitly handled
    (let* ((report (debug (string-append "Processing:" (gi)))))

; end of file

F:\FTEMP>jade -t rtf -c l:\jade\jadecurr\catalog -w no-valid -f test.rpt

F:\FTEMP>type test.rpt
C:\PROGRA~1\JADE\JADECURR\JADE.EXE:test.dsl:7:19:I: debug ""Processing:MINI""
C:\PROGRA~1\JADE\JADECURR\JADE.EXE:test.dsl:7:19:I: debug ""Processing:FIRST""
C:\PROGRA~1\JADE\JADECURR\JADE.EXE:test.dsl:7:19:I: debug

F:\FTEMP>type test.rtf
{\fonttbl{\f0\fnil\fcharset0 Times New
{\colortbl;}{\stylesheet{\s1 Heading 1;}{\s2 Heading 2;}{\s3
Heading 3;}{\s4 Heading 4;}{\s5 Heading 5;}{\s6 Heading 6;}{\s7 Heading
7;}{\s8 Heading 8;}{\s9 Heading
\pard\sl-240 \fs20
This is the first sub-element. This is the second sub-element.}


G. Ken Holman            mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd.
Box 266,                             V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0         F: +1(613)489-0995
PGP Privacy:

 DSSSList info and archive:

Current Thread
  • multiple rtf files
    • James.W Wilson - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id LAA22277Thu, 12 Feb 1998 11:02:37 -0500 (EST)
      • G. Ken Holman - from mail1.ability.netby (8.8.5/8.6.12) with ESMTP id HAA11545Fri, 13 Feb 1998 07:50:28 -0500 (EST) <=