Hi,
<xsl:param
name = "draft.mode"
select = "yes" />
This style will work with the proper syntax in the select expression. A
bare word in a select expression is taken as an element name. Since there
is no <yes> element in that context, the expression returns nothing and the
parameter is not set. The stylesheet expects a string for that parameter,
which is why Keith suggested adding the single quotes inside the double
quotes, which indicates that the value is a string:
<xsl:param
name = "draft.mode"
select = "'yes'" />
But such combined quotes are not always clear in many fonts. Forgetting the
quotes on string values is one of the most common errors in XSLT, which is
why the syntax <xsl:param name="draft.mode">yes</xsl:param> is often
preferred (but not required).
Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]
----- Original Message -----
From: "spr" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, March 08, 2008 12:01 PM
Subject: Re: [docbook-apps] Draft watermark not working. No specific
customization.
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-----
~spr
--
View this message in context:
http://www.nabble.com/Draft-watermark-not-working.-No-specific-customization.-tp15912867p15918932.html
Sent from the docbook apps mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]