[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Draft watermark not working. No specific customization.
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 bobs@sagehill.net ----- Original Message ----- From: "spr" <spremi@yahoo.com> To: <docbook-apps@lists.oasis-open.org> 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 <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 > -- > 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: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]