RE: graphics - solution.

Subject: RE: graphics - solution.
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Thu, 11 Feb 1999 07:49:10 -0000
Very clear Chris. Many thanks.
regards, DaveP

[Pawson, David]
> <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
> <!NOTATION bmp   SYSTEM>
> <!ENTITY daisy   SYSTEM "daisy.bmp" NDATA bmp  >
> ]>
> 
> 
> (make external-graphic
> 			     space-before: 2.5in
> 			     entity-system-id: &daisy;
> 			     display?: #t
> 			     display-alignment: 'start
> 			   (process-children)))))

In an SGML document (which a DSSSL stylesheet is), a reference
(&daisy;) to an external entity causes the entity to be parsed at that
point.  Compare &chapter1;.  So Jade has encountered:

entity-system-id: @#%^FHWDRGB CVNNFGYK^J^L
îK!J Të Q Jq
jelvbjxlkbj34;kl6 j1Tjgqe /lkj /26j /l j6 j6;1lkj6 ;l ;l6 k j53 j.nv
etc.

If you're only using the graphic in your stylesheet by filename, then
you could just change the entity definition:

<!ENTITY daisy "daisy.bmp">

so that the entity reference is expanded to the string "daisy.bmp",
which is an acceptable value for entity-system-id:.

There are DSSSL functions to find the system identifier of an entity,
but since you're not operating on the stylesheet itself, I'm not sure
they're applicable.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


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


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


Current Thread