Subject: Re: SDATA entity mapping From: "Stephen J. Tinney" <stinney@xxxxxxxxxxxxx> Date: Sat, 24 May 1997 11:56:08 -0400 (EDT) |
OK, thanks, James. You provided the missing link here with the CDATA type for the entities. I had been trying to do this with SDATA and given up in frustration, but now all seems to work as I thought it should. Below is a description of what I am doing for the archives. Steve Outputting UTF8 via Arbitrary Entities with DSSSL/Jade. ======================================================= 1. Define your entities as CDATA: <!ENTITY tst CDATA "š" -- 353 is scaron --> 2. Load the entity set in the prolog: <!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"[ <!ENTITY % tstent SYSTEM > %tstent; ]> 3. Point to the appropriate entity set in your CATALOG: ENTITY %tstent "tst.ent" 4. Invoke Jade with the -b utf-8 option and your catalog: jade -b utf-8 -c /usr/src/jade/dsssl/catalog -c ./CATALOG -t sgml 5. Here are my test files for the above: ---tst.ent--- <!ENTITY tst CDATA "š" -- 353 is scaron --> ------------- ---CATALOG--- ENTITY %tstent "tst.ent" ------------- ---tst.dsl--- <!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"[ <!ENTITY % tstent SYSTEM > %tstent; ]> (declare-flow-object-class formatting-instruction "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction") (default (make formatting-instruction data: "&tst;")) ------------- ---do-tst--- #!/bin/sh jade -b utf-8 -c /usr/src/jade/dsssl/catalog -c ./CATALOG -t sgml tst.dsl ------------ DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: SDATA entity mapping, James Clark | Thread | Re: SDATA entity mapping, James Clark |
Re: XS: out of line links, W. Eliot Kimber | Date | Re: XS: Guidelines for the discussi, Alex Milowski |
Month |