[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Problems with draft.mode
I can confirm that that works for yes and no, but I haven't tested for maybe. I have submitted it at sourceforge as you requested anyhow. Thank you again! 2009/6/26 David Cramer <dcramer@motive.com>: > 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 > documents. > > 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:choose> > <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> > <xsl:otherwise>0</xsl:otherwise> > </xsl:choose> > </xsl:param> > > To get that to be considered as the default behavior, log a request at > sourceforge: https://sourceforge.net/tracker/?group_id=21935&atid=373747 > > David > >> -----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. > -- Nashi Power. http://nashi.podzone.org/ Registered address: 7 Trescoe Gardens, Harrow, Middx., U.K.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]