This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: draft vs. final/%show-comments%
- To: Lane Stevens <lane at cycletime dot com>
- Subject: DOCBOOK-APPS: Re: draft vs. final/%show-comments%
- From: Karl Eichwalder <keichwa at gmx dot net>
- Date: Fri, 05 Jan 2001 21:48:18 +0100
- Cc: docbook-apps at lists dot oasis-open dot org
- References: <20010105115252.X999@jisca.cycletime.com>
Lane Stevens <lane@cycletime.com> writes:
> 1) Use the %show-comments% variable to control, but this implies having to
> change the stylesheet (can this be set and unset from the command
> line?)
Try
jade -V '%show-comments%' [additional options] FILE.sgml
(untested).
> 2) Use the status attribute that is associated with the top-level, or the
> enclosing element.
Sounds like work (= your tools need to support it).
> 3) Using a marked section, but that implies a change to the document to move
> from draft to final.
Use the -i switch from the command line. Try:
echo '<!DOCTYPE book [
<!ELEMENT book - - (#PCDATA)>
<!ENTITY % draft "IGNORE">]>
<book>xxx
<![%draft;[this is draft text]]>
yyy</book>' | nsgmls -i draft
=>
(BOOK
-xxx\nthis is draft text\nyyy
)BOOK
C
versus (without -i):
echo '<!DOCTYPE book [
<!ELEMENT book - - (#PCDATA)>
<!ENTITY % draft "IGNORE">]>
<book>xxx
<![%draft;[this is draft text]]>
yyy</book>' | nsgmls
=>
(BOOK
-xxx\n\nyyy
)BOOK
C
Both versions have there merits (and drawbacks).
--
work : ke@suse.de | ,__o
: http://www.suse.de/~ke/ | _-\_<,
home : keichwa@gmx.net | (*)/'(*)