OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: 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                     |                (*)/'(*)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC