|
From: Carlo N. <lom...@ya...> - 2010-01-11 00:33:22
|
Hi!
We've been trying out attaching graphics to the output document, trying to replicate the sample files found on the net.
My objective is to include/show graphic in an rtf output after processing sgm and dsl files through openjade. The graphic file is a bmp (filename: image.bmp) located in the same directory as the sgm, dsl and necessary dtd files. There were no errors upon openjade parsing/processing.
The rtf output however upon opening with MSWord does not contain any graphic inside it. The rtf file is just empty, with its cursor at the center. Please refer to the codes below:
Command Line: -openjade -t rtf test.sgm
<!--================================================================================-->
<!-- test.sgm -->
<!--================================================================================-->
<!DOCTYPE graphic
[
<!NOTATION BMP PUBLIC "+//ISBN 0-7923-9432-1::Graphic Notation//NOTATION
Microsoft Windows Bitmap//EN">
<!ENTITY object SYSTEM "image.bmp" NDATA BMP>
<?stylesheet href="document.dsl" type="text/dsssl">
<!ELEMENT Graphic - o EMPTY >
<!ATTLIST Graphic
content ENTITY #REQUIRED >
]>
<Graphic content="object">
<!--================================================================================-->
<!-- test.dsl -->
<!--================================================================================-->
<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">
<style-sheet>
(element graphic
(make external-graphic
display?: #t
scale: 1
display-alignment: 'center
entity-system-id: (entity-generated-system-id (attribute-string
"content"))
;;space-before: 12pt
;;space-after: 12pt
))
</style-sheet>
Any comments / insights would be very much appreciated.
Thanks!
Carlo
__________________________________________________________________________________
See what's on at the movies in your area. Find out now: http://au.movies.yahoo.com/session-times/ |