Re: graphics

Subject: Re: graphics
From: Chris Maden <crism@xxxxxxxxxxx>
Date: Wed, 10 Feb 1999 14:17:50 -0500 (EST)
[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


Current Thread
  • graphics
    • Pawson, David - Wed, 10 Feb 1999 09:07:34 -0500 (EST)
      • Didier PH Martin - Wed, 10 Feb 1999 10:57:48 -0500 (EST)
      • Chris Maden - Wed, 10 Feb 1999 14:48:15 -0500 (EST) <=
      • <Possible follow-ups>
      • Avi Kivity - Wed, 10 Feb 1999 09:27:20 -0500 (EST)