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 <mini> <first>This is the first sub-element.</first> <second>This is the second sub-element.</second> </mini> 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))))) (process-children))) ; end of file F:\FTEMP>jade -t rtf -c l:\jade\jadecurr\catalog -w no-valid -f test.rpt test.xml 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 ""Processing:SECOND"" F:\FTEMP>type test.rtf {\rtf1\ansi\deff0 {\fonttbl{\f0\fnil\fcharset0 Times New Roman;} } {\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 9;}} \deflang1024\notabind\facingp\hyphauto1\widowctrl \pard\sl-240 \fs20 This is the first sub-element. This is the second sub-element.} F:\FTEMP> -- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com Box 266, V: +1(613)489-0999 Kars, Ontario CANADA K0A-2E0 F: +1(613)489-0995 PGP Privacy: http://www.cyberus.ca/~holman/gkholman.pgp Training: http://www.CraneSoftwrights.com/schedule.htm DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
multiple rtf files, James.W Wilson | Thread | Freeing memory in Jade (was: Help: , Chris Maden |
Re: Freeing memory in Jade (was: He, James Clark | Date | Re: Freeing memory in Jade (was: He, Chris Maden |
Month |