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: draft vs. final/%show-comments%


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                     |                (*)/'(*)

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