Subject: Re: Accessing declared value of attribute in Jade From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx> Date: Tue, 07 Oct 1997 16:10:11 -0400 |
At 15:42 97/10/07 -0400, Daniel Speck wrote: > (string-append > "<!ENTITY " > entity-name > (if entity-pubid > (string-append " PUBLIC \"" entity-pubid "\"") > "") > (if entity-sysid > (string-append " SYSTEM \"" entity-sysid "\"") > "") > " NDATA " entity-notation-name > ">&#RE;"))) One necessary modification is to handle the condition where both PUBLIC and SYSTEM identifiers are supplied, in which case, the SYSTEM keyword is not allowed: (string-append "<" "!ENTITY " entity-name (if entity-pubid (string-append " PUBLIC \"" entity-pubid "\"") "") (if entity-sysid (string-append (if entity-pubid "" " SYSTEM") " \"" entity-sysid "\"") "") " NDATA " entity-notation-name ">&#RE;"))) Note also how it isn't necessary to use a general entity for the less than sign if you interrupt the parsing of markup as I have above. ................... Ken -- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com 1605 Mardick Court, Box 266, V: +1(613)489-0999 Kars, Ontario CANADA K0A-2E0 F: +1(613)489-0995 PGP Privacy: http://www.cyberus.ca/~holman/gkholman.pgp DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Accessing declared value of att, Tony Graham | Thread | Re: Accessing declared value of att, James Clark |
Re: Accessing declared value of att, Tony Graham | Date | Newbie question: how to reorder des, Aidan Killian |
Month |