Subject: Re: (dsssl) create an external ENTITY in DOCTYPE From: "Paul Tyson" <paul@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 29 Aug 2001 11:14:11 -0700 |
Hi Lutz, The only way I've found to do this is to build the entire DOCTYPE declaration using the formatting-instruction flow object. (This is a jade extension.) Define the flow object as described in the documentation: (declare-flow-object-class formatting-instruction "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction") When you want to emit the DOCTYPE declaration, use something like this: (make formatting-instruction data: (string-append "<" "!DOCTYPE MAINELEMENT SYSTEM 'mydtd.dtd' [" "<" "!ENTITY entityname SYSTEM 'filename.gif' NDATA FAX>" "]>")) Use this instead of (make document-type). If you use character entity references for the left angle bracket (< for '<') you wouldn't have to use (string-append) like the example I used. Just use a single string for the data: characteristic. Hope this helps, Paul Tyson paul@xxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: Lutz Pliske <pliske@xxxxxxxx> To: <dssslist@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, August 29, 2001 9:11 AM Subject: (dsssl) create an external ENTITY in DOCTYPE > Hi, > > I am using jade for sgml-translation. Elements of my input-sgml should > (also) be transformed into entities in the doctype. They are Filenames > for graphics. > > I know about > > (make document-type name: "MAINELEMENT" system-id: "mydtd.dtd") > > > but that doesn´t allow me to write the entities "inside" the doctype > like > > <!DOCTYPE MAINELEMENT SYSTEM "mydtd.dtd" > [<!ENTITY entityname SYSTEM "filename.tif" NDATA FAX>]> > > I know how to create the enties so I "only" got the problem that my > result is. > > <!DOCTYPE MAINELEMENT SYSTEM "mydtd.dtd"> > [<!ENTITY entityname SYSTEM "filename.gif" NDATA FAX>] > > Does somebody know how I can get the entites inside of the doctype? > > P.S.: I tried building the doctype with literal and <-entity but the > result is a #60. One solution could be if someone knows how I can create > a "real" < so that I can built the doctype. Writing (literal "<!DOCTYPE > ... causes an error because the use of this syntax is not allowed. > > Please help ... > > Greetings & thanks > > Lutz > > > > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: (dsssl) create an external ENTI, Tony Graham | Thread | |
Re: (dsssl) create an external ENTI, Tony Graham | Date | |
Month |