This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using entities (or DSSSL) to INCLUDE / IGNORE text


/ 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]