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

Re: Draft watermark not working. No specific customization.

by spr :: Rate this Message:

Reply to Author | View in Thread

Thanks Keith,

Only this works:
<xsl:param name="draft.mode">yes</xsl:param>

But in my full customization projects, i have many params set as:
  <xsl:param
    name   = "draft.mode"
    select  = "yes" />

Infact, all stylesheets are formatted this way.
Since, i am a 'C' programmer, this formatting helps me in easy understanding & modification.

I am still curious why only this param (of the ones i have used) behaves differently.

~spr

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


(xsl:param's are funny) I think you've set the draft.mode to the value
of the XPath yes rather than the string value yes. Try either

<xsl:param name="draft.mode" select="'yes'"/>

or

<xsl:param name="draft.mode">yes</xsl:param>


HTH,
Keith

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
~spr

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