This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Using entities (or DSSSL) to INCLUDE / IGNORE text
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Using entities (or DSSSL) to INCLUDE / IGNORE text
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Mon, 04 Dec 2000 15:12:42 -0500
- References: <kpr93ttin2.fsf@dagon.conectiva>
/ Jorge Godoy <godoy@conectiva.com> was heard to say:
| With nsgmls and jade/openjade I can pass a command line parameter to
| make an entity have it's option as INCLUDE. I need to change that
| behaviour for some documents to make it define then as IGNORE. There
| seems to be no option to do that in jade/openjade at convertion time.
| Is it possible?
You could write a custom driver that defined them as IGNORE and then
included the original version. Also, for mutually exclusive PEs, I
do something like this:
<!ENTITY % print "IGNORE">
<![%print;[
<!ENTITY % online "IGNORE">
]]>
<!ENTITY % online "INCLUDE">
This makes the value of online 'INCLUDE' by default but 'IGNORE' if
print is 'INCLUDE'.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | What is familiar is what we are
http://www.oasis-open.org/docbook/ | used to; and what we are used to
Chair, DocBook Technical Committee | is most difficult to 'Know'--that
| is, to see as a problem; that is,
| to see as strange, as distant, as
| 'outside us'.--Nietzsche