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] | [List Home]

Subject: RE: [docbook-apps] Problems with draft.mode

So my understanding is that the DocBook DTD/Schema and the DocBook
stylesheets are separate things. The DTD/Schema documentation doesn't
make any assumptions about what tool you're using to process your

Making show.comments depend on draft.mode would make sense. That way you
could have certain chapters or sections that have @status='draft'. For
those chapters/sections, show.comments would be 1. For other, non-draft,
chapters/sections, show.comments would be 0. This should do that:

<xsl:param name="draft.mode" select="'maybe'"/>
<!-- Be sure draft.mode has been declared before now -->
<xsl:param name="show.comments">
  <xsl:when test="$draft.mode = 'yes'">1</xsl:when>
  <xsl:when test="$draft.mode = 'maybe' and
ancestor-or-self::*[@status][1]/@status = 'draft'">1</xsl:when>

To get that to be considered as the default behavior, log a request at
sourceforge: https://sourceforge.net/tracker/?group_id=21935&atid=373747


> -----Original Message-----
> From: Paul Suckling [mailto:paul.suckling@gmail.com] 
> Sent: Friday, June 26, 2009 10:21 AM
> To: DocBook Apps
> Subject: Re: [docbook-apps] Problems with draft.mode
> Yes. That fixed it. Thanks.
> I think the DocBook documentation could be improved in this respect.
> The documentation for remark does not make any reference to 
> this parameter. My expectation from the documentation was 
> that it remarks would be suppressed automatically when 
> draft.mode was set to 'no'. I think this would be good 
> default behaviour.

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