Lane Stevens <[EMAIL PROTECTED]> 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 : [EMAIL PROTECTED]                          |                   ,__o
     : http://www.suse.de/~ke/             |                 _-\_<,
home : [EMAIL PROTECTED]                     |                (*)/'(*)

Reply via email to