Beginner problem

Subject: Beginner problem
From: janusz.prusaczyk@xxxxxx
Date: Thu, 19 Oct 2000 21:03:00 +0200
Hi all,

I just subscribed to this list, I hope you will not flame me for asking too
simple questions. I can't find the solution myself.

I am to prepare some kind of presentation for students of linguistics. I
will create a DTD, then XML document and then I want to generate text, HTML,
RTF, TeX, PDF and postscript from it. All must be done with free software.

I want to use Jade for XML to RTF conversion. I tried both Jade and
OpenJade, but the result is the same - I get errors and the RTF file has no
formatting. I paste my test XML file, DSSSL, error log, batch file with
commands I use and generated RTF, so you can see my problem.
Please help, I will not find solution quickly enough, error messages do not
tell me anything. They claim not being able to find the files, but the files
are there.

Can anybody send me simple XML and DSSSL files that work?

*** MY XML FILE ***

<?xml version="1.0" ?>
<!DOCTYPE test [
<!ELEMENT test (a | b)*>
<!ELEMENT a (#PCDATA)>
<!ELEMENT b (#PCDATA)>
]>
<test>
<a>To jest test</a>
<b>To te¿ jest test</b>
<b>I jeszcze jeden test</b>
</test>

*** MY 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))

*** THE COMMANDS I RUN ***

set
path=%path%;C:\PROGRA~1\OPENJA~1.3\BIN\;C:\PROGRA~1\OPENJA~1.3\dsssl\;C:\PRO
GRA~1\OPENJA~1.3\pubtext

openjade -f error.log -t rtf -wxml -d test.dsl -o test.rtf test.xml

*** ERROR LOG I GET ***

C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.xml:3:22:E:  argument for
primitive  of wrong type:  not a length or length-spec
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.xml:4:21:E:  argument for
primitive  of wrong type:  not a length or length-spec
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.xml:5:21:E:  argument for
primitive  of wrong type:  not a length or length-spec
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:E: cannot open "builtins.dsl" (No
such file or directory)
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:1:72:W: (invalid message)
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:1:72:W: (invalid message)
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:1:72:E: (invalid message)
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:1:0: (invalid message)
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:1:72:E: (invalid message)
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:2:0:E: sorry, cannot handle
unresolvable quantities in datums in case expression
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:36:21:E: value for "label:"
not a symbol
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:test.dsl:2:0: no port for label
"STYLE-SHEET"
C:\PROGRA~1\OPENJA~1.3\BIN\OPENJADE.EXE:E: specification document does not
have the DSSSL architecture as a base architecture

*** RTF FILE I GET ***

{\rtf1\ansi\deff0
{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}
{\f1\fnil\fcharset238 Times New Roman CE;}
}
{\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 To jest testTo te\f1\'bf jest testI jeszcze jeden test}


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread