Subject: RE: Jade From: "Didier PH Martin" <martind@xxxxxxxxxxxxx> Date: Wed, 24 Nov 1999 06:52:18 -0500 |
Hi Peter, Simple, look closely the following answer because I think somebody already answered that question. Your command line is: jade -f error.log -t rtf -wno-valid -d converter.dsl -o test.rtf test.xml it should be jade -f error.log -t rtf -wno-valid -d converter.dsl -o test.rtf xml.dcl test.xml jade -f error.log -t rtf -wno-valid -d converter.dsl -o test.rtf ---->xml.dcl<----- test.xml If you pay attention, what is added is the xml declaration "xml.dcl". Why do we have to add this? SP is an SGML parser and needs an SGML declaration. Because your document is an XML document, you then need a special kind of declaration for xml documents. It is the "xml.dcl" file. Otherwise you command line is OK. The document will be parsed without any validation performed on it and thus, it does not need a DTD (as it is ussually the case for SGML documents). Cheers Didier PH Martin mailto:martind@xxxxxxxxxxxxx http://www.netfolder.com -----Original Message----- From: owner-dssslist@xxxxxxxxxxxxxxxx [mailto:owner-dssslist@xxxxxxxxxxxxxxxx]On Behalf Of Peter Sognefur Sent: Wednesday, November 24, 1999 6:29 AM To: dssslist@xxxxxxxxxxxxxxxx Subject: Jade Hi! I use a simple xml document with a internal DTD subset. I just want to test Jade so I know that its working before I go on. The xml file and the dsssl style-sheet is a simple (I thought) example in a book that I'm reading. "XML in 21 days". This is the xml file: <?xml version="1.0"?> <!DOCTYPE test [ <!ELEMENT test (a|b)*> <!ELEMENT a (#PCDATA)> <!ELEMENT b (#PCDATA)> ]> <test> <a>This is a test</a> <b>This is also a test</b> <b>This is another test</b> </test> And this is the dsssl file: <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"> (define *rgb-color-space* (color-space "ISO/IEC 10179:1996//Color-Space Family::Device RGB")) (define *blue* (color *rgb-color-space* 0 0 1)) (define *red* (color *rgb-color-space* 1 0 0)) (root (make simple-page-sequence page width: 8.5in page-height: 11in top-margin: 1in bottom-margin: 1in left-margin: 1in right-margin: 1in (process children))) (element test (process children)) (element a (make paragraph font-size: 24pt color: *blue* quadding: 'center space-before: 10pt line-spacing 20pt)) (element b (make paragraph font-size: 18pt color: *red* line-spacing 30pt)) I cant find anything wrong....but I still got the same error message.... jade -f error.log -t rtf -wno-valid -d converter.dsl -o test.rtf test.xml H:\Project\Software\Jade\jade.exe:<OSFD>0:1:0:E: carachter "j" not allowed in prolog The "j" charachter is the first "j" in jade on the first row. I can write anything a want....like: made -f error.log...... Then I will get this error message: H:\Project\Software\Jade\jade.exe:<OSFD>0:1:0:E: carachter "m" not allowed in prolog Strange...... Thanx! /Peter ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|