← Prev in month ← Prev in thread
Next in thread → Next in month →

DOCBOOK-APPS: Re: draft vs. final/%show-comments%

From
Karl Eichwalder <>
Date
2001-01-05T20:49:25+00:00
ID
Thread
DOCBOOK-APPS: Re: draft vs. final/%show-comments%
Lane Stevens <> 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 :                           |                   ,__o
     : http://www.suse.de/~ke/             |                 _-\_<,
home :                      |                (*)/'(*)
← Prev in month ← Prev in thread
Next in thread → Next in month →