« Return to Thread: Draft watermark not working. No specific customization.

Re: Re: Draft watermark not working. No specific customization.

by Bob Stayton :: Rate this Message:

Reply to Author | View in Thread

Hi Norm,
No fix is needed, as draft.mode is not a boolean parameter.  It has three
possible text values (yes, no, maybe), and has since at least 2002.  The
param is correctly documented in:

http://docbook.sourceforge.net/release/xsl/current/doc/fo/draft.mode.html

Bob Stayton
Sagehill Enterprises
bobs@...


----- Original Message -----
From: "Norman Walsh" <ndw@...>
To: <docbook-apps@...>
Sent: Wednesday, March 12, 2008 5:04 AM
Subject: [docbook-apps] Re: Draft watermark not working. No specific
customization.

/ "Keith Fahlgren" <abdelazer@...> was heard to say:
| On Sat, Mar 8, 2008 at 4:25 AM, spr <spremi@...> wrote:
|>  I have a very basic customization - only to set the draft.mode to "yes"
|>  (see attached).
| ...
| <xsl:param name="draft.mode" select="yes"/>

Almost all of the "boolean" parameters in the XSLT stylesheets use "0"
and "1" for false and true, respectively. As bob explained later in
the thread, select="yes" matches <yes> elements in no namespace and,
in DocBook at least, there aren't any.

How $draft.mode slipped through expecting the values 'no' or 'yes' is
beyond me. Bleh. Probably ought to fix that.



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...

 « Return to Thread: Draft watermark not working. No specific customization.